@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: 100vh; overflow: hidden;
  background: #0a0a0a; color: #f0f0f0;
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

.other-accent { font-family: 'other', sans-serif; }

.info-canvas {
  position: fixed; inset: 0;
  width: 100vw; height: 100vh;
  display: block;
  z-index: 0;
}
.info-vignette {
  position: fixed; inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, rgba(0,0,0,0) 40%, rgba(0,0,0,0.55) 100%),
    linear-gradient(180deg, rgba(10,10,10,0.25) 0%, rgba(10,10,10,0) 25%, rgba(10,10,10,0) 75%, rgba(10,10,10,0.35) 100%);
}

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

.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;
  opacity: 0;
}

.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.75);
  transition: transform 0.6s cubic-bezier(0.87, 0, 0.13, 1), color 0.3s ease;
  transition-delay: calc(var(--i) * 28ms);
}
.info-mail .ch-top,
.info-mail .ch-bot { text-transform: lowercase; }
.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); }

.info-main {
  position: fixed;
  inset: 0;
  z-index: 10;
  padding: clamp(6rem, 12vh, 9rem) clamp(2rem, 6vw, 6rem) clamp(4rem, 8vh, 6rem);
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  opacity: 0;
  pointer-events: none;
}
.info-main.ready { pointer-events: auto; }

.info-left {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  align-self: center;
}
.info-photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 60vh;
  overflow: hidden;
  background: #0a0a0a;
}
.info-photo {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  -webkit-user-drag: none; user-select: none;
}

.frame-corner {
  position: absolute;
  width: 14px; height: 14px;
  z-index: 5;
  pointer-events: none;
}
.frame-corner::before,
.frame-corner::after {
  content: ''; position: absolute; background: #fff;
}
.frame-corner::before { width: 1px; height: 100%; left: 50%; transform: translateX(-50%); }
.frame-corner::after  { height: 1px; width: 100%; top: 50%; transform: translateY(-50%); }
.frame-corner.tl { top: 8px; left: 8px; }
.frame-corner.tr { top: 8px; right: 8px; }
.frame-corner.bl { bottom: 8px; left: 8px; }
.frame-corner.br { bottom: 8px; right: 8px; }

.info-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 0.55rem;
}
.info-meta-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}
.info-meta-value {
  font-family: 'Breton', sans-serif;
  font-size: 0.95rem;
  color: #f0f0f0;
  text-align: right;
}

.info-right {
  display: flex;
  flex-direction: column;
  gap: clamp(1.4rem, 2.5vh, 2.2rem);
  align-self: center;
  max-width: 980px;
}
.info-headline { display: flex; flex-direction: column; gap: 0.6rem; }
.info-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.info-name {
  font-family: 'Breton', sans-serif;
  font-weight: 300;
  font-size: clamp(3rem, 6.5vw, 6rem);
  letter-spacing: -0.03em;
  line-height: 0.95;
  color: #f0f0f0;
}
.info-role {
  font-family: 'Breton', sans-serif;
  font-size: clamp(1.05rem, 1.35vw, 1.3rem);
  line-height: 1.4;
  color: rgba(255,255,255,1);
  max-width: 40rem;
}
.info-desc {
  font-family: 'Breton', sans-serif;
  font-size: clamp(1rem, 1.15vw, 1.15rem);
  line-height: 1.65;
  color: rgba(255,255,255,1);
  max-width: 42rem;
}

.info-skills {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.2rem, 2.5vw, 2.4rem);
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.skill-col-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.7rem;
}
.skill-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.35rem; }
.skill-col li {
  font-family: 'Breton', sans-serif;
  font-size: 0.95rem;
  line-height: 1.35;
  color: rgba(255,255,255,0.82);
}

.info-bottom {
  position: fixed;
  bottom: 2rem; left: 3rem; right: 3rem;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  opacity: 0;
}
.info-mail { font-size: 0.9rem; }
.info-version {
  font-family: 'Inter', sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.4);
}

@media (max-width: 960px) {
  .info-main {
    grid-template-columns: 1fr;
    padding: clamp(5rem, 10vh, 7rem) 1.5rem 5rem;
    gap: 1.5rem;
    align-content: start;
    overflow-y: auto;
  }
  .info-photo-wrap { max-height: 40vh; }
  .info-skills { grid-template-columns: repeat(2, 1fr); }
  .info-bottom { left: 1.5rem; right: 1.5rem; }
  .page-title, .back-btn { top: 1.5rem; }
  .page-title { left: 1.5rem; }
  .back-btn { right: 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; }
}
/* Reference INFO layout with JSTAR identity and shared language navigation. */
body { background: #07101c; }
.info-navigation { position: fixed; top: 3rem; right: 3rem; z-index: 10001; display: flex; align-items: center; gap: 24px; }
.info-navigation .back-btn { position: static; }
.info-photo-wrap { background: #081426; }
.info-photo { object-fit: cover; padding: 0; }
.info-version { text-decoration: none; }
html[lang^="zh"] .info-role, html[lang^="zh"] .info-desc { line-height: 1.8; }
html[lang^="zh"] .info-meta-label, html[lang^="zh"] .skill-col-title { letter-spacing: 0.04em; }
html[lang="zh-CN"] .info-desc .other-accent { font-family: 'JSTAR Kai SC', 'Kaiti SC', STKaiti, KaiTi, serif; font-style: normal; }
html[lang="zh-TW"] .info-desc .other-accent { font-family: 'JSTAR Kai TC', 'Kaiti TC', BiauKaiTC, DFKai-SB, STKaiti, serif; font-style: normal; }
@media (max-width: 960px) {
  .info-navigation { top: 1.5rem; right: 1.5rem; gap: 16px; }
  .info-main { top: 6rem; padding-top: 1rem; padding-bottom: 6rem; }
  html[lang="fr"] .page-title { font-size: 1.4rem; top: 1.75rem; }
  .info-left { width: min(100%, 380px); margin-inline: auto; }
  .info-photo-wrap { flex-shrink: 0; aspect-ratio: 4 / 5; max-height: none; }
  .info-bottom { background: linear-gradient(transparent, #07101c 45%); bottom: 0; padding: 1.5rem 0; }
  .info-bottom .ch-top, .info-bottom .ch-bot { font-size: 0.85rem; }
}
@media (min-width: 961px) and (max-height: 680px) {
  .info-main { overflow-y: auto; align-items: start; padding-top: 9rem; }
}

/* The sculpture is an accent, with a centered, uncropped silhouette. */
.info-photo-wrap { aspect-ratio: 1; display: grid; place-items: center; }
.info-photo { object-fit: contain; width: 80%; height: 80%; }
@media (max-width: 960px) {
  .info-left { width: 100%; }
  .info-photo-wrap { width: 160px; height: 160px; aspect-ratio: 1; margin-inline: auto; }
  .info-left .frame-corner { display: none; }
}
.info-photo-wrap { background: transparent; }
.info-photo { mix-blend-mode: normal; }
