    .sr-only {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }

    @font-face {
      font-family: 'Breton';
      src: url('../assets/fonts/Breton.woff2') format('opentype');
      font-weight: normal; font-style: normal; font-display: block;
    }
    @font-face {
      font-family: 'other';
      src: url('../assets/fonts/Machine.otf') format('opentype');
      font-weight: normal; font-style: normal; font-display: block;
    }

    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { width: 100%; height: 100%; scrollbar-width: none; overflow: hidden; }
    html::-webkit-scrollbar { display: none; }
    body {
      width: 100%; height: 100%; overflow: hidden;
      background: #0a0a0a; color: #f0f0f0;
      font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
      -webkit-font-smoothing: antialiased;
    }

    .page-title {
      position: fixed;
      top: 3rem; left: 3rem;
      z-index: 10000;
      font-family: 'Breton', sans-serif;
      font-size: clamp(2.5rem, 5vw, 4.5rem);
      font-weight: 300;
      letter-spacing: -0.02em;
      color: #f0f0f0;
      line-height: 1.2;
      pointer-events: none;
    }

    .back-btn {
      position: fixed;
      top: 3rem; right: 3rem;
      z-index: 100;
      text-decoration: none;
      cursor: pointer;
      opacity: 0;
    }
    .chr-hover {
      display: inline-flex; gap: 0;
      cursor: pointer; text-decoration: none; color: inherit;
    }
    .ch-wrap {
      position: relative; overflow: hidden; display: inline-block;
    }
    .ch-top, .ch-bot {
      display: block;
      font-family: 'Inter', sans-serif;
      font-size: 1.1rem; font-weight: 600;
      letter-spacing: 0em; text-transform: uppercase;
      line-height: 1.2;
      color: rgba(255,255,255,0.5);
      transition: transform 0.6s cubic-bezier(0.87, 0, 0.13, 1), color 0.3s ease;
      transition-delay: calc(var(--i) * 28ms);
    }
    .ch-bot { position: absolute; top: 100%; left: 0; }
    .chr-hover:hover .ch-top { transform: translateY(-100%); }
    .chr-hover:hover .ch-bot { transform: translateY(-100%); }
    .chr-hover:hover .ch-top,
    .chr-hover:hover .ch-bot { color: rgba(255,255,255,0.9); }

    .scroll-hint {
      position: fixed;
      bottom: 3rem; left: 3rem;
      z-index: 100;
      font-family: 'Inter', sans-serif;
      font-size: 0.65rem; font-weight: 600;
      letter-spacing: 0.12em; text-transform: uppercase;
      color: rgba(255,255,255,0.25);
      opacity: 0;
    }

    
    .cube-viewport {
      position: fixed;
      top: 50%; left: 50%;
      transform: translate(-50%, -50%);
      width: min(90vw, 1400px);
      height: min(80vh, 800px);
      border-radius: 242px;
      overflow: hidden;
      z-index: 10;
      opacity: 0;
    }
    .cube-viewport::after {
      content: '';
      position: absolute; inset: 0;
      border-radius: 242px;
      box-shadow: inset 0 0 80px rgba(0,0,0,0.45);
      pointer-events: none;
      z-index: 20;
    }
    .cube-scene {
      width: 100%; height: 100%;
      perspective: 1600px;
    }
    .cube {
      position: relative;
      width: 100%; height: 100%;
      transform-style: preserve-3d;
      will-change: transform;
    }
    .cube-face {
      position: absolute;
      width: 100%; height: 100%;
      backface-visibility: hidden;
      overflow: hidden;
    }

    
    .face-content {
      position: relative; width: 100%; height: 100%; display: flex;
    }
    .face-content.layout-left { flex-direction: row; }
    .face-content.layout-right { flex-direction: row-reverse; }

    .face-cover {
      position: relative; width: 66.666%; height: 100%;
      overflow: hidden; flex-shrink: 0;
    }
    .face-cover img {
      width: 100%; height: 100%; object-fit: cover; display: block;
      -webkit-user-drag: none; user-select: none; pointer-events: none;
    }
    .face-cover::after {
      content: ''; position: absolute; inset: 0;
      background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0) 35%, rgba(0,0,0,0) 65%, rgba(0,0,0,0.3) 100%);
      pointer-events: none;
    }
    .face-name {
      position: absolute; z-index: 2;
      font-family: 'Breton', sans-serif;
      font-size: clamp(1.8rem, 3.5vw, 3.5rem);
      font-weight: 300; letter-spacing: -0.02em;
      color: #f0f0f0; line-height: 1.15;
      text-shadow: 0 2px 30px rgba(0,0,0,0.6);
      max-width: 80%;
    }
    .layout-left .face-name { top: 2rem; right: 2rem; text-align: right; }
    .layout-right .face-name { top: 2rem; left: 2rem; }

    .face-info {
      position: relative; width: 33.333%; height: 100%;
      display: flex; flex-direction: column; justify-content: center;
      padding: 2.5rem; overflow: hidden; flex-shrink: 0;
    }
    .face-info-bg {
      position: absolute; inset: -40px; z-index: 0;
      filter: blur(80px) saturate(1.6); opacity: 0.7;
    }
    .face-info-bg img {
      width: 100%; height: 100%; object-fit: cover; transform: scale(1.5);
      -webkit-user-drag: none; user-select: none; pointer-events: none;
    }
    .face-info::before {
      content: ''; position: absolute; inset: 0;
      background: rgba(10, 10, 10, 0.55); z-index: 1;
    }
    .face-info-content { position: relative; z-index: 2; }
    .face-category {
      font-family: 'Inter', sans-serif;
      font-size: 0.65rem; font-weight: 700;
      letter-spacing: 0.15em; text-transform: uppercase;
      color: rgba(255,255,255,0.45); margin-bottom: 1.2rem;
    }
    .face-year {
      font-family: 'other', sans-serif;
      font-size: 0.85rem; color: #ff1e00; margin-bottom: 1rem;
    }
    .face-desc {
      font-family: 'Breton', sans-serif;
      font-size: clamp(1.42rem, 1.45vw, 1.48rem);
      line-height: 1.75; color: rgba(255,255,255,0.55);
      margin-bottom: 1.5rem;
    }
    .face-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; }
    .face-tag {
      font-family: 'Inter', sans-serif;
      font-size: 0.6rem; font-weight: 600;
      letter-spacing: 0.08em; text-transform: uppercase;
      color: rgba(255,255,255,0.35);
      border: 1px solid rgba(255,255,255,0.12);
      padding: 0.35em 0.7em; border-radius: 50px;
    }

    
    .ruler {
      position: fixed;
      top: 50%;
      z-index: 15;
      opacity: 0;
      -webkit-mask-image: linear-gradient(180deg, transparent 0%, #fff 12%, #fff 88%, transparent 100%);
      mask-image: linear-gradient(180deg, transparent 0%, #fff 12%, #fff 88%, transparent 100%);
    }

    
    .counter-wrap {
      position: fixed;
      z-index: 15;
      display: flex;
      align-items: center;
      opacity: 0;
    }
    .counter-window {
      overflow: hidden;
      height: 2.4rem;
      -webkit-mask-image: linear-gradient(180deg, transparent 0%, #fff 25%, #fff 75%, transparent 100%);
      mask-image: linear-gradient(180deg, transparent 0%, #fff 25%, #fff 75%, transparent 100%);
    }
    .counter-strip {
      display: flex;
      flex-direction: column;
      will-change: transform;
    }
    .counter-num {
      font-family: 'Breton', sans-serif;
      font-size: 1.6rem;
      font-weight: 300;
      letter-spacing: -0.02em;
      color: #f0f0f0;
      line-height: 2.4rem;
      height: 2.4rem;
      text-align: left;
      white-space: nowrap;
    }
    .counter-num .dim {
      color: rgba(255,255,255,0.25);
    }

    
    .scroll-chevron {
      position: fixed;
      bottom: 2.5rem;
      left: 50%;
      transform: translateX(-50%);
      z-index: 100;
      pointer-events: none;
      opacity: 0;
    }
    .scroll-chevron svg {
      width: 28px;
      height: 28px;
      stroke: rgba(255,255,255,0.35);
      stroke-width: 2;
      fill: none;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .intro-overlay {
      position: fixed; inset: 0;
      background: #0a0a0a;
      z-index: 9999;
      pointer-events: none;
    }

    
    @media (max-width: 768px) {
      .cube-viewport { border-radius: 20px; }
      .face-content.layout-left,
      .face-content.layout-right { flex-direction: column; }
      .face-cover { width: 100%; height: 60%; }
      .face-info { width: 100%; height: 40%; padding: 1.2rem; }
      .layout-left .face-name { top: 1rem; right: 1rem; font-size: clamp(1.2rem, 5vw, 2rem); }
      .layout-right .face-name { top: 1rem; left: 1rem; font-size: clamp(1.2rem, 5vw, 2rem); }
      .face-desc { font-size: clamp(0.85rem, 2.8vw, 1.1rem); }
      .page-title { top: 1.5rem; left: 1.5rem; font-size: clamp(1.8rem, 7vw, 3rem); }
      .back-btn { top: 1.5rem; right: 1.5rem; }
      .scroll-hint { bottom: 1.5rem; left: 1.5rem; }
    }


@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
body.jstar-page .language-picker { position: relative; flex-shrink: 0; }
body.jstar-page .hero-bar { align-items: center; }
body.jstar-page .hero-bar:has(.language-trigger[aria-expanded="true"]) { clip-path: none !important; }
body.jstar-page .language-trigger {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 0 0 0 20px;
  border: 0;
  border-left: 1px solid #52627a;
  background: transparent;
  color: #f4f7fb;
  font: 500 14px/1.4 Inter, sans-serif;
  cursor: pointer;
}
body.jstar-page .language-trigger[aria-expanded="true"],
body.jstar-page .language-trigger:hover { color: #4388ff; }
body.jstar-page .language-chevron {
  display: block;
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  transform-box: view-box;
  transform-origin: 50% 50%;
  transition: transform 150ms;
}
body.jstar-page .language-trigger[aria-expanded="false"] .language-chevron { transform: rotate(180deg); }
body.jstar-page .language-options {
  position: fixed;
  inset: auto;
  margin: 0;
  width: 190px;
  padding: 6px;
  border: 1px solid #35445b;
  border-radius: 6px;
  background: #07101c;
  z-index: 20;
  box-shadow: 0 8px 28px #0003;
}
body.jstar-page .language-options[hidden] { display: none; }
body.jstar-page .language-options button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: #d6dfec;
  font: 400 14px/1.5 Inter, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  text-align: left;
  cursor: pointer;
}
body.jstar-page .language-options button::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  background: transparent;
}
body.jstar-page .language-options button[aria-pressed="true"]::before { background: #4388ff; }
body.jstar-page .language-options button:hover,
body.jstar-page .language-options button:focus-visible { background: #15253b; }
body.jstar-page .language-picker button:focus-visible { outline: 1px solid #4388ff; outline-offset: 2px; }
body.jstar-page .hero-bar-right { align-items: center; gap: clamp(14px, 1.6vw, 28px); }
body.jstar-page .footer-language { position: absolute; z-index: 3; right: 3.5vw; bottom: 1.1rem; }
html[lang^="zh"] body.jstar-page { font-family: Inter, 'PingFang SC', 'Microsoft YaHei', sans-serif; }
html[lang="zh-TW"] body.jstar-page { font-family: Inter, 'PingFang TC', 'Microsoft JhengHei', sans-serif; }
html[lang^="zh"] .jstar-page :is(.about-text, .about-sub, .reveal-phrase, .cg-phrase, .skills-text, .skills-subtitle, .skill-header-title, .contact-title, .contact-dispo, .ch-top, .ch-bot) {
  font-family: inherit;
  letter-spacing: 0;
  text-transform: none;
}
html[lang^="zh"] .jstar-page :is(.hero-tagline, .about-text, .cg-phrase, .contact-dispo) .other-accent {
  font-family: 'JSTAR Kai SC', 'Kaiti SC', 'STKaiti', 'KaiTi', '楷体', 'Kaiti TC', 'DFKai-SB', serif;
  font-style: normal;
  font-weight: 400;
}
html[lang^="zh"] .jstar-page :is(.about-text, .cg-phrase) { line-height: 1.35; }
html[lang="zh-TW"] .jstar-page :is(.hero-tagline, .about-text, .cg-phrase, .contact-dispo) .other-accent {
  font-family: 'JSTAR Kai TC', 'Kaiti TC', 'BiauKaiTC', 'DFKai-SB', '標楷體', 'STKaiti', 'KaiTi', serif;
}
html[lang^="zh"] .jstar-page .contact-dispo p { line-height: 1.65; }
html[lang="fr"] .jstar-page .contact-dispo { width: 18%; }
html[lang="fr"] .jstar-page .contact-dispo p { font-size: clamp(16px, 1.65vw, 27px); line-height: 1.25; }
body.jstar-page .detail-desc { overflow-wrap: anywhere; color: #b5c0d0; }
@media (max-width: 1180px) and (min-width: 769px) {
  body.jstar-page .hero-bar-center { gap: 10px; }
  body.jstar-page .hero-bar-right { gap: 12px; }
  body.jstar-page .language-trigger { padding-left: 12px; }
}
@media (max-width: 768px) {
  body.jstar-page .detail-title-wrap { flex-wrap: wrap; }
  body.jstar-page .detail-title { font-size: clamp(28px, 10vw, 48px); white-space: normal; overflow-wrap: anywhere; }
  body.jstar-page .hero-bar-right { display: flex; }
  body.jstar-page .hero-bar-right > a { display: none; }
  body.jstar-page .hero-bar-center { margin: 0; gap: 14px; }
  body.jstar-page .language-trigger { min-height: 44px; padding-left: 14px; }
  html[lang="fr"] .jstar-page .contact-dispo { width: 85%; }
  html[lang="fr"] .jstar-page .contact-dispo p { font-size: 20px; line-height: 1.4; }
}
@media (max-width: 600px) {
  body.jstar-page .footer-language { right: 7vw; bottom: 10vh; }
  body.jstar-page .footer-credit { right: 7vw; }
  body.jstar-page .footer-language .language-trigger { padding-left: 10px; font-size: 12px; }
}
body.jstar-work-page, .jstar-work-page .intro-overlay { background: #07101c; }
.mobile-work-list { display: none; }
.jstar-work-page .page-title { font-size: clamp(32px, 4vw, 60px); top: 2rem; }
.work-navigation { position: fixed; top: 2rem; right: 3rem; z-index: 10001; display: flex; align-items: center; gap: 24px; }
.jstar-work-page .back-btn { position: static; }
.jstar-work-page .ch-top, .jstar-work-page .ch-bot { color: #d6dfec; }
.jstar-work-page .cube-viewport { top: 51%; height: min(74vh, 800px); border-radius: 100px; }
.jstar-work-page .cube-viewport::after { border-radius: inherit; box-shadow: inset 0 0 45px #0004; }
.jstar-work-page .cube-face { transform-style: preserve-3d; overflow: visible; }
.jstar-work-page .face-info { padding: clamp(20px, 2.6vw, 42px); }
.jstar-work-page .face-info::before { background: #07101cbd; }
.jstar-work-page .face-name { font-size: clamp(24px, 3vw, 45px); overflow-wrap: anywhere; }
.jstar-work-page .face-category { color: #b7c7db; letter-spacing: .08em; line-height: 1.5; }
.jstar-work-page .face-year { color: #75a8ff; font: 500 14px/1.5 Inter, sans-serif; }
.jstar-work-page .face-desc { color: #e1e8f0; font: 400 clamp(15px, 1.25vw, 20px)/1.65 Inter, 'PingFang SC', 'Microsoft YaHei', sans-serif; margin-bottom: 18px; overflow-wrap: anywhere; }
.jstar-work-page .face-tag { color: #aebed2; border-color: #ffffff30; line-height: 1.5; text-transform: none; }
.work-project-link { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 12px; color: #8fb9ff; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.work-project-link:hover { color: white; }
.work-controls { position: fixed; z-index: 100; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 16px; }
.work-controls button { width: 44px; height: 44px; border: 1px solid #52627a; background: transparent; color: #d6dfec; border-radius: 50%; font-size: 20px; cursor: pointer; }
.work-controls button:hover { color: #75a8ff; border-color: #75a8ff; }
.work-controls span { font: 500 12px/1 Inter, sans-serif; color: #b7c7db; min-width: 56px; text-align: center; }
.jstar-work-page :is(a,button):focus-visible { outline: 2px solid #75a8ff; outline-offset: 4px; }
.jstar-work-page .scroll-chevron { display: none; }
html[lang^="zh"] .jstar-work-page :is(.page-title,.face-desc) { font-family: Inter, 'PingFang SC', 'Microsoft YaHei', sans-serif; }
html[lang^="zh"] .jstar-work-page .page-title { font-weight: 400; }
@media (max-width: 768px) {
  .jstar-work-page .page-title { top: 20px; left: 20px; font-size: 30px; }
  .work-navigation { top: 14px; right: 20px; gap: 14px; }
  .jstar-work-page .back-btn .ch-top,.jstar-work-page .back-btn .ch-bot { font-size: 12px; }
  .jstar-work-page .cube-viewport { width: calc(100vw - 32px); height: calc(100dvh - 160px); top: calc(50dvh - 2px); border-radius: 20px; }
  .jstar-work-page .face-cover { height: 34%; }
  .jstar-work-page .face-info { height: 66%; padding: 14px 18px; justify-content: center; }
  .jstar-work-page .face-name { font-size: 22px; max-width: calc(100% - 32px); }
  .jstar-work-page .face-category { display: inline; font-size: 10px; letter-spacing: .02em; }
  .jstar-work-page .face-year { display: inline-block; font-size: 12px; margin: 0 0 8px 12px; }
  .jstar-work-page .face-desc { font-size: 13px; line-height: 1.5; margin: 4px 0 6px; }
  .jstar-work-page .face-tag { font-size: 9px; }
  .jstar-work-page .work-project-link { margin-bottom: 4px; font-size: 13px; }
  .work-controls { bottom: 14px; }
  .jstar-work-page .ruler { opacity: .3 !important; }
}
@media (max-height: 650px) and (max-width: 768px) {
  .jstar-work-page .face-cover { height: 25%; }
  .jstar-work-page .face-info { height: 75%; padding: 10px 14px; }
  .jstar-work-page .face-desc { font-size: 12px; }
}

/* Touch layout: read projects in document flow, without a viewport-sized cube. */
@media (max-width: 768px) {
  html:has(.jstar-work-page) { height: auto; overflow-x: hidden; overflow-y: auto; }
  body.jstar-work-page { height: auto; min-height: 100dvh; overflow: visible; }
  .jstar-work-page :is(.cube-viewport, .work-controls, .ruler, .counter-wrap, .scroll-hint, .scroll-chevron) { display: none; }
  .jstar-work-page .page-title { position: absolute; }
  .work-navigation { position: absolute; }
  .mobile-work-list { display: grid; gap: 28px; padding: 88px 16px 32px; }
  .mobile-project { overflow: hidden; border-radius: 14px; background: #111e2d; }
  .mobile-project-cover { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
  .mobile-project-body { padding: 20px; }
  .mobile-project-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
  .mobile-project-heading h2 { font: 400 clamp(22px, 6vw, 30px)/1.15 Breton, sans-serif; overflow-wrap: anywhere; }
  .mobile-project-heading > span { flex-shrink: 0; color: #96aac3; font: 400 11px/1.5 Inter, sans-serif; }
  .mobile-project-meta { color: #96aac3; font: 500 11px/1.5 Inter, sans-serif; margin-bottom: 12px; }
  .jstar-work-page .mobile-project .face-desc { font-size: 15px; line-height: 1.6; margin: 0 0 12px; }
  .mobile-project .work-project-link { font-size: 14px; margin-bottom: 12px; }
  .mobile-project .face-tags { gap: 6px; }
  .mobile-project .face-tag { font-size: 11px; }
}
