/* 仅记录游戏首屏与 AIGC 首屏的差异，原版样式、动效和断点保留在 styles.css。 */
.brand {
  top: 22.816px;
}
.brand img {
  display: block;
  width: 118.261px;
  height: 17.568px;
}
.nav-links {
  gap: 33px;
}
.nav-links a[aria-disabled="true"] {
  cursor: default;
}
@media (min-width: 1248px) {
  .hero-wordmark {
    top: calc(min(33.6914svh, 345px) + 5.52px);
    left: 16.88px;
    width: min(calc(100% - 27.578px), 1172.422px);
  }
}

@font-face {
  font-family: "BBH Hegarty";
  src: url("./assets/bbh-hegarty.ttf") format("truetype");
  font-display: swap;
}
.brand .brand-logo-red { position: absolute; inset: 0; opacity: 0; }
.brand img { transition: opacity 220ms ease; }
body.is-directory-active .brand-logo-white { opacity: 0; }
body.is-directory-active .brand-logo-red { opacity: 1; }
body.is-directory-active .site-nav { background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(4px); }
body.is-about-active .site-nav,
body.is-case-active .site-nav,
body.is-video-active .site-nav {
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.directory { position: relative; background: #121212; }
.directory-content {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding-top: 87px;
  container-type: inline-size;
}
.directory-heading {
  display: flex;
  align-items: flex-end;
  gap: 1.5cqw;
  height: 8.833333cqw;
  margin: 0 0 5.083333cqw;
  font-family: "BBH Hegarty", sans-serif;
  font-size: 7.333333cqw;
  font-weight: 400;
  line-height: 1.2;
}
.directory-title-cn {
  position: relative;
  padding-bottom: 1.166667cqw;
  font-family: "PingFang HK", "PingFang SC", sans-serif;
  font-size: 3.5cqw;
  line-height: 1.2;
  white-space: nowrap;
}
.directory-title-cn::after { content: ""; position: absolute; bottom: 0; left: 0.333333cqw; width: 6.25cqw; height: 0.5cqw; background: var(--red); }
/* Height changes shorten the cards, leaving a fixed 90px bottom inset.
   Only viewport width controls the heading, card widths and typography. */
.directory-cards {
  --directory-card-height: max(0px, calc(100svh - 177px - 13.916667cqw));
  display: flex;
  gap: 0.833333cqw;
  height: var(--directory-card-height);
  padding: 0 0.083333cqw;
}
.directory-card {
  --directory-ease: cubic-bezier(0.22, 0.7, 0.2, 1);
  position: relative;
  flex: 189 1 0%;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 1.666667cqw;
  overflow: hidden;
  isolation: isolate;
  background: #121212;
  color: white;
  font: inherit;
  cursor: pointer;
  text-align: left;
  transition: flex-grow 650ms var(--directory-ease);
}
.directory-card::after { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; box-shadow: inset 0 0 0 2px #4f4f4f; pointer-events: none; transition: box-shadow 450ms ease; }
.directory-card.is-selected { flex-grow: 400; }
.directory-card.is-selected::after { box-shadow: inset 0 0 0 4px var(--red); }
.directory-card:focus-visible { outline: 2px solid white; outline-offset: 4px; }
/* Keep the full 400 × 680 slice fixed while its card crops from both sides. */
.directory-slice { position: absolute; top: 0; left: 50%; width: max(33.333333cqw, calc(var(--directory-card-height) * 0.588235294)); height: max(56.666667cqw, var(--directory-card-height)); transform: translateX(-50%); overflow: hidden; filter: saturate(0); opacity: 0.3; transition: filter 650ms ease, opacity 650ms ease; pointer-events: none; }
.directory-card.is-selected .directory-slice { filter: saturate(1); opacity: 1; }
.directory-slice::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(0,0,0,0.25); }
.directory-slice::after { content: ""; position: absolute; inset: 0 0 auto; height: 28.382353%; z-index: 1; background: linear-gradient(rgba(0,0,0,0.6),transparent); }
.directory-image-frame { position: absolute; }
.directory-image-frame img { width: 100%; height: 100%; object-fit: cover; }
.directory-slice--about .directory-image-frame { left: -1%; top: -1.323529%; width: 104%; height: 102.647059%; }
.directory-slice--game .directory-image-frame { left: -2%; top: -3.529412%; width: 108.25%; height: 106.764706%; }
.directory-slice--web .directory-image-frame { left: -2%; top: -2.058824%; width: 104.75%; height: 103.235294%; }
.directory-slice--operations .directory-image-frame { left: -53.75%; top: -8.676471%; width: 166%; height: 117.352941%; overflow: hidden; border-radius: 3.333333cqw; }
.directory-slice--operations img { position: absolute; left: 17.19%; top: 5.49%; width: 91.25%; height: 91.27%; }
.directory-slice--graphic .directory-image-frame { left: -0.25%; top: -0.147059%; width: 102.023%; height: 100.588235%; }
.directory-number { position: absolute; top: 1.666667cqw; left: 50%; transform: translateX(-50%); font-family: "BBH Hegarty", sans-serif; font-size: 6cqw; line-height: 1.194444; color: var(--red); white-space: nowrap; transition: left 650ms var(--directory-ease), transform 650ms var(--directory-ease); }
.directory-number > span { display: block; }
.directory-label { position: absolute; top: 8.833333cqw; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 0.333333cqw; white-space: nowrap; transition: top 650ms var(--directory-ease), left 650ms var(--directory-ease), transform 650ms var(--directory-ease); }
.directory-label strong { font-size: 1.666667cqw; line-height: 1.4; font-weight: 600; transition: font-size 650ms var(--directory-ease); }
.directory-label > span { font-size: 1.333333cqw; line-height: 1.375; }
.directory-card.is-selected .directory-number { left: 2.916667cqw; transform: translateX(0); }
.directory-card.is-selected .directory-label { top: 2.666667cqw; left: 12.666667cqw; transform: translateX(0); align-items: flex-start; gap: 0.333333cqw; }
.directory-card.is-selected .directory-label strong { font-size: 2cqw; }
@media (max-width: 700px) {
  .directory-content { width: calc(100% - 32px); padding-top: 88px; }
  .directory-heading { height: 58px; margin-bottom: 22px; gap: 12px; font-size: 46px; }
  .directory-title-cn { font-size: 23px; padding-bottom: 8px; }
  .directory-title-cn::after { width: 42px; height: 4px; }
  .directory-cards { flex-direction: column; gap: 8px; height: calc(100svh - 190px); min-height: 300px; padding: 0; }
  .directory-card { flex: 1 1 0%; width: 100%; min-height: 44px; border-radius: 12px; }
  .directory-card.is-selected { flex-grow: 5; }
  .directory-slice { width: 100%; height: auto; aspect-ratio: 400 / 680; }
  .directory-number, .directory-card.is-selected .directory-number { top: 8px; left: 16px; transform: none; font-size: 32px; }
  .directory-label, .directory-card.is-selected .directory-label { top: 10px; left: 88px; transform: none; align-items: flex-start; gap: 0; }
  .directory-label strong, .directory-card.is-selected .directory-label strong { font-size: 16px; }
  .directory-label > span { font-size: 11px; }
}
@media (max-width: 700px) and (max-height: 600px) {
  .directory-content { padding-top: 74px; }
  .directory-heading { height: 40px; font-size: 36px; margin-bottom: 12px; }
  .directory-cards { height: calc(100svh - 138px); min-height: 0; }
  .directory-label > span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .directory-card, .directory-slice, .directory-number, .directory-label, .directory-label strong, .directory-card::after { transition: none; }
}
/* Keep the artwork centered when a second full-screen page adds scrolling. */
html { scrollbar-width: none; scroll-snap-type: none; }
html::-webkit-scrollbar { display: none; }
@media (min-width: 701px) {
  .directory-card:not(:first-child).is-selected .directory-label { left: 13.5cqw; }
}

/* 03 — Personal information */
body.is-about-active .brand-logo-white,
body.is-case-active .brand-logo-white { opacity: 0; }
body.is-about-active .brand-logo-red,
body.is-case-active .brand-logo-red { opacity: 1; }
.nav-links a[data-nav-section="about"]::after,
.nav-links a[data-nav-section="game"]::after,
.nav-links a[data-nav-section="web"]::after,
.nav-links a[data-nav-section="operations"]::after,
.nav-links a[data-nav-section="graphic"]::after { top: 25px; width: 16px; background: #d33232; }
.profile-page { height: auto; min-height: 0; overflow: hidden; background: #121212; }
.profile-inner { position: relative; width: min(1200px, calc(100% - 48px)); margin: auto; padding-bottom: 259px; container-type: inline-size; }
.profile-heading { position: relative; z-index: 2; display: flex; align-items: flex-end; gap: 1.583333cqw; margin: 0; padding-top: 7.25cqw; height: 16.083333cqw; font: 400 7.333333cqw/1.2 "BBH Hegarty", sans-serif; pointer-events: none; }
.profile-title-cn { position: relative; padding-bottom: 1.166667cqw; font: 400 3.5cqw/1.2 "PingFang HK", "PingFang SC", sans-serif; white-space: nowrap; }
.profile-title-cn::after { content: ""; position: absolute; bottom: 0; left: .333333cqw; width: 6.25cqw; height: .5cqw; background: #d33232; }
.profile-badge { position: absolute; top: 0; left: 3.166667cqw; width: 29.166667cqw; transform-origin: 50% 0; transition: transform 380ms cubic-bezier(.22,.7,.2,1); }
.profile-badge img { width: 100%; height: auto; }
.profile-badge:hover, .profile-badge:focus-visible { transform: scale(1.05); }
.profile-badge:focus-visible { outline: 1px solid #d33232; outline-offset: 4px; }
.profile-right { margin: 2.666667cqw 0 0 39.666667cqw; }
.profile-page h2 { margin: 0 0 17px; font-size: 20px; line-height: 24px; font-weight: 800; }
.profile-page h2 span { font-weight: 300; }
.profile-bio { position: absolute; top: 63.25cqw; left: 3.916667cqw; width: 31.416667cqw; }
.profile-bio h2 { margin-bottom: 8px; }
.profile-bio p { margin: 0; color: #999; font-size: 12px; line-height: 1.8; text-align: justify; }
.bio-bracket { position: absolute; width: 9px; height: 32px; left: -21px; top: 12px; }
.experience-list { display: grid; gap: 8px; }
.experience-card { border: 1px solid #262626; border-radius: 10px; background: #191919; transition: border-color 300ms ease; }
.experience-card.is-open { border-color: #ff3333; }
.experience-card h3 { margin: 0; }
.experience-trigger { display: flex; align-items: center; width: 100%; min-height: 76px; border: 0; padding: 0 19px; gap: 8px; background: transparent; color: white; text-align: left; cursor: pointer; font: inherit; }
.experience-trigger:focus-visible { outline: 2px solid white; outline-offset: -4px; border-radius: 10px; }
.experience-number { flex: 0 0 68px; font: 400 42px/1.8 "BBH Hegarty", sans-serif; color: #515151; transition: color 300ms ease; }
.is-open .experience-number { color: #d33232; }
.experience-company { display: flex; flex-direction: column; min-width: 0; }
.experience-company strong { font-size: 16px; line-height: 1.8; font-weight: 700; }
.experience-company > span, .experience-date { font-size: 12px; line-height: 1.8; font-weight: 300; color: #999; }
.experience-date { margin-left: auto; white-space: nowrap; }
.experience-toggle { position: relative; width: 17px; height: 17px; flex: 0 0 17px; }
.experience-toggle img { position: absolute; inset: 0; width: 17px; height: 17px; transition: opacity 250ms ease; }
.toggle-minus, .is-open .toggle-plus { opacity: 0; }
.is-open .toggle-minus { opacity: 1; }
.experience-detail { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 420ms cubic-bezier(.22,.7,.2,1), opacity 280ms ease; }
.is-open .experience-detail { grid-template-rows: 1fr; opacity: 1; }
.experience-detail-clip { min-height: 0; overflow: hidden; }
.experience-detail-content { display: grid; grid-template-columns: minmax(0, 434fr) minmax(0, 189fr); gap: 52px; margin: 0 19px; padding: 14px 0 6px 8px; border-top: 1px solid #262626; min-height: 178px; }
.experience-detail h4 { margin: 0 0 6px; font-size: 12px; line-height: 1.8; font-weight: 400; }
.experience-detail p { margin: 0; font-size: 12px; line-height: 1.8; color: #999; text-align: justify; }
.experience-tags { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 8px; margin: 8px 0 0; padding: 0; list-style: none; }
.experience-tags li { border: 1px solid #2a2a2a; border-radius: 44px; padding: 0 12px; color: #999; font-size: 12px; line-height: 19px; white-space: nowrap; }
.sample-label { margin-left: 8px; color: #999; font-size: 10px; }
.profile-tools { margin-top: 48px; }
.profile-tools h2 { margin-bottom: 22px; }
.tools-dock { display: flex; align-items: flex-end; justify-content: space-between; padding-right: 12px; gap: 12px; }
.tool-slot { position: relative; flex: 0 1 68px; min-width: 0; aspect-ratio: 1; }
.tool-icon { width: 100%; height: 100%; position: relative; transform: translateY(var(--dock-lift, 0px)) scale(var(--dock-scale, 1)); transform-origin: center bottom; transition: transform 180ms ease-out; outline-offset: 4px; border-radius: 16px; }
.tool-art { display: block; position: relative; width: 100%; height: 100%; border: 0; border-radius: 0; overflow: visible; background: transparent; }
.tool-art img { width: 100%; height: 100%; object-fit: contain; }
.tool-tooltip { position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%); padding: 4px 8px; border-radius: 5px; background: #333; font-size: 10px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 150ms; }
.tool-icon:hover .tool-tooltip, .tool-icon:focus-visible .tool-tooltip { opacity: 1; }
@media (max-width: 1150px) and (min-width: 901px) {
  .experience-trigger { padding: 0 12px; }
  .experience-number { flex-basis: 48px; font-size: 32px; }
  .experience-company strong { font-size: 13px; }
  .experience-date { font-size: 10px; }
  .experience-detail-content { gap: 18px; margin: 0 12px; padding: 14px 0; grid-template-columns: 2fr 1fr; }
  .experience-tags li { padding: 0 7px; }
}
@media (max-width: 900px) {
  .profile-inner { width: calc(100% - 32px); padding-bottom: 80px; display: flex; flex-direction: column; }
  .profile-heading { order: 0; padding-top: 90px; height: auto; font-size: clamp(30px, 6.5vw, 60px); gap: 12px; }
  .profile-title-cn { font-size: clamp(18px, 3.4vw, 30px); padding-bottom: 8px; }
  .profile-title-cn::after { width: 42px; height: 4px; }
  .profile-badge { order: 1; position: relative; top: auto; left: auto; width: min(350px, 80%); margin: -130px auto 0; }
  .profile-bio { order: 2; position: relative; top: auto; left: auto; width: auto; margin: 36px 20px 0; }
  .profile-right { order: 3; margin: 36px 0 0; }
  .experience-trigger { position: relative; flex-wrap: wrap; padding: 12px; gap: 6px 10px; }
  .experience-number { flex-basis: 46px; font-size: 30px; }
  .experience-company { width: calc(100% - 88px); }
  .experience-company strong { font-size: 14px; }
  .experience-date { margin: -5px 25px 0 56px; }
  .experience-toggle { position: absolute; right: 12px; top: 28px; }
  .experience-detail-content { grid-template-columns: 1fr; gap: 16px; margin: 0 12px; padding: 16px 0; min-height: 0; }
  .profile-tools { margin-top: 36px; }
  .tools-dock { flex-wrap: wrap; justify-content: flex-start; gap: 26px 22px; padding: 10px 0; }
  .tool-slot { flex: 0 0 calc((100% - 66px) / 4); max-width: 68px; }
  .profile-bio p, .experience-detail p { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .profile-badge, .experience-detail, .tool-icon { transition: none; }
}

/* Keep all hero animation paint inside its own screen. */
.hero { contain: paint; }
