:root {
  --black: #222222;
  --ink: #222222;
  --paper: #f5f5f3;
  --gray: #858585;
  --line: #d7d7d3;
  --lime: #BFFF00;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Inter", "Noto Sans SC", sans-serif; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.intro-loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--black);
  background: var(--lime);
  animation: introExit 1s cubic-bezier(.76, 0, .24, 1) 2.15s forwards;
}
.intro-loader::before,
.intro-loader::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.intro-loader::before {
  background:
    linear-gradient(90deg, rgba(34,34,34,.12) 1px, transparent 1px),
    linear-gradient(rgba(34,34,34,.12) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0;
  animation: introGrid .7s ease .25s forwards;
}
.intro-loader::after {
  top: auto;
  height: 34%;
  background: var(--black);
  transform: translateY(100%);
  animation: introPanel .95s cubic-bezier(.76, 0, .24, 1) 1.55s forwards;
}
.intro-frame {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 18px;
  justify-items: center;
  text-align: center;
  transform: translateY(18px);
  animation: introFrame .9s cubic-bezier(.2, .8, .2, 1) .15s forwards;
}
.intro-kicker {
  overflow: hidden;
  color: rgba(34,34,34,.62);
  font-size: 12px;
  letter-spacing: .32em;
  text-transform: uppercase;
  opacity: 0;
  animation: introFade .55s ease .25s forwards;
}
.intro-name {
  display: flex;
  gap: .1em;
  font-size: clamp(58px, 11vw, 142px);
  font-weight: 800;
  line-height: .88;
  letter-spacing: -.12em;
}
.intro-name span {
  display: block;
  clip-path: inset(0 0 100% 0);
  transform: translateY(46px);
  animation: introLetter .82s cubic-bezier(.2, .8, .2, 1) forwards;
}
.intro-name span:nth-child(1) { animation-delay: .36s; }
.intro-name span:nth-child(2) { animation-delay: .48s; }
.intro-name span:nth-child(3) { animation-delay: .6s; }
.intro-line {
  display: block;
  width: min(360px, 58vw);
  height: 2px;
  overflow: hidden;
  background: rgba(34,34,34,.18);
}
.intro-line::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: var(--black);
  transform: translateX(-102%);
  animation: introLine 1.1s cubic-bezier(.76, 0, .24, 1) .72s forwards;
}
body.intro-lock {
  overflow: hidden;
}
body.intro-lock .nav,
body.intro-lock main,
body.intro-lock footer {
  opacity: 0;
}
body.intro-ready .nav,
body.intro-ready main,
body.intro-ready footer {
  animation: pageEnter .8s ease forwards;
}
@keyframes introGrid {
  to { opacity: .32; }
}
@keyframes introFrame {
  to { transform: translateY(0); }
}
@keyframes introFade {
  to { opacity: 1; }
}
@keyframes introLetter {
  to { clip-path: inset(0 0 0 0); transform: translateY(0); }
}
@keyframes introLine {
  to { transform: translateX(0); }
}
@keyframes introPanel {
  to { transform: translateY(0); }
}
@keyframes introExit {
  to { transform: translateY(-100%); visibility: hidden; }
}
@keyframes pageEnter {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.nav {
  position: fixed; z-index: 20; top: 0; left: 0; width: 100%;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 20px 36px; color: var(--ink);
  transition: color .25s ease;
}
.nav.nav-on-dark { color: #fff; }
.brand {
  display: inline-flex;
  align-items: center;
  width: 32px;
  height: 32px;
}
.brand span {
  position: relative;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--lime);
  border: 1px solid rgba(191,255,0,.85);
  border-radius: 50%;
  font-size: 0;
  background: transparent;
  box-shadow: inset 0 0 0 6px rgba(191,255,0,.06), 0 0 22px rgba(191,255,0,.22);
  transform: none;
}
.brand span::before,
.brand span::after {
  content: "";
  position: absolute;
  pointer-events: none;
}
.brand span::before {
  inset: 8px 7px;
  border-top: 2px solid var(--lime);
  border-bottom: 2px solid var(--lime);
}
.brand span::after {
  inset: 7px 8px;
  background: var(--lime);
  clip-path: polygon(82% 0, 100% 0, 18% 100%, 0 100%);
}
.nav nav { display: flex; gap: 34px; font-size: 20px; }
.nav a { transition: opacity .25s ease; }
.nav a:hover { opacity: .6; }
.nav nav a.active { color: var(--lime); opacity: 1; }
.nav-download { justify-self: end; color: var(--lime); font-size: 16px; }

.hero {
  position: relative;
  min-height: 100vh;
  padding: 120px 36px 36px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 78% 38%, rgba(191,255,0,.11), transparent 34%),
    linear-gradient(135deg, rgba(191,255,0,.05), transparent 28%),
    var(--black);
}
.hero-grid {
  position: absolute; inset: 0; opacity: .22;
  background-image: linear-gradient(rgba(255,255,255,.1) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.1) 1px, transparent 1px);
  background-size: 8.333vw 8.333vw;
}
.hero-top, .hero-bottom { position: relative; z-index: 3; display: flex; justify-content: space-between; color: rgba(255,255,255,.42); font-size: 10px; letter-spacing: .18em; }
.hero-top { font-size: 14px; }
.hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: center;
  min-height: calc(100vh - 230px);
}
.hero-layout::before {
  content: "ZHAO";
  position: absolute;
  left: -10px;
  bottom: 6%;
  z-index: -1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.08);
  font-size: clamp(120px, 18vw, 260px);
  font-weight: 800;
  letter-spacing: -.08em;
  line-height: .8;
}
.hero-copy { position: relative; max-width: 980px; margin-top: 0; }
.hero-label { margin: 0 0 26px; color: var(--lime); font-size: 18px; font-weight: 700; letter-spacing: .06em; }
.hero h1 { margin: 0; font-size: clamp(46px, 6.1vw, 92px); font-weight: 800; letter-spacing: -.078em; line-height: 1.02; }
.hero h1 em { color: var(--lime); font-style: normal; -webkit-text-stroke: 0; }
.hero-desc { width: min(520px, 100%); margin: 36px 0 0; color: rgba(255,255,255,.58); font-size: 14px; line-height: 2; }
.hero-visual {
  position: relative;
  justify-self: end;
  width: min(50vw, 780px);
  min-width: 420px;
  margin-right: -28px;
}
.hero-image2-frame {
  position: relative;
  overflow: hidden;
  min-height: clamp(470px, 47vw, 690px);
  border-radius: 36px;
  filter: drop-shadow(0 32px 90px rgba(0,0,0,.34));
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 100%);
}
.hero-image2-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 82% 50%;
}
.visual-scene {
  position: relative;
  min-height: clamp(460px, 48vw, 650px);
  isolation: isolate;
}
.scene-arc {
  position: absolute;
  inset: 5% -8% auto 14%;
  height: 58%;
  border-top: 1px solid rgba(191,255,0,.38);
  border-radius: 50% 50% 0 0;
  transform: rotate(-12deg);
}
.scene-arc::after {
  content: "";
  position: absolute;
  right: 17%;
  top: -5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 22px rgba(191,255,0,.72);
}
.visual-scene::before {
  content: "";
  position: absolute;
  right: 10%;
  bottom: 2%;
  z-index: -1;
  width: 74%;
  height: 54%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(191,255,0,.18), transparent 68%);
  filter: blur(18px);
}
.scene-count {
  position: absolute;
  top: 0;
  right: 0;
  color: rgba(255,255,255,.42);
  font-size: clamp(30px, 3vw, 46px);
  font-weight: 800;
  letter-spacing: -.06em;
}
.scene-count::first-letter { color: var(--lime); }
.scene-id-card {
  position: absolute;
  top: 4%;
  left: 2%;
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 12px 16px 12px 12px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 20px;
  color: rgba(255,255,255,.84);
  background: rgba(255,255,255,.08);
  box-shadow: 0 18px 40px rgba(0,0,0,.2);
  backdrop-filter: blur(14px);
}
.scene-id-card span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  color: var(--black);
  background: var(--lime);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -.04em;
}
.scene-id-card strong {
  font-size: 11px;
  line-height: 1.15;
  letter-spacing: .16em;
}
.scene-orb {
  position: absolute;
  display: block;
  border-radius: 50%;
  box-shadow: inset -14px -18px 26px rgba(0,0,0,.26), 0 18px 42px rgba(0,0,0,.32);
}
.scene-orb-a {
  top: 10%;
  left: 28%;
  width: 72px;
  height: 72px;
  background: radial-gradient(circle at 34% 28%, #f7ffce, var(--lime) 38%, #74a000 100%);
}
.scene-orb-b {
  right: 2%;
  bottom: 9%;
  width: 122px;
  height: 122px;
  background: radial-gradient(circle at 35% 26%, rgba(255,255,255,.92), rgba(191,255,0,.7) 42%, rgba(191,255,0,.18) 74%);
  opacity: .86;
}
.scene-ring {
  position: absolute;
  right: -4%;
  bottom: -6%;
  width: 200px;
  height: 200px;
  border: 28px solid rgba(255,255,255,.16);
  border-radius: 50%;
  box-shadow: inset 0 0 24px rgba(255,255,255,.18), 0 18px 50px rgba(0,0,0,.28);
}
.scene-grid-card {
  position: absolute;
  right: 0;
  top: 27%;
  width: 210px;
  height: 260px;
  border: 1px solid rgba(191,255,0,.48);
  border-radius: 24px;
  background:
    linear-gradient(90deg, rgba(191,255,0,.22) 1px, transparent 1px),
    linear-gradient(rgba(191,255,0,.22) 1px, transparent 1px),
    rgba(191,255,0,.08);
  background-size: 34px 34px;
  transform: rotate(3deg);
  box-shadow: 0 24px 60px rgba(0,0,0,.28);
}
.scene-glass-card {
  position: absolute;
  display: block;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255,255,255,.22), rgba(255,255,255,.05));
  box-shadow: inset 0 0 28px rgba(255,255,255,.1), 0 24px 56px rgba(0,0,0,.26);
  backdrop-filter: blur(12px);
}
.scene-glass-a {
  top: 7%;
  right: 18%;
  width: 150px;
  height: 190px;
  transform: rotate(-12deg);
}
.scene-glass-a::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 22px;
  width: 46px;
  height: 70px;
  background-image: radial-gradient(rgba(34,34,34,.34) 2px, transparent 2.5px);
  background-size: 12px 12px;
}
.scene-glass-b {
  left: 6%;
  bottom: 12%;
  width: 138px;
  height: 214px;
  transform: rotate(6deg);
}
.scene-glass-b::before {
  content: "Create\A Connect\A Elevate";
  white-space: pre;
  position: absolute;
  left: 24px;
  bottom: 28px;
  color: rgba(255,255,255,.72);
  font-size: 14px;
  line-height: 1.55;
}
.scene-brand-block {
  position: absolute;
  right: 20%;
  bottom: 16%;
  display: grid;
  width: 178px;
  height: 178px;
  place-items: center;
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 34px;
  background: linear-gradient(145deg, rgba(191,255,0,.98), rgba(191,255,0,.54));
  box-shadow: inset -14px -18px 26px rgba(34,34,34,.16), 0 28px 72px rgba(0,0,0,.38);
  transform: rotate(-8deg);
}
.scene-brand-block::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 26px;
  border: 1px solid rgba(34,34,34,.14);
}
.scene-brand-block span {
  position: relative;
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  font-size: 0;
  border: 5px solid rgba(34,34,34,.88);
  border-radius: 50%;
}
.scene-brand-block span::before,
.scene-brand-block span::after {
  content: "";
  position: absolute;
}
.scene-brand-block span::before {
  inset: 22px 18px;
  border-top: 7px solid var(--black);
  border-bottom: 7px solid var(--black);
}
.scene-brand-block span::after {
  inset: 17px 24px;
  background: var(--black);
  clip-path: polygon(78% 0, 100% 0, 22% 100%, 0 100%);
}
.scene-note {
  position: absolute;
  right: 4%;
  top: 40%;
  width: 190px;
  padding: 22px 24px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 28px;
  color: rgba(255,255,255,.88);
  background: rgba(255,255,255,.1);
  box-shadow: 0 22px 56px rgba(0,0,0,.28);
  transform: rotate(-6deg);
  backdrop-filter: blur(16px);
}
.scene-note span {
  display: block;
  color: var(--lime);
  font-size: 13px;
  letter-spacing: .08em;
}
.scene-note strong {
  display: block;
  margin-top: 6px;
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: -.05em;
}
.scene-focus-card {
  position: absolute;
  left: 38%;
  top: 18%;
  width: 150px;
  padding: 14px 16px;
  border: 1px solid rgba(191,255,0,.34);
  border-radius: 22px;
  color: rgba(255,255,255,.82);
  background: rgba(34,34,34,.42);
  box-shadow: 0 18px 40px rgba(0,0,0,.24);
  transform: rotate(7deg);
  backdrop-filter: blur(12px);
}
.scene-focus-card span {
  display: block;
  color: var(--lime);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.08em;
}
.scene-focus-card strong {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.scene-work-card {
  position: absolute;
  left: 2%;
  top: 29%;
  overflow: hidden;
  width: 240px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 26px;
  background: rgba(255,255,255,.1);
  box-shadow: 0 22px 56px rgba(0,0,0,.3);
  transform: rotate(4deg);
}
.scene-work-card img {
  display: block;
  width: 100%;
  aspect-ratio: 2.14 / 1;
  object-fit: cover;
}
.scene-work-card span {
  display: block;
  padding: 12px 14px;
  color: rgba(255,255,255,.7);
  font-size: 10px;
  letter-spacing: .18em;
}
.scene-stairs {
  position: absolute;
  right: 0;
  bottom: 0;
  display: grid;
  align-items: end;
  grid-template-columns: repeat(4, 38px);
  gap: 0;
  transform: skewY(-8deg);
}
.scene-stairs span {
  display: block;
  height: calc(42px + var(--i, 0) * 28px);
  background: linear-gradient(180deg, rgba(191,255,0,.78), rgba(191,255,0,.28));
  border: 1px solid rgba(34,34,34,.18);
  box-shadow: inset 0 10px 18px rgba(255,255,255,.18);
}
.scene-stairs span:nth-child(1) { --i: 0; }
.scene-stairs span:nth-child(2) { --i: 1; }
.scene-stairs span:nth-child(3) { --i: 2; }
.scene-stairs span:nth-child(4) { --i: 3; }
.scene-tools {
  position: absolute;
  left: 10%;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  width: 220px;
}
.scene-tools span {
  padding: 9px 14px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  color: var(--black);
  background: var(--lime);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
}
.hero-bottom { position: absolute; right: 36px; bottom: 34px; left: 36px; align-items: end; }
.scroll-link { display: flex; gap: 14px; align-items: center; color: #fff; font-size: 12px; letter-spacing: .08em; }
.scroll-link b { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; font-weight: 400; transition: .3s ease; }
.scroll-link:hover b { color: var(--black); border-color: var(--lime); background: var(--lime); transform: translateY(4px); }
.hero-tags { display: flex; gap: 8px; }
.hero-tags span { padding: 7px 10px; border: 1px solid rgba(255,255,255,.18); border-radius: 20px; }
.hero-deco {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.hero-deco::before,
.hero-deco::after {
  content: "";
  position: absolute;
  right: clamp(-120px, 4vw, 80px);
  top: 19%;
  border-radius: 50%;
  transform: rotate(-8deg);
}
.hero-deco::before {
  width: clamp(320px, 44vw, 560px);
  height: clamp(320px, 44vw, 560px);
  border: 1px solid rgba(191,255,0,.34);
  box-shadow: inset 0 0 70px rgba(191,255,0,.04);
}
.hero-deco::after {
  right: clamp(8px, 13vw, 210px);
  top: 33%;
  width: clamp(170px, 24vw, 310px);
  height: clamp(170px, 24vw, 310px);
  border: 1px solid rgba(255,255,255,.12);
}
.deco-axis {
  position: absolute;
  display: block;
  background: rgba(191,255,0,.36);
}
.axis-top {
  top: 28%;
  right: 8%;
  width: 160px;
  height: 1px;
}
.axis-side {
  right: 10%;
  bottom: 20%;
  width: 1px;
  height: 132px;
}
.deco-node {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 18px rgba(191,255,0,.5);
}
.node-a { top: calc(28% - 3px); right: calc(8% + 156px); }
.node-b { right: calc(10% - 3px); bottom: calc(20% + 128px); background: transparent; border: 1px solid var(--lime); }
.deco-card {
  position: absolute;
  right: 44px;
  bottom: 23%;
  padding: 12px 0 12px 16px;
  border-left: 1px solid rgba(191,255,0,.45);
  color: rgba(191,255,0,.62);
  font-size: 10px;
  line-height: 1.8;
  letter-spacing: .18em;
  text-align: left;
}
.hero::after {
  content: "";
  position: absolute;
  right: 18%;
  bottom: 13%;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(191,255,0,.12), transparent 64%);
  filter: blur(14px);
  pointer-events: none;
}
.hero-orb { display: none; }

.section { padding: 130px 36px; }
.chapter-head, .section-title { display: grid; grid-template-columns: minmax(360px, 1fr) minmax(420px, 1.05fr); grid-template-areas: "meta note" "title note"; gap: 18px 30px; align-items: end; margin-bottom: 64px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.chapter-head div, .section-title div { display: flex; gap: 18px; align-items: center; grid-area: meta; }
.index { color: var(--gray); font-size: 20px; }
.chapter-head p, .section-title p, .about-left p { margin: 0; color: var(--gray); font-size: 20px; letter-spacing: .12em; }
.chapter-head > p, .section-title > p { max-width: none; font-size: 22px; line-height: 1.8; letter-spacing: 0; white-space: nowrap; }
.chapter-head h2, .section-title h2 { grid-area: title; margin: 0; color: var(--ink); font-size: clamp(38px, 4.5vw, 68px); font-weight: 700; letter-spacing: -.08em; line-height: 1; }
#aigc .chapter-head h2 { color: var(--lime) !important; }
.chapter-head > p, .section-title > p { grid-area: note; justify-self: end; align-self: end; }

.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 84px 22px; }
.project-wide { grid-column: 1 / -1; }
.project-cover { position: relative; display: block; width: 100%; padding: 0; overflow: hidden; border: 0; background: #ddd; cursor: pointer; }
.project-cover img { display: block; width: 100%; aspect-ratio: 3.35 / 1; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1), filter .4s ease; }
.project-cover img.cover-top { object-position: top center; }
.project-cover img.cover-natural,
.project:not(.project-wide) .project-cover img.cover-natural,
.projects-aigc .project-cover img.cover-natural {
  aspect-ratio: auto;
  height: auto;
  object-fit: contain;
}
.project:not(.project-wide) .project-cover img { aspect-ratio: 2 / 1; }
.project-cover:hover img { transform: scale(1.025); filter: brightness(.82); }
.open-mark { position: absolute; right: 18px; bottom: 18px; padding: 10px 14px; color: #fff; border: 1px solid rgba(255,255,255,.55); border-radius: 30px; background: rgba(0,0,0,.28); font-size: 11px; opacity: 0; transform: translateY(8px); transition: .3s ease; backdrop-filter: blur(8px); }
.project-cover:hover .open-mark { opacity: 1; transform: translateY(0); }
.project-meta { display: flex; justify-content: space-between; align-items: end; padding-top: 18px; border-top: 1px solid var(--line); }
.project-meta span { color: var(--gray); font-size: 14px; letter-spacing: .08em; }
.project-meta h3 { margin: 8px 0 0; font-size: 22px; font-weight: 600; letter-spacing: -.04em; }
.project-meta p { margin: 0; color: var(--gray); font-size: 14px !important; line-height: 1.5; }
.chapter-dark .project-meta p { font-size: 14px !important; }

.portfolio-chapter { position: relative; }
.chapter-dark { color: #fff; background: var(--black); }
.chapter-dark .chapter-head { border-color: rgba(255,255,255,.18); }
.chapter-dark .chapter-head h2 { color: var(--lime); }
.chapter-dark .chapter-head p, .chapter-dark .chapter-head .index, .chapter-dark .project-meta p, .chapter-dark .project-meta span { color: rgba(255,255,255,.46); }
.chapter-dark .project-meta { border-color: rgba(255,255,255,.18); }
.projects-aigc .project-cover img { aspect-ratio: 2 / 1; }

.skills { color: #fff; background: var(--black); }
.section-title.light { border-color: rgba(255,255,255,.18); }
.section-title.light p, .section-title.light .index { color: rgba(255,255,255,.45); }
.skill-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.18); border-left: 1px solid rgba(255,255,255,.18); }
.skill-card { min-height: 300px; padding: 26px; border-right: 1px solid rgba(255,255,255,.18); border-bottom: 1px solid rgba(255,255,255,.18); transition: color .3s ease, background .3s ease; }
.skill-card:hover { color: var(--black); background: var(--lime); }
.skill-card span { color: rgba(255,255,255,.4); font-size: 10px; }
.skill-card:hover span { color: rgba(0,0,0,.5); }
.skill-card h3 { margin: 145px 0 15px; font-size: 24px; font-weight: 600; letter-spacing: -.05em; }
.skill-card p { margin: 0; color: rgba(255,255,255,.48); font-size: 12px; line-height: 1.8; }
.skill-card:hover p { color: rgba(0,0,0,.6); }
.aigc-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 90px; }
.aigc-strip img { display: block; width: 100%; border: 1px solid rgba(255,255,255,.14); }

.about { display: grid; grid-template-columns: .7fr 1.5fr .8fr; gap: 60px; min-height: 72vh; }
.about-left { display: flex; gap: 18px; align-items: start; }
.about-main h2 { margin: 0; font-size: clamp(38px, 4.8vw, 72px); font-weight: 700; letter-spacing: -.08em; line-height: 1.12; }
.about-main h2 span { color: var(--gray); }
.about-main > p { max-width: 560px; margin: 56px 0 38px; color: #666; font-size: 13px; line-height: 2; }
.about-main a { display: inline-flex; gap: 16px; align-items: center; padding-bottom: 8px; border-bottom: 1px solid var(--ink); font-size: 12px; }
.about-main a b { font-size: 16px; font-weight: 400; transition: transform .3s ease; }
.about-main a:hover b { transform: translate(4px, -4px); }
.about-side { align-self: end; }
.about-side div { display: flex; justify-content: space-between; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 11px; }
.about-side span { color: var(--gray); }
.about-side strong { font-weight: 500; }
.about-side div:nth-child(3) { display: none !important; }

footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; padding: 32px 36px; color: rgba(255,255,255,.48); background: var(--black); font-size: 11px; }
footer div span { color: #fff; font-size: 18px; font-weight: 600; }
footer p { margin: 5px 0 0; }
footer > a { justify-self: end; }

.viewer { position: fixed; z-index: 50; inset: 0; padding: 70px 24px 24px; overflow-y: auto; visibility: hidden; opacity: 0; color: #fff; background: rgba(34,34,34,.97); transition: opacity .35s ease, visibility .35s ease; }
.viewer.open { visibility: visible; opacity: 1; }
.viewer-close { position: fixed; z-index: 2; top: 18px; right: 24px; width: 38px; height: 38px; color: #fff; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: transparent; font-size: 25px; font-weight: 300; line-height: 1; cursor: pointer; }
.viewer-head { display: flex; justify-content: space-between; max-width: 1500px; margin: 0 auto 18px; color: rgba(255,255,255,.45); font-size: 10px; letter-spacing: .14em; }
.viewer-content { display: grid; gap: 14px; max-width: 1500px; margin: 0 auto; }
.viewer-content img { display: block; width: 100%; background: #fff; }
body.viewer-open { overflow: hidden; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .75s ease, transform .75s cubic-bezier(.2,.7,.2,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 800px) {
  .nav { grid-template-columns: 1fr auto; padding: 18px; }
  .nav nav { display: none; }
  .hero, .section { padding-right: 18px; padding-left: 18px; }
  .hero { min-height: auto; padding-top: 100px; padding-bottom: 120px; }
  .hero-layout { display: block; min-height: auto; padding-top: 12vh; }
  .hero-layout::before { left: -6px; bottom: 28%; font-size: 30vw; }
  .hero-copy { margin-top: 0; }
  .hero h1 { font-size: 8.4vw; line-height: 1.08; }
  .hero-label { font-size: 16px; }
  .hero-desc { width: auto; font-size: 12px; }
  .hero-bottom { right: 18px; bottom: 24px; left: 18px; }
  .hero-tags { display: none; }
  .hero-deco::before { right: -220px; top: 18%; width: 430px; height: 430px; }
  .hero-deco::after { right: -10px; top: 33%; width: 210px; height: 210px; }
  .axis-top { top: 31%; right: 8%; width: 96px; opacity: .7; }
  .axis-side { right: 10%; bottom: 22%; height: 94px; opacity: .68; }
  .node-a { top: calc(31% - 3px); right: calc(8% + 92px); }
  .node-b { right: calc(10% - 3px); bottom: calc(22% + 90px); }
  .deco-card { right: 20px; bottom: 25%; font-size: 8px; line-height: 1.7; opacity: .76; }
  .section { padding-top: 90px; padding-bottom: 90px; }
  .chapter-head, .section-title { grid-template-columns: 1fr; gap: 16px; margin-bottom: 42px; }
  .chapter-head > p, .section-title > p { max-width: none; }
  .chapter-head > p, .section-title > p { font-size: 18px; }
  .projects { display: block; }
  .project { margin-bottom: 52px; }
  .project-cover img, .project:not(.project-wide) .project-cover img, .projects-aigc .project-cover img { aspect-ratio: 1.75 / 1; }
  .project-meta { align-items: start; flex-direction: column; gap: 12px; }
  .skill-grid, .aigc-strip, .about { grid-template-columns: 1fr; }
  .skill-card { min-height: 220px; }
  .skill-card h3 { margin-top: 80px; }
  .aigc-strip { margin-top: 48px; }
  .about { gap: 42px; }
  .about-main h2 { font-size: 11vw; }
  .about-side { align-self: auto; }
  footer { grid-template-columns: 1fr; gap: 18px; padding: 28px 18px; }
  footer > a { justify-self: start; }
  .viewer { padding: 64px 8px 8px; }
}

@media (max-width: 540px) {
  .chapter-head > p,
  .section-title > p {
    white-space: normal;
  }
}
/* Keep every portfolio chapter in a single top-to-bottom reading flow. */
.projects,
.projects.projects-aigc {
  grid-template-columns: 1fr;
}

.projects > .project,
.projects > .project.project-wide {
  grid-column: 1 / -1;
}

#aigc .project-cover img,
#school .project-cover img {
  aspect-ratio: auto;
  height: auto;
  object-fit: contain;
}
