:root {
  --paper: #F0F3F1;
  --ink: #17232B;
  --muted: #65716F;
  --line: #D8DFDA;
  --soft: #E8EDE9;
  --accent: #F05A38;
  --link: #BE3E21;
  --dark: #17232B;
  --dark-muted: #a1a1a6;
  --space: clamp(24px, 5vw, 80px);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; }
button, input, textarea { font: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; color: inherit; border: 0; }
button:disabled { cursor: default; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure { margin: 0; }
p { line-height: 1.75; }
h1, h2, h3 { font-weight: 650; }
h2 { font-size: clamp(32px, 4vw, 56px); line-height: 1.25; letter-spacing: -.045em; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.wrap { width: calc(100% - var(--space) * 2); max-width: 1200px; margin-inline: auto; }
.eyebrow { font-size: 11px; font-weight: 600; line-height: 1.5; letter-spacing: .12em; }
.subtle { color: var(--muted); }
.status-dot { display: inline-block; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; margin-right: 8px; }
.skip-link { position: fixed; top: -80px; left: 20px; background: #fff; color: #000; padding: 16px; z-index: 99; }
.skip-link:focus { top: 16px; }
.site-header { width: 100%; max-width: none; padding-inline: max(var(--space), calc((100% - 1200px) / 2)); height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--paper); border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; align-items: center; flex-shrink: 0; }
.site-header nav { display: flex; align-items: center; gap: 32px; font-size: 12px; }
.site-header nav a { color: var(--muted); transition: color .2s; }
.site-header nav a:hover { color: var(--ink); }
.nav-count { font-size: 9px; margin-left: 4px; vertical-align: super; }
.nav-idea { background: var(--ink); color: #fff; padding: 9px 16px; border-radius: 999px; font-size: 11px; display: inline-flex; gap: 16px; }
.text-link { display: inline-flex; align-items: center; gap: 14px; background: transparent; color: var(--link); font-size: 14px; font-weight: 500; line-height: 1.5; padding: 4px 0; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.text-link span { font-size: 18px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 19px; min-height: 44px; padding: 12px 23px; border-radius: 999px; font-size: 13px; font-weight: 500; line-height: 1.4; transition: background .2s, transform .25s; }
.button:hover { transform: translateY(-1px); }
.button-dark { background: var(--ink); color: #fff; }
.button-orange { background: var(--accent); color: var(--ink); font-weight: 650; }
.button-dark:hover { background: #31434A; }
.button-orange:hover { background: #FF7150; }
.button-outline { background: transparent; border: 1px solid var(--accent); color: var(--link); }
.button-outline:hover { background: #F05A380C; }
.tag { display: inline-flex; border: 1px solid var(--line); padding: 5px 10px; font-size: 10px; border-radius: 999px; white-space: nowrap; }
.section-space { padding-block: 105px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 48px; margin-bottom: 45px; }
.section-heading .eyebrow { margin-bottom: 18px; color: var(--muted); }
.section-heading > p { color: var(--muted); font-size: 14px; }
.site-footer { min-height: 110px; display: flex; justify-content: space-between; align-items: center; gap: 20px; border-top: 1px solid var(--line); }
.site-footer > p { font-size: 11px; color: var(--muted); }
.site-footer > span { font-size: 9px; color: var(--muted); letter-spacing: .06em; }
.site-footer .text-link { font-size: 12px; }
/* Product launch and gallery */
.product-intro { width: 100%; max-width: none; padding: 26px max(var(--space), calc((100% - 1200px) / 2)) 35px; background: #000; color: #f5f5f7; }
.back-link { color: var(--dark-muted); font-size: 12px; }
.back-link:hover { color: #fff; }
.product-title-row { display: flex; justify-content: center; align-items: center; flex-direction: column; gap: 19px; padding-top: 18px; text-align: center; }
.product-title-row .eyebrow { font-size: 10px; letter-spacing: .15em; color: var(--dark-muted); margin-bottom: 15px; }
.product-title-row h1 { font-size: 72px; line-height: 1.1; letter-spacing: -.055em; }
.product-title-row h1 > span { font-size: 27px; font-weight: 450; letter-spacing: .08em; margin-left: 22px; vertical-align: middle; color: #c1c1c9; }
.product-intro-copy > p { font-size: 30px; line-height: 1.4; font-weight: 600; letter-spacing: -.035em; color: #F4A28C; }
.product-intro-copy > span:last-child { display: block; font-size: 13px; color: var(--dark-muted); margin-top: 12px; }
.gallery { width: 100%; max-width: none; background: #000; color: #f5f5f7; }
.gallery-stage { position: relative; max-width: 1440px; margin-inline: auto; aspect-ratio: 2.55; overflow: hidden; background: #000; }
.gallery-stage > img { width: 100%; height: 100%; object-fit: contain; }
.gallery-counter { position: absolute; top: 25px; left: 40px; font-size: 10px; letter-spacing: .1em; color: #a1a1a6; }
.gallery-bottom { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 18px max(var(--space), calc((100% - 1200px) / 2)) 26px; }
.gallery-bottom > p { color: var(--dark-muted); font-size: 12px; }
.gallery-thumbnails { display: flex; gap: 9px; }
.gallery-thumbnails button { width: 65px; height: 46px; background: #252529; border: 1px solid transparent; padding: 3px; border-radius: 9px; overflow: hidden; }
.gallery-thumbnails img { width: 100%; height: 100%; object-fit: cover; border-radius: 5px; }
.gallery-thumbnails button[aria-pressed=true] { border-color: var(--accent); }
.project-nav { position: sticky; top: 0; z-index: 5; background: #ffffffdf; backdrop-filter: saturate(160%) blur(20px); border-bottom: 1px solid #d2d2d7aa; }
.project-nav-inner { display: flex; align-items: center; justify-content: space-between; min-height: 70px; gap: 20px; }
.project-nav nav { display: flex; gap: 30px; font-size: 12px; }
.project-nav nav a { display: inline-flex; align-items: center; min-height: 36px; }
.project-nav nav a:hover { color: var(--link); }
.project-nav .button { min-height: 36px; padding: 9px 17px; font-size: 11px; }
.story-section { display: grid; grid-template-columns: 1fr 1fr; gap: 12%; }
.story-section .eyebrow { color: var(--muted); margin-bottom: 22px; }
.story-copy > p { font-size: 15px; color: var(--muted); margin-bottom: 21px; }
.story-copy > p:last-child { margin-bottom: 0; }
.story-copy > .large-copy { font-size: 21px; font-weight: 500; color: var(--ink); line-height: 1.7; }
.wide-figure > img { width: 100%; aspect-ratio: 2.1; object-fit: cover; border-radius: 24px; }
.wide-figure figcaption { display: flex; justify-content: space-between; gap: 20px; padding-top: 17px; font-size: 11px; color: var(--muted); }
/* Interaction and energy */
.mode-layout { display: grid; grid-template-columns: 1fr 1fr; border-radius: 24px; background: #101013; overflow: hidden; }
.mode-panel { color: #f5f5f7; padding: 36px 40px 42px; }
.mode-tabs { display: flex; justify-content: space-between; gap: 10px; padding: 5px; background: #2b2b30; border-radius: 999px; }
.mode-tabs > button { min-height: 36px; background: transparent; color: #d2d2d7; font-size: 12px; padding: 8px 18px; border-radius: 999px; }
.mode-tabs > button[aria-selected=true] { background: var(--accent); color: var(--ink); }
.mode-code { display: block; color: #a1a1a6; font-size: 10px; letter-spacing: .13em; margin-top: 37px; }
.mode-panel h3 { font-size: 30px; line-height: 1.5; letter-spacing: -.035em; margin-top: 18px; }
.mode-panel p { color: #c2c2c9; font-size: 14px; margin-top: 20px; min-height: 74px; }
.mode-note { display: block; color: #a1a1a6; font-size: 10px; line-height: 1.8; margin-top: 25px; }
.mode-image img { width: 100%; height: 100%; object-fit: cover; }
.material-story { position: relative; background: #000; color: #f5f5f7; overflow: hidden; isolation: isolate; aspect-ratio: 2.25; border-radius: 24px; margin-bottom: 100px; }
.material-story > img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; object-fit: cover; }
.material-story > div { position: absolute; right: 5%; top: 26%; width: 27%; }
.material-story .eyebrow { color: #a1a1a6; font-size: 9px; }
.material-story h2 { font-size: 36px; margin-block: 20px 17px; }
.material-story p:not(.eyebrow) { font-size: 13px; color: #c2c2c9; }
.energy-section { padding-block: 100px; background: var(--soft); }
.energy-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 12%; }
.energy-copy > .eyebrow { color: var(--muted); margin-bottom: 23px; }
.energy-copy > p { font-size: 15px; margin-top: 22px; }
.energy-copy > .subtle { font-size: 13px; max-width: 410px; }
.energy-copy details { font-size: 12px; color: var(--muted); margin-top: 27px; }
summary { cursor: pointer; padding-block: 10px; color: var(--link); }
details p { margin-top: 12px; }
.calculator { padding: 32px; background: #fff; border-radius: 24px; }
.calculator-label { display: flex; justify-content: space-between; font-size: 10px; letter-spacing: .07em; border-bottom: 1px solid #e5e5e7; padding-bottom: 22px; margin-bottom: 28px; }
.calculator-label > span { font-size: 18px; }
.range-label { display: flex; justify-content: space-between; font-size: 13px; margin-top: 24px; }
.range-label output { font-size: 14px; font-variant-numeric: tabular-nums; }
input[type=range] { width: 100%; display: block; min-height: 24px; cursor: pointer; accent-color: var(--accent); margin: 18px 0 28px; }
.energy-results { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #e5e5e7; padding-top: 25px; }
.energy-results > div > span { font-size: 11px; color: var(--muted); }
.energy-results strong { display: block; font-size: 48px; font-weight: 500; line-height: 1.2; letter-spacing: -.055em; font-variant-numeric: tabular-nums; margin-top: 13px; }
.energy-results small { font-size: 18px; letter-spacing: 0; }
.energy-meter { height: 5px; background: #e5e5e7; border-radius: 5px; overflow: hidden; margin-block: 23px 13px; }
.energy-meter > span { display: block; width: 49.2%; height: 100%; background: var(--accent); transition: width .15s; }
.energy-balance { font-size: 11px; }
.calculator-footnote { font-size: 10px; color: var(--muted); margin-top: 13px; }
/* Research and participation */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; align-items: start; gap: 25px; padding: 27px 0 32px 12px; border-top: 1px solid var(--line); }
.timeline-dot { width: 9px; height: 9px; border: 1px solid #86868b; border-radius: 50%; margin-top: 5px; flex-shrink: 0; }
.current .timeline-dot { background: var(--accent); border-color: var(--accent); }
.timeline .eyebrow { color: var(--muted); font-size: 10px; }
.timeline h3 { font-size: 22px; margin-block: 8px 7px; letter-spacing: -.02em; }
.timeline p { color: var(--muted); font-size: 14px; }
.timeline .tag { margin-left: auto; }
.research-files { display: grid; grid-template-columns: 1.4fr 1fr 1fr; align-items: center; gap: 30px; padding-block: 30px; border-block: 1px solid var(--line); }
.research-files .eyebrow { font-size: 9px; color: var(--muted); margin-bottom: 8px; }
.research-files h3 { font-size: 18px; }
.research-files > a { display: flex; flex-direction: column; gap: 11px; border-left: 1px solid var(--line); padding-left: 25px; font-size: 14px; color: var(--link); }
.research-files > a > span { font-size: 10px; color: var(--muted); }
.research-files > a:hover { text-decoration: underline; }
.participate-section { padding-block: 90px; background: var(--soft); }
.participate-inner { text-align: center; }
.participate-inner .eyebrow { color: var(--muted); }
.participate-inner h2 { font-size: clamp(42px,5vw,68px); margin-top: 25px; }
.participate-inner > p:not(.eyebrow) { color: var(--muted); font-size: 15px; margin-top: 24px; }
.participate-actions { display: flex; justify-content: center; gap: 15px; margin-block: 30px 22px; }
.participate-inner small { display: block; color: var(--muted); font-size: 10px; line-height: 1.8; }
[hidden] { display: none !important; }
/* Native modal and feedback */
.toast { position: fixed; z-index: 30; bottom: 24px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); padding: 15px 23px; background: #26262beF; backdrop-filter: blur(20px); color: #fff; border: 1px solid #ffffff18; border-radius: 999px; font-size: 13px; box-shadow: 0 8px 30px #0002; }
.toast[hidden] { display: none; }
.note-dialog { width: min(540px,calc(100% - 32px)); max-height: 90dvh; overflow: auto; padding: 34px; background: #fff; color: var(--ink); border: 1px solid #ffffff4d; border-radius: 26px; box-shadow: 0 30px 100px #0005; }
.note-dialog::backdrop { background: #0008; backdrop-filter: blur(12px); }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.dialog-heading h2 { font-size: 28px; }
.dialog-close { width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; background: #ededf0; color: #626267; font-size: 25px; line-height: 1; }
.note-dialog > p { color: var(--muted); font-size: 13px; margin-block: 17px 27px; }
.note-dialog label { display: block; font-size: 13px; margin-bottom: 11px; }
.note-dialog label small { color: var(--muted); font-size: 10px; margin-left: 7px; }
.note-dialog input[type=text], .note-dialog textarea { display: block; width: 100%; border: 1px solid #b8b8bd; border-radius: 12px; padding: 14px; background: #fff; color: var(--ink); font-size: 14px; line-height: 1.6; }
.note-dialog input[type=text] { margin-bottom: 22px; }
.note-dialog textarea { resize: vertical; min-height: 150px; }
.note-dialog .honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-help { display: block; color: var(--muted); font-size: 10px; line-height: 1.7; margin-top: 13px; }
.dialog-actions { display: flex; gap: 10px; margin-top: 23px; }
.note-status { min-height: 22px; color: var(--muted); font-size: 12px; margin-top: 13px; }
.note-dialog .button:disabled { opacity: .55; transform: none; }
@media (max-width: 1024px) {
  .mode-panel { padding: 28px; }
  .mode-tabs > button { padding-inline: 13px; }
  .mode-panel h3 { font-size: 25px; }
  .mode-panel p { font-size: 13px; }
  .energy-inner { gap: 6%; }
  .energy-results strong { font-size: 41px; }
  .calculator { padding: 27px; }
  .material-story h2 { font-size: 30px; }
  .research-files { gap: 20px; }
  .research-files h3 { font-size: 16px; }
}
@media (max-width: 767px) {
  :root { --space: 24px; }
  html { scroll-padding-top: 75px; }
  h2 { font-size: 34px; line-height: 1.3; }
  .site-header { height: 64px; gap: 15px; }
  .site-header nav { gap: 16px; font-size: 11px; }
  .site-header nav > a:first-child, .site-header nav > a:nth-child(3) { display: none; }
  .nav-idea { padding: 8px 13px; gap: 10px; font-size: 10px; }
  .section-space { padding-block: 65px; }
  .section-heading { flex-direction: column; align-items: start; gap: 23px; margin-bottom: 30px; }
  .section-heading .eyebrow { font-size: 9px; margin-bottom: 16px; }
  .section-heading > p { font-size: 12px; }
  .board-meta { font-size: 10px; padding-block: 14px; }
  .idea-list { grid-template-columns: 1fr; gap: 16px; padding-top: 18px; }
  .idea-entry { border-radius: 19px; padding: 25px; }
  .idea-entry h3 { font-size: 21px; }
  .idea-entry > p { font-size: 13px; }
  .board-empty { text-align: left; padding: 30px 25px; border-radius: 20px; font-size: 12px; }
  .board-empty strong { font-size: 21px; line-height: 1.5; }
  .site-footer { display: grid; grid-template-columns: 1fr 1fr; padding-block: 24px; gap: 15px; }
  .site-footer > p { font-size: 10px; text-align: right; }
  .site-footer > span { grid-column: 1/-1; font-size: 8px; }
  .site-footer .text-link { font-size: 11px; justify-self: end; }
  .product-intro { padding: 22px 24px 28px; }
  .back-link { font-size: 11px; }
  .product-title-row { padding-top: 30px; gap: 22px; }
  .product-title-row .eyebrow { font-size: 8px; }
  .product-title-row h1 { font-size: 57px; }
  .product-title-row h1 > span { display: block; font-size: 16px; letter-spacing: .12em; margin: 14px 0 0; }
  .product-intro-copy > p { font-size: 25px; }
  .product-intro-copy > span:last-child { font-size: 11px; margin-top: 11px; }
  .gallery-stage { aspect-ratio: 1.55; }
  .gallery-stage > img { object-fit: cover; object-position: 78% center; }
  .gallery-counter { top: 15px; left: 24px; font-size: 9px; }
  .gallery-bottom { flex-direction: column; align-items: center; gap: 15px; padding: 15px 24px 25px; }
  .gallery-bottom > p { font-size: 10px; text-align: center; min-height: 18px; }
  .gallery-thumbnails { gap: 8px; }
  .gallery-thumbnails button { width: 54px; height: 44px; }
  .project-nav-inner { min-height: 57px; }
  .project-nav nav { justify-content: space-between; width: 100%; gap: 15px; font-size: 11px; }
  .project-nav .button { display: none; }
  .story-section { grid-template-columns: 1fr; gap: 28px; }
  .story-section .eyebrow { font-size: 9px; margin-bottom: 18px; }
  .story-copy > .large-copy { font-size: 18px; }
  .story-copy > p { font-size: 13px; margin-bottom: 17px; }
  .wide-figure > img { border-radius: 20px; aspect-ratio: 1.45; }
  .wide-figure figcaption { flex-direction: column; gap: 7px; font-size: 9px; padding-top: 14px; }
  .mode-layout { grid-template-columns: 1fr; border-radius: 22px; }
  .mode-panel { padding: 25px; }
  .mode-tabs { gap: 3px; }
  .mode-tabs > button { font-size: 11px; padding-inline: 15px; }
  .mode-code { margin-top: 28px; font-size: 9px; }
  .mode-panel h3 { font-size: 25px; line-height: 1.5; margin-top: 16px; }
  .mode-panel p { font-size: 13px; min-height: 70px; margin-top: 18px; }
  .mode-note { font-size: 9px; margin-top: 18px; }
  .mode-image { aspect-ratio: 1.6; }
  .material-story { aspect-ratio: auto; min-height: 440px; border-radius: 22px; margin-bottom: 65px; }
  .material-story > img { object-position: 38% center; }
  .material-story::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg,#000e,transparent 80%); z-index: -1; }
  .material-story > div { left: 25px; right: auto; top: auto; bottom: 50px; width: 80%; }
  .material-story h2 { font-size: 31px; margin-block: 14px; }
  .material-story p:not(.eyebrow) { font-size: 12px; }
  .energy-section { padding-block: 65px; }
  .energy-inner { grid-template-columns: 1fr; gap: 32px; }
  .energy-copy > .eyebrow { font-size: 9px; margin-bottom: 18px; }
  .energy-copy > p { font-size: 13px; margin-top: 20px; }
  .energy-copy > .subtle { font-size: 12px; }
  .energy-copy details { font-size: 11px; margin-top: 18px; }
  .calculator { padding: 25px; border-radius: 22px; }
  .calculator-label { font-size: 9px; }
  .energy-results strong { font-size: 43px; }
  .timeline li { gap: 17px; padding-left: 0; }
  .timeline h3 { font-size: 20px; }
  .timeline p { font-size: 13px; }
  .timeline .tag { font-size: 9px; padding: 5px 8px; }
  .research-files { grid-template-columns: 1fr; padding-block: 25px; gap: 22px; }
  .research-files h3 { font-size: 18px; }
  .research-files > a { border-left: 0; border-top: 1px solid var(--line); padding: 19px 0 0; flex-direction: row; justify-content: space-between; align-items: center; font-size: 13px; }
  .research-files > a > span { font-size: 9px; }
  .participate-section { padding-block: 65px; }
  .participate-inner .eyebrow { font-size: 8px; }
  .participate-inner h2 { font-size: 44px; }
  .participate-inner > p:not(.eyebrow) { font-size: 13px; }
  .participate-actions { gap: 10px; }
  .participate-actions .button { font-size: 12px; padding: 12px 18px; gap: 13px; }
  .participate-inner small { font-size: 9px; }
  .note-dialog { padding: 26px; border-radius: 22px; }
  .dialog-heading h2 { font-size: 25px; }
  .note-dialog > p { font-size: 12px; }
  .note-dialog .button { font-size: 12px; }
  .toast { border-radius: 18px; font-size: 12px; }
}
@media (max-width: 380px) {
  :root { --space: 20px; }
  .site-header { padding-inline: 20px; }
  .site-header nav { gap: 12px; }
  .nav-idea { font-size: 9px; gap: 8px; }
  .gallery-thumbnails { gap: 6px; }
  .gallery-thumbnails button { width: 48px; }
  .mode-panel { padding: 22px; }
  .mode-tabs > button { padding-inline: 12px; }
  .calculator { padding: 22px; }
  .energy-results strong { font-size: 37px; }
  .timeline .tag { display: none; }
  .participate-actions { flex-direction: column; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media (max-width: 767px) {
  .gallery-stage > img { object-fit: contain; }
  .gallery-stage > img[src*="palmform-hero-v3"] { object-fit: cover; object-position: 78% center; }
}

/* Reference-matched hahafake wordmark and smile identity. */
.brand-logo { display: block; width: 156px; height: auto; }
.brand-logo-light { display: none; }
.site-footer .brand-logo { width: 136px; }
@media (max-width: 767px) {
  .site-header .brand-logo { width: 139px; }
  .site-footer .brand-logo { width: 130px; }
}
@media (max-width: 380px) {
  .site-header .brand-logo { width: 124px; }
}
