:root {
  --bg: #0e0e10;
  --bg-soft: #171719;
  --panel: #202024;
  --panel-strong: #292a2f;
  --text: #f7f7f8;
  --muted: #a7a8b0;
  --line: rgba(255, 255, 255, 0.1);
  --warm: #ff7a59;
  --pink: #d94cff;
  --blue: #3d8bff;
  --mint: #5de2b4;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  --radius: 8px;
  --header-height: 74px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 50% 8%, rgba(217, 76, 255, 0.1), transparent 30rem),
    radial-gradient(circle at 85% 38%, rgba(61, 139, 255, 0.07), transparent 24rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  height: var(--header-height);
  background: rgba(22, 22, 24, 0.76);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(24, 24, 27, 0.94);
  border-color: var(--line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.24);
}

.nav-shell {
  width: min(100% - 40px, 1100px);
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 122, 89, 0.25), rgba(61, 139, 255, 0.18));
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 42px;
  color: #f0f0f2;
  font-size: 0.86rem;
  font-weight: 650;
}

.nav-links a {
  position: relative;
  padding: 8px 0;
  color: rgba(247, 247, 248, 0.86);
  transition: color 160ms ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1px;
  height: 2px;
  background: linear-gradient(90deg, var(--warm), var(--pink));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 160ms ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--text);
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
  border-radius: 999px;
}
.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.language-option {
  min-width: 42px;
  height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(247, 247, 248, 0.72);
  font: inherit;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.language-option:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.language-option.is-active {
  background: linear-gradient(135deg, rgba(255, 122, 89, 0.92), rgba(217, 76, 255, 0.78));
  color: #fff;
  box-shadow: 0 8px 22px rgba(217, 76, 255, 0.22);
}


.section {
  padding: 92px 0;
  scroll-margin-top: var(--header-height);
}

.container {
  width: min(100% - 40px, 1080px);
  margin: 0 auto;
}

.compact {
  width: min(100% - 40px, 760px);
}

.hero {
  min-height: 720px;
  padding-top: 150px;
  display: grid;
  place-items: center;
  text-align: center;
}

.hero-inner {
  display: flex;
  align-items: center;
  flex-direction: column;
}

.avatar {
  width: 150px;
  height: 150px;
  display: grid;
  place-items: center;
  margin-bottom: 28px;
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 48%),
    linear-gradient(135deg, #ff7a59 0%, #d94cff 48%, #3d8bff 100%);
  box-shadow: 0 20px 54px rgba(217, 76, 255, 0.23);
  color: #fff;
  font-size: 2.5rem;
  font-weight: 900;
}

.avatar-photo {
  overflow: hidden;
  padding: 0;
  background: none;
}

.avatar-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.eyebrow,
.section-kicker,
.tags {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.hero h1 {
  max-width: 880px;
  margin: 14px 0 22px;
  font-size: clamp(2.75rem, 7vw, 5.7rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero h1 span {
  background: linear-gradient(90deg, var(--warm), var(--pink), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 38px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--text);
  color: #101012;
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.64);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.skills {
  padding-top: 30px;
  text-align: center;
}

.skill-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.skill-grid span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(247, 247, 248, 0.82);
  font-weight: 750;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.skill-grid span:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
}

.section-title {
  margin: 0 0 34px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
}

.section-title.warm {
  color: var(--warm);
  text-shadow: 0 0 24px rgba(255, 122, 89, 0.22);
}

.section-title.cool {
  color: var(--blue);
  text-shadow: 0 0 24px rgba(61, 139, 255, 0.22);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.project-card {
  overflow: hidden;
  min-height: 430px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
  box-shadow: var(--shadow);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}

.project-visual {
  min-height: 190px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.project-visual::before {
  content: "";
  position: absolute;
  inset: -30%;
  background:
    linear-gradient(90deg, transparent 0 44%, rgba(255, 255, 255, 0.14) 45% 47%, transparent 48% 100%),
    linear-gradient(0deg, transparent 0 48%, rgba(255, 255, 255, 0.1) 49% 51%, transparent 52% 100%);
  transform: rotate(-8deg);
}

.project-visual span {
  position: relative;
  align-self: end;
  justify-self: start;
  margin: 16px;
  font-size: .7rem;
  z-index: 1;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(10, 10, 12, 0.34);
  color: white;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.visual-bonfire {
  background:
    linear-gradient(rgba(14, 14, 16, 0.25), rgba(14, 14, 16, 0.65)),
    url("../assets/images/bonfire-cover.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.visual-bonfire::before {
  display: none;
}

.visual-postgraduate-math {
  background:
    linear-gradient(rgba(14, 14, 16, 0.18), rgba(14, 14, 16, 0.55)),
    url("../assets/images/Mistake-Cover.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.visual-postgraduate-math::before {
  display: none;
}

.visual-platform {
  background:
    linear-gradient(rgba(14, 14, 16, 0.16), rgba(14, 14, 16, 0.58)),
    url("../assets/images/Supply-cover.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.visual-platform::before {
  display: none;
}

.visual-platform {
  background:
    linear-gradient(rgba(14, 14, 16, 0.16), rgba(14, 14, 16, 0.58)),
    url("../assets/images/Supply-cover.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.visual-platform::before {
  display: none;
}

.visual-healthcare {
  background:
    linear-gradient(rgba(14, 14, 16, 0.18), rgba(14, 14, 16, 0.58)),
    url("../assets/images/companion-care-cover.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.visual-healthcare::before {
  display: none;
}

.visual-ai {
  background:
    linear-gradient(rgba(14, 14, 16, 0.16), rgba(14, 14, 16, 0.58)),
    url("../assets/images/Tools-cover.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.visual-ai::before {
  display: none;
}

.visual-game {
  background:
    linear-gradient(rgba(14, 14, 16, 0.18), rgba(14, 14, 16, 0.58)),
    url("../assets/images/Candy-Cover.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.visual-game::before {
  display: none;
}

.project-content {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex: 1;
  padding: 24px;
  background: rgba(32, 32, 36, 0.92);
}

.project-content h3 {
  margin: 8px 0 10px;
  font-size: 1.35rem;
  line-height: 1.18;
}

.project-content p:not(.tags) {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.arrow {
  align-self: flex-end;
  color: var(--text);
  font-size: 1.35rem;
  transition: transform 180ms ease;
}

.project-card:hover .arrow {
  transform: translate(3px, -3px);
}

.timeline {
  width: min(100%, 980px);
  margin: 0 auto;
  display: grid;
  gap: 34px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 22px;
}

.timeline-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(61, 139, 255, 0.24), rgba(255, 122, 89, 0.18));
  color: var(--text);
  font-weight: 900;
  font-size: 0.82rem;
}

.timeline-copy {
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.timeline-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
}

.timeline h3 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.3;
}

.timeline-head span,
.place {
  color: var(--muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

.place {
  margin: 6px 0 12px;
  color: rgba(247, 247, 248, 0.72);
  font-weight: 700;
}

.timeline p:last-child {
  margin: 0;
  color: var(--muted);
}

.contact {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
}

.contact-title {
  margin: 0 0 18px;
  font-size: 1.8rem;
}

.contact p {
  margin: 0;
  color: var(--muted);
}

.contact-list {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.contact-list a {
  width: fit-content;
  color: rgba(247, 247, 248, 0.88);
  word-break: break-word;
  transition: color 160ms ease;
}

.contact-list a:hover {
  color: var(--warm);
}

.placeholder-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 48px 20px;
}

.placeholder-card {
  width: min(100%, 680px);
  padding: 54px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  text-align: center;
  box-shadow: var(--shadow);
}

.placeholder-card .avatar {
  width: 92px;
  height: 92px;
  margin: 0 auto 24px;
  font-size: 1.5rem;
}

.placeholder-card h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 7vw, 3.6rem);
  line-height: 1.05;
}

.placeholder-card p {
  margin: 0 0 32px;
  color: var(--muted);
}

.case-page {
  padding-top: var(--header-height);
}

.case-hero {
  padding-top: 140px;
  padding-bottom: 70px;
  text-align: left;
}

.back-link {
  display: inline-flex;
  margin-bottom: 34px;
  color: var(--muted);
  font-weight: 800;
  transition: color 160ms ease, transform 160ms ease;
}

.back-link:hover {
  color: var(--text);
  transform: translateX(-4px);
}

.case-hero h1 {
  max-width: 920px;
  margin: 16px 0 24px;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.case-intro {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 1.15rem;
}

.case-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 46px;
}

.case-meta div,
.case-stats div,
.finding-grid article,
.case-list article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.case-meta div {
  padding: 18px;
}

.case-meta span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.case-meta p {
  margin: 0;
  color: var(--text);
  font-weight: 800;
}

.case-section {
  padding: 72px 0;
}

.case-grid {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 72px;
  align-items: start;
}

.case-grid h2,
.case-reflection h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.case-grid p {
  margin-top: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.case-image-block {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.case-image-block img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.case-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.case-stats div {
  padding: 22px;
}

.case-stats strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 1.9rem;
  line-height: 1;
}

.case-stats span {
  color: var(--muted);
  font-size: 0.92rem;
}

.case-list {
  display: grid;
  gap: 16px;
}

.case-list article {
  padding: 22px;
}

.case-list span {
  color: var(--warm);
  font-weight: 900;
}

.case-list h3,
.finding-grid h3 {
  margin: 8px 0 10px;
  font-size: 1.25rem;
}

.case-list p,
.finding-grid p {
  margin: 0;
  color: var(--muted);
}

.finding-grid {
  display: grid;
  gap: 16px;
}

.finding-grid article {
  padding: 24px;
}

.case-bullets {
  margin: 24px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.case-bullets li {
  margin-bottom: 10px;
}

.case-reflection {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
}

.case-reflection h2 {
  max-width: 980px;
  margin-top: 18px;
}

.case-reflection p:not(.eyebrow) {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.05rem;
}

@media (max-width: 780px) {
  :root {
    --header-height: 66px;
  }

  .nav-shell {
    width: min(100% - 28px, 1100px);
  }

  .nav-toggle {
    display: block;
  }

  .language-switcher {
    margin-left: auto;
  }

  .nav-links {
    position: absolute;
    top: calc(var(--header-height) + 10px);
    left: 14px;
    right: 14px;
    display: grid;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(24, 24, 27, 0.96);
    box-shadow: var(--shadow);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    padding: 12px;
  }

  .hero {
    min-height: 660px;
    padding-top: 116px;
  }

  .section {
    padding: 72px 0;
  }

  .container,
  .compact {
    width: min(100% - 28px, 1080px);
  }

  .avatar {
    width: 122px;
    height: 122px;
    font-size: 2rem;
  }

  .hero h1 {
    font-size: clamp(2.4rem, 13vw, 4.2rem);
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero-actions {
    width: 100%;
  }

  .btn {
    flex: 1 1 180px;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    min-height: auto;
  }

  .project-content {
    padding: 20px;
  }

  .timeline-item {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 14px;
  }

  .timeline-mark {
    width: 38px;
    height: 38px;
  }

  .timeline-head {
    display: grid;
    gap: 6px;
  }

  .timeline-head span {
    white-space: normal;
  }

  .placeholder-card {
    padding: 34px 22px;
  }
}

@media (max-width: 430px) {
  .skill-grid {
    justify-content: flex-start;
  }

  .skill-grid span {
    min-height: 38px;
    padding: 0 13px;
    font-size: 0.9rem;
  }

  .project-visual {
    min-height: 160px;
  }
}
/* Chinese project additions */
[hidden] { display: none !important; }
.visual-cove { background: #cfeffc url('../assets/images/cove-cover.png') center 38% / auto 100% no-repeat; }
.visual-groundzero { background: #000 url('../assets/images/groundzero-cover.png') center center / auto 100% no-repeat; }
.visual-cove::before, .visual-groundzero::before { display: none; }
.visual-cove span, .visual-groundzero span { align-self: end; justify-self: start; margin: 16px; font-size: .7rem; }
.concept-caption { color: var(--muted); margin-top: 14px; font-size: .85rem; }

.cove-cover-block { background: #cfeffc; }
.cove-cover-block img { width: min(100%, 350px); height: auto; margin: auto; object-fit: contain; }
.cove-screen-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 40px; max-width: 850px; margin: 32px auto 0; }
.cove-screen-grid figure { margin: 0; min-width: 0; }
.cove-screen-grid img { height: auto; object-fit: contain; }
.cove-screen-grid figcaption { margin-top: 20px; }
.cove-screen-grid figcaption p { color: var(--muted); }
@media(max-width: 640px) { .cove-screen-grid { grid-template-columns: 1fr; max-width: 390px; gap: 32px; } }

.groundzero-cover-block { background: #000; }
.groundzero-cover-block img { width: min(100%, 340px); height: auto; margin: auto; object-fit: contain; }
.groundzero-screen-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px; margin-top: 32px; }
.groundzero-screen-grid figure { margin: 0; min-width: 0; }
.groundzero-screen-grid img { height: auto; object-fit: contain; }
.groundzero-screen-grid figcaption { margin-top: 20px; }
.groundzero-screen-grid figcaption p { color: var(--muted); }
@media(max-width: 700px) { .groundzero-screen-grid { grid-template-columns: 1fr; max-width: 390px; margin: 32px auto 0; gap: 32px; } }

.visual-freak-ture { background: linear-gradient(0deg,rgba(0,0,0,.4),rgba(0,0,0,.05)),url('../assets/images/freak-ture-cover.png') center/cover; }
.visual-freak-ture::before { display: none; }
.game-title-cover { padding: 28px; color: #f4d5b4; font-size: clamp(1.6rem, 3vw, 2.5rem); font-weight: 900; line-height: 1.05; letter-spacing: -.03em; text-align: center; }
.game-title-cover small { display: block; margin-top: 14px; font-size: .8rem; font-weight: 500; letter-spacing: .12em; }

.cardgame-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; margin-top: 32px; align-items: start; }
.cardgame-gallery figure { margin: 0; min-width: 0; }
.cardgame-gallery img { height: auto; object-fit: contain; }
.cardgame-prototype { max-width: 340px; margin: 0 auto; }
.cardgame-prototype img { transform: rotate(-180deg); }
.cardgame-gallery figcaption { margin-top: 20px; }
.cardgame-gallery figcaption p { color: var(--muted); }
.visual-freak-ture span { align-self: end; justify-self: start; margin: 16px; font-size: .7rem; }
@media(max-width: 640px) { .cardgame-gallery { grid-template-columns: 1fr; } }

/* Updated supplied project covers */
.visual-ai { background: linear-gradient(0deg, rgba(0,0,0,.35), rgba(0,0,0,.05)), url('../assets/images/resume-project-cover.png') center/cover no-repeat; }
.visual-game { background: linear-gradient(0deg, rgba(0,0,0,.25), transparent), url('../assets/images/match-game-cover.png') center/cover no-repeat; }

/* Phone layout only; desktop rules above remain unchanged. */
@media (max-width: 780px) {
  .nav-shell { gap: 10px; }
  .brand { flex-shrink: 0; }
  .nav-toggle { order: 3; flex-shrink: 0; width: 44px; height: 44px; }
  .language-switcher { margin-left: auto; padding: 2px; }
  .language-option { min-width: 44px; height: 40px; }
  .nav-links { visibility: hidden; max-height: calc(100dvh - 90px); overflow-y: auto; }
  .nav-links.is-open { visibility: visible; }
  .nav-links a { min-height: 48px; display: flex; align-items: center; }
  .container, .compact { width: calc(100% - 40px); }
  .hero { min-height: auto; padding: 104px 0 44px; }
  .avatar { width: 96px; height: 96px; margin-bottom: 20px; }
  .hero h1 { margin: 14px 0 20px; font-size: clamp(2rem, 8.5vw, 3.2rem); line-height: 1.18; text-wrap: balance; }
  .hero-copy { font-size: 1rem; line-height: 1.75; }
  .hero-actions { gap: 12px; margin-top: 26px; }
  .hero-actions .btn { flex: 1 1 130px; padding: 0 16px; }
  .section { padding-top: 48px; padding-bottom: 48px; }
  .hero.section { padding-top: 104px; padding-bottom: 44px; }
  .skills { padding-top: 20px; }
  .skill-grid { gap: 8px; margin-top: 24px; }
  .section-title { font-size: 1.8rem; line-height: 1.2; margin-bottom: 26px; }
  .project-grid { gap: 20px; }
  .project-card { min-width: 0; }
  .project-visual { min-height: 0; height: auto; aspect-ratio: 16 / 10; flex-shrink: 0; }
  .project-visual span { margin: 12px; padding: 7px 11px; max-width: calc(100% - 24px); font-size: .7rem; }
  .project-content { padding: 20px; gap: 12px; }
  .project-content h3 { font-size: 1.3rem; line-height: 1.4; }
  .project-content p:not(.tags) { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; font-size: 1rem; line-height: 1.7; }
  .tags, .eyebrow { letter-spacing: .06em; line-height: 1.65; overflow-wrap: anywhere; }
  .timeline-item { gap: 12px; }
  .timeline-head h3 { font-size: 1.1rem; line-height: 1.5; }
  .timeline-copy p { font-size: 1rem; line-height: 1.75; white-space: normal; overflow-wrap: anywhere; }
  .contact-list a { min-height: 44px; display: flex; align-items: center; overflow-wrap: anywhere; }
  .case-hero.section { padding-top: 28px; padding-bottom: 36px; }
  .back-link { min-height: 44px; align-items: center; margin-bottom: 20px; }
  .case-hero h1 { font-size: clamp(2rem, 8vw, 3rem); line-height: 1.18; letter-spacing: -.02em; overflow-wrap: anywhere; }
  .case-intro { font-size: 1rem; line-height: 1.8; }
  .case-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 28px; }
  .case-meta div { min-width: 0; padding: 14px; }
  .case-meta p { font-size: .9rem; line-height: 1.65; overflow-wrap: anywhere; }
  .case-section { padding: 36px 0; }
  .case-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .case-grid > *, .case-section figure { min-width: 0; }
  .case-grid h2, .case-reflection h2, .case-section > .container > h2 { font-size: 1.65rem; line-height: 1.35; letter-spacing: 0; }
  .case-grid p, .case-reflection p:not(.eyebrow), figcaption p { font-size: 1rem; line-height: 1.8; }
  .case-stats { gap: 10px; margin-top: 22px; }
  .case-stats div, .case-list article, .finding-grid article { padding: 18px; }
  .case-stats strong { font-size: 1.6rem; }
  .case-bullets { line-height: 1.8; }
  .case-image-block img { max-width: 100%; height: auto; cursor: zoom-in; }
  .cove-screen-grid, .groundzero-screen-grid, .cardgame-gallery { grid-template-columns: minmax(0, 1fr); max-width: 420px; gap: 28px; margin: 24px auto 0; }
  .cove-screen-grid figcaption, .groundzero-screen-grid figcaption, .cardgame-gallery figcaption { margin-top: 14px; }
  .case-section { overflow-wrap: anywhere; }
  .mobile-image-viewer { position: fixed; inset: 0; width: 100%; max-width: none; height: 100dvh; max-height: none; border: 0; padding: 64px 16px 20px; background: #101012; color: white; }
  .mobile-image-viewer::backdrop { background: #101012; }
  .mobile-image-viewer img { display: block; width: 100%; height: calc(100% - 40px); object-fit: contain; }
  .mobile-image-viewer button { position: absolute; top: 12px; right: 16px; min-height: 44px; padding: 0 18px; border: 1px solid #666; border-radius: 24px; background: #202024; color: white; font: inherit; }
  .mobile-image-viewer p { margin: 10px 0 0; font-size: .8rem; color: #c5c5ca; }
}
@media (max-width: 360px) {
  .case-meta, .case-stats { grid-template-columns: minmax(0, 1fr); }
  .container, .compact { width: calc(100% - 32px); }
}
