/* Keep the original art direction while prioritizing recruiting information. */
.brand { gap: 10px; }
.card-info { display: contents; }
.brand .brand-signature {
  display: block;
  width: 86px;
  height: 40px;
  flex-shrink: 0;
  overflow: hidden;
  filter: grayscale(1) invert(1) sepia(1) saturate(2) hue-rotate(25deg) brightness(1.7);
  mix-blend-mode: screen;
}
@font-face {
  font-family: "Fusion Pixel";
  src: url("assets/fonts/fusion-pixel/fusion-pixel-12px-proportional-zh_hans.otf.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
.responsive-image { display: contents; }
.hero {
  min-height: 640px;
  height: min(700px, calc(100svh - 120px));
}
.hero-backdrop {
  background:
    linear-gradient(90deg, #0c120ff0 0%, #0c120fd4 30%, #0c120f36 59%, #0c120f08 100%),
    linear-gradient(0deg, #0a0e0cab, transparent 42%, #0a0e0c33),
    url("assets/cyber-clean.webp") center / cover no-repeat;
}
.hero-copy { padding: 100px 0 65px 6%; width: 61%; }
.hero h1 {
  font-family: "Fusion Pixel", monospace;
  font-size: 72px;
  font-weight: 400;
  font-synthesis: none;
  line-height: 1.25;
  letter-spacing: 0;
  margin-bottom: 16px;
}
.hero-title-line { display: inline-flex; align-items: baseline; gap: 16px; white-space: nowrap; }
.hero-title-paint { display: inline-block; color: #e5f0c2; }
@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .hero-title-paint {
    background-image:
      radial-gradient(ellipse at center, #b8f4d4 0%, #b8f4d400 58%),
      linear-gradient(115deg, #f2f3dc 5%, #d7ef85 34%, #99e1cb 55%, #e7f3ba 76%, #f2f3dc 100%);
    background-size: 180% 240%, 260% 180%;
    background-position: 12% 25%, 8% 45%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: title-color-drift 31s cubic-bezier(.42, 0, .32, 1) infinite alternate;
  }
  .hero-title-line .hero-title-paint {
    animation-duration: 43s;
    animation-delay: -17s;
    animation-direction: alternate-reverse;
  }
}
/* Unequal timing and independent phases keep the two lines from sweeping in sync. */
@keyframes title-color-drift {
  0% { background-position: 12% 25%, 8% 45%; }
  19% { background-position: 68% 48%, 35% 62%; }
  47% { background-position: 33% 80%, 86% 28%; }
  76% { background-position: 84% 32%, 57% 72%; }
  100% { background-position: 46% 65%, 16% 38%; }
}
.job-status {
  display: inline-block;
  font-size: 18px;
  color: #e0e6d5;
}
.job-wave { display: inline-flex; }
.job-char {
  display: inline-block;
  animation: job-letter-wave 2.8s ease-in-out infinite;
  animation-delay: calc(var(--letter) * -.18s);
}
.job-word-start { margin-left: .35em; }
/* Keep the traveling wave subtle without shaking the whole label. */
@keyframes job-letter-wave {
  0%, 100% { transform: translateY(.06em) rotate(2deg); }
  50% { transform: translateY(-.09em) rotate(-2.5deg); }
}
@media (prefers-reduced-motion: reduce) {
  .job-status, .job-char { animation: none; }
  .hero-title-paint { animation: none; }
  .hero-title-line .hero-title-paint { animation: none; background-position: 68% 48%, 35% 62%; }
}
.hero-subtitle {
  color: #bec9aa;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-style: italic;
  letter-spacing: 2px;
  line-height: 1.7;
  margin: 0 0 19px;
}
.hero-education { margin-bottom: 25px; line-height: 1.7; }
.hero-education p { margin: 0; }
.hero-education p:first-child { color: #e2e8d8; font-size: 17px; font-weight: 500; }
.hero-education p + p { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 4px; color: #c1ccb3; font-size: 14px; }
.film-screen { position: relative; aspect-ratio: 16 / 9; }
.film-mobile-cover { position: absolute; inset: 0; display: grid; place-items: center; width: 100%; height: 100%; padding: 0; overflow: hidden; border: 0; background: #050705; }
.film-mobile-cover[hidden] { display: none; }
.film-mobile-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .8; }
.film-mobile-play { position: relative; z-index: 1; display: grid; place-items: center; width: 64px; height: 64px; padding-left: 4px; border: 1px solid #e4f3b9; border-radius: 50%; background: #10110fc9; color: #e4f3b9; font-size: 24px; }
.badge-stage { right: 2%; width: 36%; }
.identity-card { width: 230px; height: 326px; padding: 20px 19px 15px; }
.card-heading { font-size: 16px; }
.portrait-frame { height: 145px; }
.card-name { font-size: 23px; margin-top: 12px; }
.card-name > span { font-size: 7px; }
.card-bottom { margin-top: 12px; padding-top: 10px; }
.barcode { width: 145px; }
.badge-hint {
  bottom: 61px;
  left: 12%;
  font-size: 11px;
  transform: none;
}
.hero-topline { font-size: 11px; justify-content: flex-end; }
.hero-bottom { font-size: 10px; }
.section-space { padding-top: 88px; }

.project-info { gap: 16px; }
.project-info > span:first-child { min-width: 0; }
.project-name { font-size: 23px; }
.project-description { font-size: 13px; line-height: 1.85; color: #c4cbb9; margin-top: 10px; }
.contribution-label {
  display: block;
  color: #909c7f;
  font-size: 10px;
  letter-spacing: 1px;
  margin-bottom: 2px;
}
.project-meta { font-size: 10px; flex-shrink: 0; }
.project-gallery-count { margin-top: 15px; }
.project-gallery-count > .project-view {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  color: var(--lime);
  font-size: 14px;
  font-weight: 500;
  padding-block: 6px;
}
.project-gallery-count > .project-image-count { color: #939e84; font-size: 11px; }
.project-card:focus-visible { outline: 2px solid var(--lime); outline-offset: 8px; border-radius: 20px; }

.about-section { padding-bottom: 72px; }
.about-section .section-heading { margin-bottom: 28px; align-items: center; gap: 28px; }
.about-section h2 { font-size: clamp(27px, 2.5vw, 38px); line-height: 1.4; }
.about-grid { grid-template-columns: 1.05fr 1fr; gap: 7%; }
.about-intro p { font-size: 15px; color: #bdc6b0; max-width: 550px; line-height: 1.9; margin-bottom: 18px; }
.about-intro .text-link { font-size: 14px; color: var(--lime); min-height: 44px; }
.detail-row { grid-template-columns: 96px 1fr; padding: 19px 0; gap: 18px; }
.detail-row > span { font-size: 12px; color: #9faa90; letter-spacing: .5px; }
.detail-row h3 { font-size: 17px; color: #e1e6d6; }
.detail-row p { font-size: 13px; color: #b6c0a7; }
.detail-row p span, .detail-row small { font-size: 12px; color: #a4b092; }
.tool-chips span { font-size: 11px; padding: 8px 10px; }
.game-history { margin-top: 38px; padding: 26px; border: 1px solid #354030; border-radius: 18px; background: #19201880; }
.game-history-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 21px; }
.game-history-heading h3 { margin: 0; color: #e1e6d6; font-size: 20px; font-weight: 500; }
.game-history-heading > span { color: #9eae87; font-size: 10px; letter-spacing: 2px; }
.game-history-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; list-style: none; padding: 0; margin: 0; }
.game-history-grid li { min-width: 0; border: 1px solid #354030; border-radius: 12px; background: #10160f80; padding: 18px; }
.game-history-grid h4 { margin: 0 0 15px; padding-bottom: 12px; border-bottom: 1px solid #354030; font-size: 16px; line-height: 1.6; color: #e1e6d6; font-weight: 500; }
.game-facts { display: grid; gap: 9px; margin: 0; font-size: 12px; line-height: 1.8; }
.game-facts > div { display: grid; grid-template-columns: 4em minmax(0, 1fr); gap: 12px; }
.game-facts dt { color: #8f9f80; }
.game-facts dd { margin: 0; color: #c5cfb9; overflow-wrap: anywhere; }
.game-facts .game-hours, .game-facts .game-complete { color: #c2d995; }
@media (max-width: 1150px) {
  .game-history-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .game-history { padding: 20px; margin-top: 28px; }
  .game-history-grid { grid-template-columns: 1fr; gap: 12px; }
  .game-history-heading h3 { font-size: 18px; }
  .game-history-heading > span { font-size: 9px; letter-spacing: 1px; }
}

.contact-section { padding: 30px 5% 36px; }
.contact-top { font-size: 11px; gap: 20px; line-height: 1.6; }
.contact-main { display: grid; grid-template-columns: 1fr 1.15fr; gap: 8%; }
.contact-main h2 { font-size: clamp(32px, 3.2vw, 52px); letter-spacing: -1.5px; }
.contact-options { min-width: 0; }
.contact-location { color: #425327; font-size: 13px; margin: 0 0 12px; }
.contact-email { display: block; font-size: clamp(23px, 2.2vw, 35px); letter-spacing: -.8px; line-height: 1.5; overflow-wrap: anywhere; }
.contact-email > span { display: inline-block; margin-left: 8px; }
.contact-actions { display: flex; align-items: center; gap: 23px; margin-top: 19px; }
.contact-send { background: #26331b; color: #e6f5bc; padding: 15px 22px; font-size: 14px; }
.contact-send:hover { background: #3e502b; }
.copy-email { color: #344c1b; font-size: 13px; min-height: 44px; }
.contact-phone { display: inline-block; font-size: 14px; margin: 19px 0 0; color: #3e502b; }
#copy-status { display: block; min-height: 18px; margin-top: 8px; font-size: 12px; color: #344c1b; }

/* Empty collections stay compact; populated collections retain their original grid. */
.practice-section.is-empty { padding-top: 52px; display: grid; grid-template-columns: 210px 1fr; gap: 24px; align-items: center; }
.practice-section.is-empty .section-heading { display: block; margin: 0; }
.practice-section.is-empty .section-heading .eyebrow { margin-bottom: 10px; font-size: 8px; letter-spacing: 1px; }
.practice-section.is-empty h2 { font-size: 24px; }
.practice-section.is-empty .section-caption,
.practice-section.is-empty .practice-heading { display: none; }
.practice-section.is-empty .practice-empty { padding: 22px 25px; gap: 20px; border-radius: 16px; }
.practice-section.is-empty .practice-empty > span:first-child { font-size: 30px; }
.practice-section.is-empty .practice-empty h3 { font-size: 15px; margin-bottom: 7px; line-height: 1.6; }
.practice-section.is-empty .practice-empty p { color: #a5b291; }
.practice-section.is-empty .practice-empty-tag { font-size: 8px; letter-spacing: 1px; }

@media (min-width: 1800px) {
  .hero-copy { padding-top: 100px; }
  .badge-stage { right: 1%; width: 35%; }
}
@media (max-width: 1150px) and (min-width: 801px) {
  .hero-copy { padding-left: 5%; width: 65%; }
  .hero h1 { font-size: 48px; }
  .badge-stage { right: 0; width: 36%; }
  .badge-hint { left: 0; font-size: 9px; }
  .project-meta { display: none; }
  .contact-main { gap: 5%; }
  .contact-email { font-size: 24px; }
}
@media (max-width: 800px) {
  .brand .brand-signature { width: 70px; height: 32px; }
  .hero { display: flex; flex-direction: column; min-height: 0; height: auto; }
  .badge-stage { order: 1; }
  .hero-copy { order: 2; padding: 22px 26px 0; width: 100%; }
  .hero-bottom { order: 3; }
  .hero h1 { font-size: 36px; margin-bottom: 13px; }
  .hero-title-line { gap: 12px; }
  .job-status { font-size: 11px; }
  .hero-subtitle { font-size: 11px; letter-spacing: 1.2px; margin-bottom: 18px; }
  .hero-education { margin-bottom: 20px; }
  .hero-education p:first-child { font-size: 15px; }
  .hero-education p + p { font-size: 12px; gap: 4px 14px; }
  .hero-actions { gap: 22px; }
  .hero-actions .button { padding: 14px 20px; min-height: 46px; }
  .hero-backdrop {
    background:
      linear-gradient(180deg, #0c120feb 0%, #0c120fbb 43%, #0c120f14 75%, #0c120f9c),
      url("assets/cyber-clean.webp") 53% center / cover no-repeat;
  }
  .hero-backdrop { background: linear-gradient(180deg, #0c120fda 0%, #0c120f8a 44%, #0a0e0c55 100%), url("assets/mobile/cyber-clean.webp") center / cover no-repeat; }
  .hero-topline { font-size: 9px; }
  .badge-stage { width: 100%; height: 310px; margin-top: 0; right: auto; }
  .identity-card {
    display: grid;
    grid-template-columns: min(104px, 34%) minmax(0, 1fr);
    grid-template-rows: 20px minmax(0, 1fr) 20px;
    grid-template-areas: "heading heading" "portrait info" "bottom bottom";
    align-content: stretch;
    gap: 3px 12px;
    width: min(320px, calc(100vw - 68px));
    height: 180px;
    padding: 11px;
    border-radius: 12px;
  }
  .card-heading { grid-area: heading; padding-bottom: 4px; border-bottom: 1px solid #858a7880; }
  .card-rule { display: none; }
  .card-heading { font-size: 10px; }
  .card-heading > span { font-size: 12px; }
  .card-rule { margin: 7px 0; }
  .portrait-frame { grid-area: portrait; width: 100%; height: auto; min-height: 0; border-radius: 6px; }
  .portrait-frame img { width: 100%; height: 100%; object-fit: cover; }
  .portrait-label { font-size: 5px; top: 7px; left: 7px; }
  .card-info { grid-area: info; display: flex; min-width: 0; flex-direction: column; justify-content: center; gap: 7px; }
  .card-name { font-size: 16px; margin: 0; gap: 7px; }
  .card-name > span { display: inline; font-size: 7px; margin: 0; white-space: nowrap; letter-spacing: .35px; }
  .card-role { font-size: 9.5px; margin: 0; letter-spacing: .5px; }
  .card-school { font-size: 7px; margin: 0; letter-spacing: .2px; }
  .card-bottom { grid-area: bottom; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0; padding: 5px 0 0; border-top: 1px solid #858a7880; }
  .card-bottom > span:last-child { font-size: 7px; }
  .barcode { flex: 1; height: 15px; width: auto; max-width: 170px; }
  .card-clip { width: 20px; height: 30px; top: -20px; left: calc(50% - 10px); border-radius: 7px; }
  .badge-hint { bottom: 2px; font-size: 9px; line-height: 1.4; gap: 7px; }
  .badge-hint .hint-arrow { font-size: 19px; }
  .badge-hint-title { display: none; }
  .badge-hint small { font-size: 8px; }
  .hero-bottom { font-size: 8px; margin: 10px 23px 19px; }
  .section-space { padding-top: 58px; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card { grid-column: 1 / -1; }
  .project-name { font-size: 21px; }
  .project-description { font-size: 12px; }
  .project-meta { font-size: 9px; }
  .project-gallery-count > .project-view { font-size: 13px; padding-block: 8px; }
  .project-gallery-count > .project-image-count { font-size: 10px; }
  .about-grid { grid-template-columns: 1fr; gap: 26px; }
  .about-section .section-heading { display: block; margin-bottom: 23px; }
  .about-section h2 { font-size: 27px; }
  .about-intro p { font-size: 14px; }
  .detail-row { grid-template-columns: 78px 1fr; gap: 13px; }
  .detail-row p span { margin-left: 8px; }
  .contact-section { padding: 23px 24px 22px; }
  .contact-top { font-size: 9px; margin-bottom: 23px; }
  .contact-main { grid-template-columns: 1fr; gap: 25px; }
  .contact-main h2 { font-size: 34px; }
  .contact-location { font-size: 12px; }
  .contact-email { font-size: 25px; letter-spacing: -.8px; }
  .contact-actions { gap: 20px; margin-top: 15px; }
  .contact-phone { width: auto; font-size: 13px; }
  .practice-section.is-empty { display: block; padding-top: 40px; }
  .practice-section.is-empty .section-heading { margin-bottom: 16px; }
  .practice-section.is-empty .section-heading .eyebrow { display: none; }
  .practice-section.is-empty h2 { font-size: 21px; }
  .practice-section.is-empty .practice-empty { padding: 18px; gap: 13px; }
  .practice-section.is-empty .practice-empty h3 { font-size: 13px; }
  .practice-section.is-empty .practice-empty p { font-size: 11px; }
}
@media (max-width: 400px) {
  .hero-copy { padding-inline: 22px; }
  .hero h1 { font-size: 36px; }
  .hero-actions { gap: 17px; }
  .hero-actions .button { padding-inline: 17px; }
  .project-info { display: block; }
  .project-meta { display: block; margin-top: 6px; }
  .contact-email { font-size: 23px; }
  .contact-main h2 { font-size: 30px; }
}
@media (min-width: 601px) and (max-width: 800px) {
  .badge-stage { height: 370px; }
}

/* Make mobile image review useful after rotating a phone or small tablet. */
@media (orientation: landscape) and (max-width: 1100px) {
  .image-dialog { width: calc(100% - 20px); max-height: 96svh; }
  .image-stage { height: min(78svh, 720px); }
  .lightbox-bottom { padding: 8px 14px; min-height: 38px; }
  .image-dialog .dialog-close { top: 8px; right: 8px; }
}

@media (max-width: 400px) {
  .badge-stage { height: 324px; }
}
