c6-expert-review-en.html 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <title>c6 · Five Axes · One Punch List</title>
  6. <link rel="preconnect" href="https://fonts.googleapis.com">
  7. <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
  8. <link href="https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,opsz,wght@0,8..60,300..700;1,8..60,300..700&family=Noto+Serif+SC:wght@200;300;400;500;600&family=Inter:wght@100;200;300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet">
  9. <style>
  10. :root {
  11. --bg: #000000;
  12. --ink: #FFFFFF;
  13. --ink-80: rgba(255,255,255,0.82);
  14. --ink-60: rgba(255,255,255,0.58);
  15. --muted: rgba(255,255,255,0.40);
  16. --dim: rgba(255,255,255,0.18);
  17. --hairline: rgba(255,255,255,0.12);
  18. --accent: #D97757;
  19. --accent-deep: #B85D3D;
  20. --cd-bg: #F5F4F0;
  21. --cd-panel: #FFFFFF;
  22. --cd-ink: #1A1918;
  23. --serif-zh: "Noto Serif SC", "Songti SC", serif;
  24. --serif-en: "Source Serif 4", "Tiempos Headline", Georgia, serif;
  25. --sans: "Inter", -apple-system, "PingFang SC", "HarmonyOS Sans SC", system-ui, sans-serif;
  26. --mono: "JetBrains Mono", "SF Mono", ui-monospace, monospace;
  27. }
  28. html, body {
  29. margin: 0; padding: 0;
  30. background: #000;
  31. overflow: hidden;
  32. font-family: var(--sans);
  33. color: var(--ink);
  34. -webkit-font-smoothing: antialiased;
  35. }
  36. * { box-sizing: border-box; }
  37. .stage {
  38. position: fixed;
  39. top: 50%; left: 50%;
  40. width: 1920px; height: 1080px;
  41. transform-origin: center center;
  42. background: var(--bg);
  43. overflow: hidden;
  44. }
  45. /* Film grain */
  46. .stage::before {
  47. content: '';
  48. position: absolute;
  49. inset: 0;
  50. background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/></svg>");
  51. opacity: 0.02;
  52. pointer-events: none;
  53. z-index: 100;
  54. }
  55. /* Chrome */
  56. .mark {
  57. position: absolute;
  58. top: 48px; left: 64px;
  59. font-family: var(--mono);
  60. font-size: 13px;
  61. letter-spacing: 0.2em;
  62. color: rgba(255,255,255,1);
  63. opacity: 0.16;
  64. pointer-events: none;
  65. z-index: 50;
  66. }
  67. .mark-right {
  68. position: absolute;
  69. top: 48px; right: 64px;
  70. font-family: var(--mono);
  71. font-size: 13px;
  72. letter-spacing: 0.2em;
  73. color: rgba(255,255,255,1);
  74. opacity: 0.16;
  75. pointer-events: none;
  76. z-index: 50;
  77. }
  78. /* Title */
  79. .title-line {
  80. position: absolute;
  81. top: 108px;
  82. left: 50%;
  83. transform: translateX(-50%);
  84. font-family: var(--mono);
  85. font-size: 13px;
  86. letter-spacing: 0.28em;
  87. color: var(--muted);
  88. text-transform: uppercase;
  89. opacity: 0;
  90. will-change: opacity, transform;
  91. }
  92. /* Main composition: camera wrapper for push-in at Beat 3 */
  93. .camera {
  94. position: absolute;
  95. inset: 0;
  96. transform-origin: 1000px 940px; /* center of Fix first-row */
  97. will-change: transform;
  98. }
  99. /* ============ LEFT: under-review artwork ============ */
  100. .subject {
  101. position: absolute;
  102. left: 150px;
  103. top: 310px;
  104. width: 640px;
  105. height: 460px;
  106. background: #0B0B0B;
  107. border: 1px solid var(--hairline);
  108. border-radius: 8px;
  109. overflow: hidden;
  110. opacity: 0;
  111. will-change: opacity, transform, filter;
  112. transform: translateY(12px);
  113. }
  114. .subject::after {
  115. /* subtle inner vignette */
  116. content: '';
  117. position: absolute;
  118. inset: 0;
  119. box-shadow: inset 0 0 120px rgba(0,0,0,0.6);
  120. pointer-events: none;
  121. }
  122. .subject-label {
  123. position: absolute;
  124. left: 20px;
  125. top: 18px;
  126. font-family: var(--mono);
  127. font-size: 10px;
  128. letter-spacing: 0.25em;
  129. color: var(--muted);
  130. z-index: 3;
  131. }
  132. .subject-dot {
  133. position: absolute;
  134. right: 20px;
  135. top: 18px;
  136. width: 6px;
  137. height: 6px;
  138. background: var(--accent);
  139. border-radius: 50%;
  140. z-index: 3;
  141. box-shadow: 0 0 10px rgba(217,119,87,0.6);
  142. }
  143. /* Subject wireframe: abstract design mockup */
  144. .subject-canvas {
  145. position: absolute;
  146. inset: 50px 36px 36px;
  147. }
  148. .wf-h1 {
  149. width: 62%;
  150. height: 18px;
  151. background: rgba(255,255,255,0.28);
  152. border-radius: 2px;
  153. margin-bottom: 10px;
  154. }
  155. .wf-h2 {
  156. width: 38%;
  157. height: 10px;
  158. background: rgba(255,255,255,0.14);
  159. border-radius: 2px;
  160. margin-bottom: 28px;
  161. }
  162. .wf-row {
  163. display: flex;
  164. gap: 12px;
  165. margin-bottom: 12px;
  166. }
  167. .wf-row .bar {
  168. height: 8px;
  169. background: rgba(255,255,255,0.10);
  170. border-radius: 2px;
  171. }
  172. .wf-grid {
  173. display: grid;
  174. grid-template-columns: 1fr 1fr 1fr;
  175. gap: 14px;
  176. margin-top: 28px;
  177. }
  178. .wf-card {
  179. height: 82px;
  180. background: rgba(255,255,255,0.04);
  181. border: 1px solid rgba(255,255,255,0.06);
  182. border-radius: 6px;
  183. position: relative;
  184. }
  185. .wf-card::before {
  186. content: '';
  187. position: absolute;
  188. left: 12px; top: 14px;
  189. width: 40%;
  190. height: 6px;
  191. background: rgba(255,255,255,0.22);
  192. border-radius: 2px;
  193. }
  194. .wf-card::after {
  195. content: '';
  196. position: absolute;
  197. left: 12px; bottom: 16px;
  198. width: 64%;
  199. height: 4px;
  200. background: rgba(255,255,255,0.10);
  201. border-radius: 2px;
  202. }
  203. .wf-card.accent { border-color: rgba(217,119,87,0.55); background: rgba(217,119,87,0.06); }
  204. .wf-card.accent::before { background: var(--accent); }
  205. .wf-foot {
  206. position: absolute;
  207. left: 0; right: 0;
  208. bottom: 0;
  209. height: 44px;
  210. display: flex;
  211. align-items: center;
  212. gap: 10px;
  213. padding: 0 4px;
  214. }
  215. .wf-chip {
  216. height: 22px;
  217. padding: 0 10px;
  218. background: rgba(255,255,255,0.05);
  219. border: 1px solid rgba(255,255,255,0.08);
  220. border-radius: 11px;
  221. flex: 0 0 auto;
  222. width: 68px;
  223. }
  224. .wf-chip.wide { width: 120px; }
  225. /* ============ Light sweep ============ */
  226. .sweep {
  227. position: absolute;
  228. left: 130px;
  229. top: 250px;
  230. width: 680px;
  231. height: 140px;
  232. background: linear-gradient(180deg,
  233. rgba(217,119,87,0) 0%,
  234. rgba(217,119,87,0.12) 20%,
  235. rgba(255,220,200,0.62) 50%,
  236. rgba(217,119,87,0.18) 80%,
  237. rgba(217,119,87,0) 100%);
  238. filter: blur(14px);
  239. opacity: 0;
  240. pointer-events: none;
  241. z-index: 4;
  242. mix-blend-mode: screen;
  243. will-change: opacity, transform;
  244. }
  245. .sweep-line {
  246. position: absolute;
  247. left: 150px;
  248. top: 310px;
  249. width: 640px;
  250. height: 1px;
  251. background: linear-gradient(90deg,
  252. transparent 0%,
  253. rgba(255,220,200,0.2) 10%,
  254. rgba(255,220,200,0.9) 50%,
  255. rgba(255,220,200,0.2) 90%,
  256. transparent 100%);
  257. filter: blur(0.6px);
  258. box-shadow: 0 0 14px rgba(217,119,87,0.8), 0 0 30px rgba(217,119,87,0.3);
  259. opacity: 0;
  260. pointer-events: none;
  261. z-index: 6;
  262. will-change: opacity, transform;
  263. }
  264. /* ============ RIGHT: radar chart ============ */
  265. .radar-wrap {
  266. position: absolute;
  267. right: 280px;
  268. top: 200px;
  269. width: 520px;
  270. height: 520px;
  271. opacity: 0;
  272. will-change: opacity, transform;
  273. }
  274. .radar-wrap svg {
  275. width: 100%;
  276. height: 100%;
  277. overflow: visible;
  278. }
  279. .radar-grid path {
  280. fill: none;
  281. stroke: rgba(255,255,255,0.10);
  282. stroke-width: 1;
  283. }
  284. .radar-spoke {
  285. stroke: rgba(255,255,255,0.08);
  286. stroke-width: 1;
  287. }
  288. .radar-poly {
  289. fill: rgba(217,119,87,0.16);
  290. stroke: var(--accent);
  291. stroke-width: 2;
  292. stroke-linejoin: round;
  293. }
  294. .radar-point {
  295. fill: var(--accent);
  296. stroke: #1A1918;
  297. stroke-width: 2;
  298. }
  299. .radar-label {
  300. font-family: var(--mono);
  301. font-size: 12px;
  302. letter-spacing: 0.2em;
  303. fill: var(--muted);
  304. text-transform: uppercase;
  305. opacity: 0;
  306. }
  307. .radar-label-zh {
  308. font-family: var(--serif-en);
  309. font-size: 22px;
  310. font-weight: 400;
  311. font-style: italic;
  312. fill: var(--ink);
  313. letter-spacing: 0.01em;
  314. }
  315. .radar-score {
  316. font-family: var(--mono);
  317. font-size: 13px;
  318. fill: var(--accent);
  319. letter-spacing: 0.08em;
  320. }
  321. .radar-title {
  322. position: absolute;
  323. right: 280px;
  324. top: 160px;
  325. width: 520px;
  326. text-align: center;
  327. font-family: var(--mono);
  328. font-size: 11px;
  329. letter-spacing: 0.28em;
  330. color: var(--muted);
  331. text-transform: uppercase;
  332. opacity: 0;
  333. will-change: opacity;
  334. }
  335. .radar-score-total {
  336. position: absolute;
  337. left: 150px;
  338. top: 170px;
  339. width: 640px;
  340. text-align: left;
  341. opacity: 0;
  342. will-change: opacity;
  343. }
  344. .radar-score-total .score-row {
  345. display: flex;
  346. align-items: baseline;
  347. gap: 24px;
  348. }
  349. .radar-score-total .score-label {
  350. font-family: var(--mono);
  351. font-size: 11px;
  352. letter-spacing: 0.28em;
  353. color: var(--muted);
  354. text-transform: uppercase;
  355. }
  356. .radar-score-total .score-num {
  357. font-family: var(--serif-en);
  358. font-size: 72px;
  359. font-weight: 300;
  360. color: var(--ink);
  361. letter-spacing: -0.02em;
  362. line-height: 1;
  363. }
  364. .radar-score-total .score-num .accent { color: var(--accent); }
  365. .radar-score-total .score-total {
  366. font-family: var(--mono);
  367. font-size: 11px;
  368. letter-spacing: 0.28em;
  369. color: var(--muted);
  370. margin-top: 8px;
  371. text-transform: uppercase;
  372. }
  373. /* ============ Single Fix row (Concept Card lean) ============ */
  374. .fix-lane {
  375. position: absolute;
  376. left: 150px;
  377. bottom: 120px;
  378. width: 1620px;
  379. opacity: 0;
  380. will-change: opacity, transform;
  381. }
  382. .fix-head {
  383. display: flex;
  384. align-items: baseline;
  385. gap: 14px;
  386. margin-bottom: 20px;
  387. padding-bottom: 12px;
  388. border-bottom: 1px solid var(--hairline);
  389. }
  390. .fix-mark {
  391. font-family: var(--mono);
  392. font-size: 13px;
  393. letter-spacing: 0.28em;
  394. color: var(--accent);
  395. text-transform: uppercase;
  396. }
  397. .fix-zh {
  398. font-family: var(--serif-en);
  399. font-size: 28px;
  400. font-weight: 400;
  401. font-style: italic;
  402. color: var(--ink);
  403. }
  404. .fix-count {
  405. margin-left: auto;
  406. font-family: var(--mono);
  407. font-size: 11px;
  408. color: var(--muted);
  409. letter-spacing: 0.2em;
  410. }
  411. .fix-row {
  412. position: relative;
  413. font-family: var(--sans);
  414. font-size: 28px;
  415. font-weight: 300;
  416. color: var(--ink);
  417. line-height: 1.45;
  418. padding: 12px 0;
  419. display: flex;
  420. gap: 20px;
  421. align-items: center;
  422. }
  423. .fix-row .idx {
  424. font-family: var(--mono);
  425. font-size: 12px;
  426. color: var(--muted);
  427. letter-spacing: 0.2em;
  428. flex: 0 0 40px;
  429. padding-top: 2px;
  430. }
  431. .fix-row .mono {
  432. font-family: var(--mono);
  433. font-size: 26px;
  434. letter-spacing: 0;
  435. color: var(--accent);
  436. font-weight: 400;
  437. }
  438. .fix-row .arrow {
  439. color: var(--muted);
  440. margin: 0 4px;
  441. }
  442. .fix-severity {
  443. display: inline-block;
  444. padding: 3px 10px;
  445. font-family: var(--mono);
  446. font-size: 11px;
  447. letter-spacing: 0.22em;
  448. color: var(--accent);
  449. border: 1px solid rgba(217,119,87,0.5);
  450. border-radius: 3px;
  451. margin-right: 10px;
  452. vertical-align: 3px;
  453. }
  454. .fix-pulse {
  455. position: absolute;
  456. inset: 4px -12px 4px -12px;
  457. border: 1px solid var(--accent);
  458. border-radius: 4px;
  459. opacity: 0;
  460. pointer-events: none;
  461. will-change: opacity;
  462. box-shadow: 0 0 24px rgba(217,119,87,0.35);
  463. }
  464. /* ============ Brand Reveal (hero-v10 signature) ============ */
  465. .stage-dimmer {
  466. position: absolute;
  467. inset: 0;
  468. background: #000000;
  469. opacity: 0;
  470. z-index: 40;
  471. pointer-events: none;
  472. will-change: opacity;
  473. }
  474. .brand-panel {
  475. position: absolute;
  476. inset: 0;
  477. background: #F5F4F0;
  478. transform: translateY(100%);
  479. display: flex;
  480. flex-direction: column;
  481. align-items: center;
  482. justify-content: center;
  483. z-index: 50;
  484. will-change: transform;
  485. }
  486. .brand-wordmark {
  487. font-family: var(--serif-en);
  488. font-size: 72px;
  489. font-weight: 100;
  490. font-variation-settings: "wght" 100;
  491. letter-spacing: -0.02em;
  492. color: #1A1918;
  493. text-align: center;
  494. line-height: 1;
  495. opacity: 0;
  496. transform: translateY(20px);
  497. will-change: opacity, transform, font-variation-settings, font-weight;
  498. }
  499. .brand-wordmark .accent { color: #D97757; font-weight: inherit; }
  500. .brand-line {
  501. margin-top: 60px;
  502. height: 2px;
  503. width: 0;
  504. background: #D97757;
  505. align-self: center;
  506. will-change: width;
  507. }
  508. </style>
  509. </head>
  510. <body>
  511. <div class="stage" id="stage">
  512. <div class="mark">HUASHU · DESIGN</div>
  513. <div class="mark-right">V2 · 2026</div>
  514. <div class="title-line" id="titleLine">c6 · Expert Review · Five Axes</div>
  515. <div class="camera" id="camera">
  516. <!-- Subject: design under review -->
  517. <div class="subject" id="subject">
  518. <div class="subject-label">SUBJECT · DRAFT_V3</div>
  519. <div class="subject-dot"></div>
  520. <div class="subject-canvas">
  521. <div class="wf-h1"></div>
  522. <div class="wf-h2"></div>
  523. <div class="wf-row"><div class="bar" style="width:24%"></div><div class="bar" style="width:14%"></div><div class="bar" style="width:20%"></div></div>
  524. <div class="wf-row"><div class="bar" style="width:30%"></div><div class="bar" style="width:10%"></div></div>
  525. <div class="wf-grid">
  526. <div class="wf-card"></div>
  527. <div class="wf-card accent"></div>
  528. <div class="wf-card"></div>
  529. </div>
  530. <div class="wf-foot">
  531. <div class="wf-chip wide"></div>
  532. <div class="wf-chip"></div>
  533. <div class="wf-chip"></div>
  534. </div>
  535. </div>
  536. </div>
  537. <!-- Scanning light -->
  538. <div class="sweep" id="sweep"></div>
  539. <div class="sweep-line" id="sweepLine"></div>
  540. <!-- Radar chart (right) -->
  541. <div class="radar-title" id="radarTitle">Five-Axis Diagnosis · Radar</div>
  542. <div class="radar-wrap" id="radarWrap">
  543. <svg viewBox="-270 -270 540 540" xmlns="http://www.w3.org/2000/svg">
  544. <!-- Grid rings (5 levels) -->
  545. <g class="radar-grid" id="radarGrid"></g>
  546. <!-- Spokes to 5 axes -->
  547. <g id="radarSpokes"></g>
  548. <!-- Filled polygon -->
  549. <polygon id="radarPoly" class="radar-poly" points="" />
  550. <!-- Points -->
  551. <g id="radarPoints"></g>
  552. <!-- Axis labels -->
  553. <g id="radarLabels"></g>
  554. </svg>
  555. </div>
  556. <div class="radar-score-total" id="radarTotal">
  557. <div class="score-row">
  558. <div class="score-num"><span id="scoreNum">0</span><span class="accent">/50</span></div>
  559. <div>
  560. <div class="score-label">OVERALL · PASSED</div>
  561. <div class="score-total">WEIGHTED · 7.4</div>
  562. </div>
  563. </div>
  564. </div>
  565. <!-- Single Fix row: Concept Card lean -->
  566. <div class="fix-lane" id="fixLane">
  567. <div class="fix-head">
  568. <span class="fix-mark">FIX</span>
  569. <span class="fix-zh">Fix</span>
  570. <span class="fix-count">01 / 01</span>
  571. </div>
  572. <div class="fix-row">
  573. <span class="idx">01</span>
  574. <span><span class="fix-severity">⚡</span>Tracking <span class="mono">0.02</span><span class="arrow"> → </span><span class="mono">0.04em</span></span>
  575. <div class="fix-pulse" id="fixPulse"></div>
  576. </div>
  577. </div>
  578. </div>
  579. <!-- Brand Reveal (hero-v10 signature) -->
  580. <div class="stage-dimmer" id="stageDimmer"></div>
  581. <div class="brand-panel" id="brandPanel">
  582. <div class="brand-wordmark" id="brandMark">huashu<span class="accent">-</span>design</div>
  583. <div class="brand-line" id="brandLine"></div>
  584. </div>
  585. </div>
  586. <script>
  587. // Auto-scale
  588. function fitStage() {
  589. const stage = document.getElementById('stage');
  590. const sx = window.innerWidth / 1920;
  591. const sy = window.innerHeight / 1080;
  592. const s = Math.min(sx, sy);
  593. stage.style.transform = `translate(-50%, -50%) scale(${s})`;
  594. }
  595. fitStage();
  596. window.addEventListener('resize', fitStage);
  597. // Easings
  598. const expoOut = t => t === 1 ? 1 : 1 - Math.pow(2, -10 * t);
  599. const expoIn = t => t === 0 ? 0 : Math.pow(2, 10 * (t - 1));
  600. const cubicInOut = t => t < 0.5 ? 4 * t * t * t : 1 - Math.pow(-2 * t + 2, 3) / 2;
  601. const cubicOut = t => 1 - Math.pow(1 - t, 3);
  602. function lerp(t, a, b, easing) {
  603. if (t <= 0) return a;
  604. if (t >= 1) return b;
  605. const e = easing ? easing(t) : t;
  606. return a + (b - a) * e;
  607. }
  608. function seg(time, start, end) {
  609. if (time <= start) return 0;
  610. if (time >= end) return 1;
  611. return (time - start) / (end - start);
  612. }
  613. // ============ Build radar SVG ============
  614. const RADIUS = 210;
  615. const AXES = [
  616. { zh: 'Philosophy', en: 'PHILOSOPHY', score: 8 },
  617. { zh: 'Hierarchy', en: 'HIERARCHY', score: 6 },
  618. { zh: 'Execution', en: 'EXECUTION', score: 8 },
  619. { zh: 'Function', en: 'FUNCTION', score: 7 },
  620. { zh: 'Innovation', en: 'INNOVATION', score: 8 },
  621. ];
  622. const N = AXES.length;
  623. function axisPoint(i, r) {
  624. // Start at top (-90deg), clockwise
  625. const angle = -Math.PI / 2 + (2 * Math.PI * i) / N;
  626. return [Math.cos(angle) * r, Math.sin(angle) * r];
  627. }
  628. // Grid rings (polygons at 5 levels)
  629. const gridG = document.getElementById('radarGrid');
  630. for (let level = 1; level <= 5; level++) {
  631. const r = (RADIUS * level) / 5;
  632. const pts = [];
  633. for (let i = 0; i < N; i++) {
  634. const [x, y] = axisPoint(i, r);
  635. pts.push(`${x.toFixed(2)},${y.toFixed(2)}`);
  636. }
  637. const poly = document.createElementNS('http://www.w3.org/2000/svg', 'polygon');
  638. poly.setAttribute('points', pts.join(' '));
  639. poly.setAttribute('fill', 'none');
  640. poly.setAttribute('stroke', level === 5 ? 'rgba(255,255,255,0.18)' : 'rgba(255,255,255,0.07)');
  641. poly.setAttribute('stroke-width', '1');
  642. gridG.appendChild(poly);
  643. }
  644. // Spokes
  645. const spokesG = document.getElementById('radarSpokes');
  646. for (let i = 0; i < N; i++) {
  647. const [x, y] = axisPoint(i, RADIUS);
  648. const line = document.createElementNS('http://www.w3.org/2000/svg', 'line');
  649. line.setAttribute('x1', 0);
  650. line.setAttribute('y1', 0);
  651. line.setAttribute('x2', x.toFixed(2));
  652. line.setAttribute('y2', y.toFixed(2));
  653. line.setAttribute('class', 'radar-spoke');
  654. spokesG.appendChild(line);
  655. }
  656. // Labels (position outside). ZH sits at a base radial distance; EN stacks
  657. // below it with a fixed vertical offset to avoid overlap on the side axes.
  658. const labelsG = document.getElementById('radarLabels');
  659. AXES.forEach((axis, i) => {
  660. const angle = -Math.PI / 2 + (2 * Math.PI * i) / N;
  661. const dirX = Math.cos(angle);
  662. const dirY = Math.sin(angle);
  663. // text-anchor based on horizontal direction
  664. let anchor = 'middle';
  665. if (dirX > 0.3) anchor = 'start';
  666. else if (dirX < -0.3) anchor = 'end';
  667. const baseRadial = RADIUS + 36;
  668. const [bx, by] = axisPoint(i, baseRadial);
  669. // Title Case serif italic label (only one per axis in EN)
  670. const zhText = document.createElementNS('http://www.w3.org/2000/svg', 'text');
  671. zhText.setAttribute('x', bx.toFixed(2));
  672. zhText.setAttribute('y', by.toFixed(2));
  673. zhText.setAttribute('text-anchor', anchor);
  674. zhText.setAttribute('dominant-baseline', 'middle');
  675. zhText.setAttribute('class', 'radar-label-zh');
  676. zhText.textContent = axis.zh;
  677. labelsG.appendChild(zhText);
  678. });
  679. // Points (initial: center)
  680. const pointsG = document.getElementById('radarPoints');
  681. const pointEls = AXES.map((axis, i) => {
  682. const circle = document.createElementNS('http://www.w3.org/2000/svg', 'circle');
  683. circle.setAttribute('cx', 0);
  684. circle.setAttribute('cy', 0);
  685. circle.setAttribute('r', 5);
  686. circle.setAttribute('class', 'radar-point');
  687. circle.setAttribute('opacity', '0');
  688. pointsG.appendChild(circle);
  689. return circle;
  690. });
  691. const radarPoly = document.getElementById('radarPoly');
  692. // ============ Timeline (10s) ============
  693. // Beat 1 (0-2s): title + subject enters
  694. // Beat 2 (2-8s):
  695. // 2.0-3.8: light sweep top → bottom (1.8s)
  696. // 3.2-4.8: radar grid fades in + polygon + points grow from center
  697. // 4.8-5.2: score count up
  698. // 5.0-6.0: Keep col ripple in
  699. // 5.5-6.5: Fix col ripple in
  700. // 6.0-7.0: Quick Wins col ripple in
  701. // 7.0-8.0: hold
  702. // Beat 3 (8-10s): push-in camera to fix[0] + pulse (8-9), brand reveal (8.0-10.0)
  703. const titleLine = document.getElementById('titleLine');
  704. const subject = document.getElementById('subject');
  705. const sweep = document.getElementById('sweep');
  706. const sweepLine = document.getElementById('sweepLine');
  707. const radarTitle = document.getElementById('radarTitle');
  708. const radarWrap = document.getElementById('radarWrap');
  709. const radarTotal = document.getElementById('radarTotal');
  710. const scoreNum = document.getElementById('scoreNum');
  711. const fixLane = document.getElementById('fixLane');
  712. const fixPulse = document.getElementById('fixPulse');
  713. const camera = document.getElementById('camera');
  714. const stageDimmer = document.getElementById('stageDimmer');
  715. const brandPanel = document.getElementById('brandPanel');
  716. const brandMark = document.getElementById('brandMark');
  717. const brandLine = document.getElementById('brandLine');
  718. const DURATION = 10.0;
  719. let startTime = null;
  720. let loop = true;
  721. if (window.__recording === true) loop = false;
  722. function tick(now) {
  723. if (startTime === null) startTime = now;
  724. let t = (now - startTime) / 1000;
  725. if (t >= DURATION) {
  726. if (loop) { startTime = now; t = 0; }
  727. else { t = DURATION; }
  728. }
  729. // Title fade in/out
  730. const titleIn = seg(t, 0.2, 1.2);
  731. const titleOut = seg(t, 7.6, 8.0);
  732. titleLine.style.opacity = Math.min(cubicOut(titleIn), 1 - titleOut);
  733. titleLine.style.transform = `translateX(-50%) translateY(${lerp(titleIn, -6, 0, cubicOut)}px)`;
  734. // Subject appears Beat 1
  735. const subjectIn = seg(t, 0.4, 1.8);
  736. subject.style.opacity = expoOut(subjectIn);
  737. subject.style.transform = `translateY(${lerp(subjectIn, 14, 0, expoOut)}px)`;
  738. // Subject dims after sweep completes (during Beat 2 to keep focus right)
  739. const subjectDim = seg(t, 4.4, 5.6);
  740. const dimFactor = lerp(subjectDim, 1.0, 0.38, cubicInOut);
  741. subject.style.filter = `saturate(${lerp(subjectDim, 1.0, 0.5, cubicInOut)}) brightness(${dimFactor})`;
  742. // Light sweep: 2.0-3.8 top to bottom
  743. const sweepProgress = seg(t, 2.0, 3.8);
  744. const sweepOp = (t < 2.0 || t > 4.2) ? 0 :
  745. (t < 2.2 ? seg(t, 2.0, 2.2) :
  746. t < 3.7 ? 1 :
  747. 1 - seg(t, 3.7, 4.2));
  748. sweep.style.opacity = sweepOp * 0.95;
  749. sweepLine.style.opacity = sweepOp * 1.0;
  750. // Move from y=250 to y=700 (subject top 310 to bottom 770)
  751. const sweepY = lerp(sweepProgress, -70, 410, cubicInOut);
  752. sweep.style.transform = `translateY(${sweepY}px)`;
  753. sweepLine.style.transform = `translateY(${sweepY + 70}px)`;
  754. // Radar title + wrap appear 3.2
  755. const radarIn = seg(t, 3.2, 4.0);
  756. radarTitle.style.opacity = cubicOut(radarIn);
  757. radarWrap.style.opacity = cubicOut(radarIn);
  758. radarWrap.style.transform = `scale(${lerp(radarIn, 0.92, 1.0, expoOut)})`;
  759. // Radar grid strokes already visible once wrap fades; animate grid via stroke-dasharray trick would be overkill.
  760. // Instead, grow polygon + points from center (3.6-4.8)
  761. const polyGrow = seg(t, 3.6, 4.8);
  762. const polyT = expoOut(polyGrow);
  763. const polyPts = [];
  764. AXES.forEach((axis, i) => {
  765. const targetR = (axis.score / 10) * RADIUS;
  766. const r = targetR * polyT;
  767. const [x, y] = axisPoint(i, r);
  768. polyPts.push(`${x.toFixed(2)},${y.toFixed(2)}`);
  769. const pt = pointEls[i];
  770. pt.setAttribute('cx', x.toFixed(2));
  771. pt.setAttribute('cy', y.toFixed(2));
  772. pt.setAttribute('opacity', polyT.toFixed(2));
  773. });
  774. radarPoly.setAttribute('points', polyPts.join(' '));
  775. // EN labels fade in slightly later
  776. const enLabelIn = seg(t, 4.2, 4.8);
  777. document.querySelectorAll('[data-type="en-label"]').forEach(el => {
  778. el.setAttribute('opacity', cubicOut(enLabelIn).toFixed(2));
  779. });
  780. // Score count up 4.6-5.4, target total = 37
  781. const scoreT = seg(t, 4.6, 5.4);
  782. const total = AXES.reduce((s, a) => s + a.score, 0); // 37
  783. const shown = Math.round(lerp(scoreT, 0, total, cubicOut));
  784. scoreNum.textContent = shown;
  785. radarTotal.style.opacity = cubicOut(seg(t, 4.4, 5.0));
  786. // Fix lane ripple in (5.3-6.1)
  787. const fixRip = seg(t, 5.3, 6.1);
  788. fixLane.style.opacity = expoOut(fixRip);
  789. fixLane.style.transform = `translateY(${lerp(fixRip, 24, 0, expoOut)}px)`;
  790. // Beat 3: Push-in camera to Fix row + pulse (7.4-8.0)
  791. const pushT = seg(t, 7.4, 8.0);
  792. const scale = lerp(pushT, 1.0, 1.18, cubicInOut);
  793. camera.style.transform = `scale(${scale})`;
  794. // Fix pulse border: blink 2 times between 7.6-8.0
  795. const pulseOp = t < 7.6 ? 0 :
  796. t < 8.0 ? (0.4 + 0.6 * Math.abs(Math.sin((t - 7.6) * Math.PI * 2.4))) :
  797. 0;
  798. fixPulse.style.opacity = pulseOp;
  799. // ============ Brand Reveal (hero-v10 signature, aligned) ============
  800. // [T-2.0 → T-1.7s] i.e. 8.0-8.3: scene fade to black (0.3s)
  801. const soK = seg(t, 8.0, 8.3);
  802. stageDimmer.style.opacity = cubicOut(soK);
  803. const sceneFade = seg(t, 8.0, 8.3);
  804. camera.style.opacity = 1 - cubicOut(sceneFade);
  805. // [T-1.7 → T-1.3s] i.e. 8.3-8.7: cream panel slides from bottom (0.4s, expoOut)
  806. const panelT = seg(t, 8.3, 8.7);
  807. const panelY = lerp(panelT, 100, 0, expoOut);
  808. brandPanel.style.transform = `translateY(${panelY}%)`;
  809. // [T-1.3 → T-0.7s] i.e. 8.7-9.3: wordmark wght 100→500 + y 20→0 + opacity 0→1 (0.6s)
  810. const markT = seg(t, 8.7, 9.3);
  811. const markE = expoOut(markT);
  812. const wght = 100 + (500 - 100) * markE;
  813. brandMark.style.opacity = markE;
  814. brandMark.style.transform = `translateY(${20 * (1 - markE)}px)`;
  815. brandMark.style.fontWeight = Math.round(wght);
  816. brandMark.style.fontVariationSettings = `"wght" ${wght.toFixed(0)}`;
  817. // [T-0.7 → T-0.3s] i.e. 9.3-9.7: orange line width 0→280 (0.4s, cubicOut)
  818. const lineT = seg(t, 9.3, 9.7);
  819. brandLine.style.width = `${lerp(lineT, 0, 280, cubicOut)}px`;
  820. // [T-0.3 → T] hold
  821. if (!window.__ready) window.__ready = true;
  822. if (loop || t < DURATION) requestAnimationFrame(tick);
  823. }
  824. (document.fonts && document.fonts.ready ? document.fonts.ready : Promise.resolve())
  825. .then(() => requestAnimationFrame(tick));
  826. </script>
  827. </body>
  828. </html>