:root {
  --bg: #f4f1eb;
  --bg-2: #fbfaf7;
  --text: #171512;
  --muted: #706d67;
  --line: rgba(23, 21, 18, 0.14);
  --glass: rgba(255, 255, 255, 0.62);
  --glass-strong: rgba(255, 255, 255, 0.82);
  --purple: #7d5cff;
  --violet: #8b63d9;
  --cyan: #276f89;
  --warm: #c9ad84;
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 82% 12%, rgba(201, 173, 132, 0.22), transparent 30rem),
    radial-gradient(circle at 8% 16%, rgba(125, 92, 255, 0.08), transparent 26rem),
    linear-gradient(180deg, var(--bg) 0%, #f9f7f2 56%, var(--bg) 100%);
  font-family: Inter, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(23, 21, 18, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 21, 18, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

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

img {
  display: block;
  width: 100%;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 34vw;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(68px);
  opacity: 0.16;
  animation: breathe 5.6s ease-in-out infinite alternate;
}

.ambient-one {
  top: 12vh;
  left: -12vw;
  background: #bfa5ff;
}

.ambient-two {
  right: -12vw;
  bottom: 12vh;
  background: #d7bd92;
  animation-delay: 1.4s;
}

@keyframes breathe {
  from { opacity: 0.22; transform: scale(0.92); }
  to { opacity: 0.48; transform: scale(1.08); }
}

.glass {
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.42)),
    var(--glass);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 18px 50px rgba(43, 36, 25, 0.08);
  backdrop-filter: blur(22px) saturate(145%);
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 30;
  width: min(1120px, calc(100% - 32px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 16px 12px 20px;
  border-radius: 999px;
  transform: translateX(-50%);
}

.brand {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
}

nav {
  display: flex;
  gap: 6px;
}

nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

nav a:hover {
  color: var(--text);
  background: rgba(23, 21, 18, 0.06);
  transform: translateY(-1px);
}

.section {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(58px, 8vw, 104px) 0;
}

.hero {
  min-height: 82vh;
  display: grid;
  grid-template-columns: minmax(0, 760px) 260px;
  align-items: start;
  gap: clamp(28px, 7vw, 96px);
  padding-top: 132px;
}

.hero-copy {
  max-width: 760px;
}

.hero-photos {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding-top: 38px;
}

.hero-photos img {
  width: 190px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(43, 36, 25, 0.12);
}

.hero-photos img:nth-child(2) {
  justify-self: end;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.portfolio-year {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-family: "Noto Serif SC", "Songti SC", SimSun, serif;
  font-size: clamp(52px, 7vw, 92px);
  line-height: 1.02;
  letter-spacing: 0;
  font-weight: 400;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 4.6vw, 54px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: clamp(18px, 1.8vw, 23px);
  line-height: 1.36;
  letter-spacing: 0;
}

.intro {
  max-width: 720px;
  margin: 0;
  color: #34312d;
  font-size: clamp(16px, 1.35vw, 18px);
  line-height: 1.9;
  letter-spacing: 0;
}

.hero-rule {
  width: min(100%, 720px);
  height: 1px;
  margin: 0 0 26px;
  background: var(--line);
}

.hero-summary {
  display: grid;
  gap: 0;
  width: min(100%, 640px);
  margin-top: 46px;
  padding-top: 0;
}

.hero-summary a {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: clamp(19px, 2vw, 26px);
  font-weight: 600;
  line-height: 1.2;
  transition: color 180ms ease, transform 180ms ease;
}

.hero-summary a:first-child {
  border-top: 1px solid var(--line);
}

.hero-summary a:hover {
  color: var(--violet);
  transform: translateX(6px);
}

.hero-summary span {
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  font-weight: 400;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.95fr;
  gap: 14px;
}

.profile-card {
  padding: clamp(18px, 2.2vw, 26px);
  border-radius: 18px;
}

.profile-card.large {
  grid-row: span 2;
}

.profile-card p {
  color: #4d4943;
}

.experience-list {
  display: grid;
  gap: 10px;
}

.experience-list div {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.experience-list span {
  color: var(--violet);
  font-size: 13px;
  font-weight: 800;
}

.experience-list p {
  margin-bottom: 0;
  font-size: 14px;
  line-height: 1.65;
}

.experience-points {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  color: #4d4943;
  font-size: 14px;
  line-height: 1.65;
  list-style: none;
}

.experience-points li {
  position: relative;
  padding-left: 14px;
}

.experience-points li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--text);
  font-weight: 700;
}

.profile-card h2 {
  font-size: clamp(24px, 3.2vw, 38px);
}

.profile-card h3 {
  font-size: 17px;
}

.profile-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  color: #4d4943;
  font-size: 14px;
  line-height: 1.7;
  list-style: none;
}

.profile-list li {
  position: relative;
  padding-left: 16px;
}

.profile-list li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--text);
  font-weight: 700;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tags span {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #34312d;
  background: rgba(255, 255, 255, 0.58);
  font-size: 13px;
}

.section-head {
  max-width: 720px;
  margin-bottom: 24px;
}

.section-head p:last-child {
  color: var(--muted);
  font-size: 16px;
}

.section-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 16px;
  list-style: none;
}

.section-list li {
  position: relative;
  padding-left: 18px;
}

.section-list li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--text);
  font-weight: 700;
}

.bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(190px, auto);
  gap: 14px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 260px));
  gap: 14px;
  justify-content: start;
}

.video-card {
  position: relative;
  min-height: 170px;
  overflow: hidden;
  border-radius: var(--radius);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.video-card img {
  height: 100%;
  min-height: 170px;
  object-fit: cover;
  transition: transform 360ms ease, filter 360ms ease;
}

.video-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(23, 21, 18, 0.08);
  border-radius: var(--radius);
  pointer-events: none;
}

.video-card:hover {
  transform: translateY(-4px);
  border-color: rgba(125, 92, 255, 0.32);
  box-shadow: 0 16px 52px rgba(43, 36, 25, 0.12);
}

.video-card:hover img {
  transform: scale(1.04);
  filter: saturate(1.06) contrast(1.04);
}

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

.writing-card {
  min-height: 210px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: stretch;
  padding: 22px;
  border-radius: var(--radius);
  text-align: left;
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.writing-card h3 {
  margin-bottom: 0;
  display: flex;
  align-items: center;
}

.writing-card p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.writing-card:hover {
  transform: translateY(-4px);
  border-color: rgba(125, 92, 255, 0.32);
  box-shadow: 0 16px 52px rgba(43, 36, 25, 0.12);
}

.bento-card,
.design-card,
.event-copy,
.contact-list a,
.contact-list span {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.bento-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 190px;
  padding: 22px;
}

.bento-card::before,
.design-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(125, 92, 255, 0.14), transparent 28%);
  opacity: 0;
  transition: opacity 220ms ease;
}

.bento-card:hover,
.design-card:hover,
.contact-list a:hover {
  transform: translateY(-6px);
  border-color: rgba(125, 92, 255, 0.32);
  box-shadow: 0 16px 52px rgba(43, 36, 25, 0.12);
}

.bento-card:hover::before,
.design-card:hover::before {
  opacity: 1;
}

.span-2 {
  grid-column: span 2;
}

.tall {
  grid-row: span 2;
}

.tag {
  width: fit-content;
  margin-bottom: 14px;
  color: var(--violet);
  font-size: 12px;
  font-weight: 800;
}

.bento-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.design-wall {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 22px 16px;
  align-items: start;
}

.design-card {
  grid-column: span 3;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: visible;
  border-radius: 0;
}

.design-card.wide {
  grid-column: span 6;
}

.design-card.poster {
  grid-column: span 3;
}

.design-card.wide .image-button {
  min-height: 0;
}

.design-card:not(.poster):not(.wide) .image-button {
  min-height: 0;
}

.image-button {
  position: relative;
  width: 100%;
  display: block;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: zoom-in;
  overflow: hidden;
  border-radius: 8px;
}

.link-image {
  cursor: pointer;
}

.image-button img {
  height: auto;
  object-fit: contain;
  transition: transform 360ms ease, filter 360ms ease;
}

.design-card.poster .image-button img {
  aspect-ratio: 3 / 4.4;
  height: 100%;
  object-fit: contain;
  object-position: center top;
  background: #f8f6f0;
}

.design-card.wide .image-button img {
  object-fit: contain;
  padding: 0;
}

.design-card.sticker .image-button img {
  object-fit: contain;
  padding: 12px;
  background: #e5e5e5;
}

.design-card:not(.poster):not(.wide) .image-button {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  background: #f8f6f0;
}

.design-card:not(.poster):not(.wide) .image-button img {
  height: 100%;
  object-fit: contain;
}

.image-button:hover img {
  transform: scale(1.04);
  filter: saturate(1.08) contrast(1.04);
}

.caption {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.event-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 14px;
}

.event-copy {
  padding: clamp(24px, 3vw, 38px);
}

.event-copy > p {
  color: #34312d;
  font-size: 16px;
}

.timeline {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.timeline div {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.timeline span {
  color: var(--cyan);
  font-weight: 800;
}

.timeline p {
  margin: 6px 0 0;
  color: var(--muted);
}

.event-images {
  display: grid;
  grid-auto-columns: 100%;
  grid-auto-flow: column;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.event-images .image-button {
  min-height: 260px;
  border-radius: var(--radius);
  scroll-snap-align: start;
}

.contact {
  min-height: 58vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
  align-items: center;
  gap: 32px;
}

.contact-list {
  display: grid;
  gap: 12px;
}

.contact-list a,
.contact-list span {
  padding: 18px 20px;
  color: var(--text);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 34px clamp(16px, 4vw, 60px);
  background: rgba(246, 243, 238, 0.86);
  backdrop-filter: blur(18px);
}

.lightbox.is-open {
  display: grid;
}

.lightbox img {
  max-width: min(1180px, 86vw);
  max-height: 78vh;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 30px 100px rgba(43, 36, 25, 0.22);
}

.lightbox p {
  margin: 14px 0 0;
  color: var(--text);
  text-align: center;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(14px);
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.92);
}

.lightbox-close {
  top: 22px;
  right: 22px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 28px;
}

.lightbox-nav {
  top: 50%;
  width: 52px;
  height: 70px;
  border-radius: 999px;
  font-size: 44px;
  transform: translateY(-50%);
}

.lightbox-nav.prev {
  left: 20px;
}

.lightbox-nav.next {
  right: 20px;
}

@media (max-width: 980px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
    flex-direction: column;
    border-radius: 24px;
  }

  nav {
    flex-wrap: wrap;
  }

  .hero,
  .profile-grid,
  .event-layout,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero-summary {
    padding-top: 0;
  }

  .hero-photos {
    grid-template-columns: repeat(2, minmax(0, 160px));
    padding-top: 12px;
  }

  .hero-photos img {
    width: 100%;
  }

  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .design-wall {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .design-card,
  .design-card.wide {
    grid-column: span 3;
  }

  .design-card.poster {
    grid-column: span 3;
  }
}

@media (max-width: 640px) {
  .section {
    width: min(100% - 28px, 1200px);
    padding: 64px 0;
  }

  .hero {
    min-height: auto;
    padding-top: 156px;
  }

  h1 {
    font-size: 48px;
  }

  h2 {
    font-size: 32px;
  }

  h3 {
    font-size: 18px;
  }

  .intro {
    font-size: 16px;
  }

  .bento,
  .design-wall,
  .video-grid,
  .writing-grid {
    grid-template-columns: 1fr;
  }

  .span-2,
  .tall {
    grid-column: span 1;
    grid-row: span 1;
  }

  .design-card,
  .design-card.poster,
  .design-card.wide {
    grid-column: span 1;
  }

  .site-header {
    width: calc(100% - 24px);
    top: 12px;
    padding: 12px;
  }

  nav a {
    padding: 7px 9px;
    font-size: 12px;
  }

  .lightbox-nav {
    top: auto;
    bottom: 18px;
    transform: none;
  }
}
