:root {
  --ink: #20231f;
  --muted: #746f64;
  --soft: rgba(255, 255, 250, 0.74);
  --line: rgba(89, 83, 70, 0.12);
  --shadow: 0 24px 60px rgba(77, 66, 45, 0.14);
  --purple: #8f5cc4;
  --mint: #65c7aa;
  --gold: #d9a24d;
  --deep: #20382f;
  --cream: #fffaf0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Inter, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  background:
    radial-gradient(circle at 8% 18%, rgba(255, 204, 220, 0.72), transparent 28%),
    radial-gradient(circle at 76% 8%, rgba(255, 241, 144, 0.64), transparent 24%),
    linear-gradient(112deg, #ffd7e0 0%, #fff4df 32%, #f7f5cf 54%, #d6f0df 74%, #bcebf3 100%);
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.11) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, transparent 0, #000 18%, #000 80%, transparent 100%);
  opacity: 0.24;
}

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

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

button {
  font: inherit;
}

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ring,
.spark {
  position: absolute;
  border-radius: 999px;
}

.ring {
  border: 2px solid rgba(255, 255, 255, 0.56);
}

.ring-left {
  width: 152px;
  height: 152px;
  left: -42px;
  top: 18%;
}

.ring-right {
  width: 86px;
  height: 86px;
  right: 9%;
  top: 51%;
}

.ring-bottom {
  width: 176px;
  height: 176px;
  left: 7%;
  bottom: -7%;
}

.spark {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.62);
  animation: float 7s ease-in-out infinite;
}

.spark-one {
  left: 10%;
  top: 24%;
}

.spark-two {
  right: 20%;
  top: 19%;
  animation-delay: 1.4s;
}

.spark-three {
  right: 12%;
  bottom: 35%;
  animation-delay: 2.4s;
}

.site-header {
  position: sticky;
  top: 24px;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  width: min(86vw, 1620px);
  margin: 24px auto 0;
  padding: 18px 24px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 28px;
  background: rgba(255, 255, 248, 0.82);
  box-shadow: 0 16px 45px rgba(90, 78, 50, 0.13);
  backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--ink);
  font-weight: 700;
}

.brand-word {
  font-size: clamp(1.05rem, 1.4vw, 1.55rem);
  letter-spacing: 0;
  font-weight: 600;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: clamp(8px, 1.5vw, 22px);
}

.nav-link,
.resume-link,
.menu-toggle {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 13px 20px;
  color: #3f4039;
  font-size: 0.96rem;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.nav-link:hover,
.resume-link:hover,
.menu-toggle:hover {
  transform: translateY(-2px);
}

.nav-link.active {
  color: #fff;
  background: var(--ink);
  box-shadow: 0 14px 30px rgba(32, 35, 31, 0.24);
}

.resume-link {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.62);
}

.menu-toggle {
  display: none;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
}

main {
  position: relative;
  z-index: 1;
}

.section {
  position: relative;
  width: min(86vw, 1560px);
  margin: 0 auto;
  padding: 105px 0;
  scroll-margin-top: 128px;
}

.hero {
  min-height: calc(100vh - 110px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(440px, 0.9fr);
  gap: 62px;
  align-items: center;
  padding-top: 78px;
}

.hero-copy,
.hero-visual {
  min-width: 0;
}

.hero-copy {
  max-width: 100%;
}

.hello-pill {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  width: max-content;
  margin: 0 0 38px;
  padding: 14px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #776c64;
  background: rgba(255, 255, 255, 0.48);
  box-shadow: inset 0 -8px 18px rgba(244, 209, 199, 0.22);
  font-size: clamp(1rem, 1.2vw, 1.45rem);
  font-weight: 600;
}

.hello-pill span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 6px rgba(101, 199, 170, 0.18);
}

.hero h1 {
  position: relative;
  display: inline-block;
  margin: 0;
  font-size: clamp(4.8rem, 8.5vw, 11rem);
  line-height: 0.9;
  font-weight: 900;
}

.hero h1::after {
  content: none;
  position: absolute;
  z-index: -1;
  left: min(52%, 470px);
  bottom: 10px;
  display: block;
  width: min(42vw, 470px);
  height: 76px;
  background:
    repeating-linear-gradient(
      -3deg,
      rgba(32, 35, 31, 0.95) 0 3px,
      transparent 3px 8px
    );
  border-radius: 999px 28px 999px 28px;
  opacity: 0.92;
}

.hero h2 {
  display: flex;
  flex-wrap: wrap;
  gap: 0 12px;
  width: max-content;
  margin: 44px 0 24px;
  color: var(--purple);
  font-size: clamp(2rem, 3vw, 3.4rem);
  line-height: 1.05;
  font-weight: 850;
  background: linear-gradient(transparent 68%, rgba(255, 210, 120, 0.72) 0);
}

.file-strip {
  width: min(100%, 760px);
  margin-bottom: 34px;
  padding: 18px 24px;
  border: 1px solid rgba(96, 79, 62, 0.14);
  border-radius: 14px;
  color: #8a8179;
  background: rgba(255, 255, 250, 0.58);
  box-shadow: 0 7px 0 rgba(224, 165, 70, 0.14);
  font-family: "Courier New", monospace;
}

.hero-summary {
  max-width: 780px;
  color: #615e58;
  font-size: clamp(1rem, 1.1vw, 1.16rem);
  line-height: 1.9;
}

.tag-row,
.project-tags,
.deck-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag-row span,
.project-tags span,
.deck-tabs span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 16px;
  border: 1px solid rgba(112, 93, 76, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  color: #4f4e49;
  font-weight: 700;
  box-shadow: inset 0 -6px 14px rgba(226, 191, 148, 0.13);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 38px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 30px;
  border: 1px solid rgba(32, 35, 31, 0.08);
  border-radius: 14px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-3px);
}

.button.primary {
  color: #fff;
  background: var(--ink);
  box-shadow: 0 20px 38px rgba(32, 35, 31, 0.2);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.55);
}

.button.small {
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
}

.button.mint {
  background: #c8f6dc;
  color: #183a2f;
}

.button.ghost {
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.hero-visual {
  position: relative;
  min-height: 650px;
}

.portrait-halo {
  position: absolute;
  inset: 12% 0 10% 8%;
  border-radius: 50%;
  background: rgba(213, 225, 249, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.58);
}

.portrait {
  position: absolute;
  right: 2%;
  bottom: 2%;
  width: min(92%, 610px);
  height: 76%;
  object-fit: cover;
  object-position: 50% 48%;
  border: 9px solid rgba(176, 218, 206, 0.92);
  border-radius: 34% 34% 2% 2% / 30% 30% 2% 2%;
  box-shadow: 0 30px 70px rgba(75, 111, 105, 0.18);
}

.bubble {
  position: absolute;
  border: 2px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  animation: float 6.5s ease-in-out infinite;
}

.bubble-a {
  width: 68px;
  height: 68px;
  left: 10%;
  top: 22%;
}

.bubble-b {
  width: 42px;
  height: 42px;
  right: 18%;
  top: 19%;
  animation-delay: 1.2s;
}

.bubble-c {
  width: 54px;
  height: 54px;
  right: 4%;
  top: 34%;
  animation-delay: 2.2s;
}

.status-card {
  position: absolute;
  right: 0;
  top: 16%;
  bottom: auto;
  width: 170px;
  padding: 24px 22px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 20px 45px rgba(55, 70, 80, 0.16);
}

.status-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--purple);
  font-size: 1.3rem;
}

.status-card strong {
  display: block;
  font-size: 1.02rem;
}

.status-card p {
  margin: 10px 0 0;
  color: #76736f;
  font-size: 0.9rem;
  line-height: 1.55;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 18px 0 28px;
  border-radius: 999px;
  background: rgba(255, 255, 246, 0.84);
  color: #7b633a;
  box-shadow: 0 14px 30px rgba(97, 80, 47, 0.16);
  transform: translateX(-50%);
  font-weight: 800;
}

.scroll-cue span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
}

.section-heading {
  max-width: 900px;
  margin: 0 auto 74px;
  text-align: center;
}

.section-heading.align-left {
  margin-left: 0;
  text-align: left;
}

.section-heading p,
.contact-panel > p {
  margin: 0 0 10px;
  color: #917d65;
  font-size: clamp(1rem, 1.2vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0;
}

.section-heading h2 {
  margin: 0;
  color: #6a5f4b;
  font-size: clamp(2.8rem, 5vw, 5.3rem);
  line-height: 1.1;
  font-weight: 520;
}

.section-heading span {
  display: block;
  margin-top: 20px;
  color: #797269;
  line-height: 1.75;
}

.brush-line {
  width: min(520px, 70vw);
  height: 22px;
  margin: 28px auto 0;
  background: repeating-linear-gradient(-3deg, rgba(47, 45, 38, 0.6) 0 2px, transparent 2px 6px);
  border-radius: 999px;
}

.education-panel,
.file-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  padding: clamp(34px, 4vw, 60px);
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.34);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.school-card {
  position: relative;
  min-height: 610px;
  overflow: hidden;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 50px rgba(72, 67, 54, 0.14);
}

.school-photo {
  width: 100%;
  aspect-ratio: 16 / 8.5;
  object-fit: cover;
}

.school-logo {
  position: absolute;
  right: 38px;
  top: 285px;
  width: 86px;
  height: 86px;
  object-fit: contain;
  border-radius: 50%;
  border: 8px solid rgba(255, 255, 255, 0.92);
  background: #fff;
  box-shadow: 0 15px 36px rgba(39, 66, 78, 0.2);
}

.school-body {
  padding: 42px;
}

.date {
  margin: 0 0 12px;
  color: #a38539;
  font-size: 1.22rem;
  font-weight: 700;
}

.degree {
  margin: 0 0 22px;
  color: #4c4c45;
  font-weight: 800;
}

.school-card h3,
.project-content h3,
.award-card h3 {
  margin: 0 0 20px;
  font-size: clamp(1.7rem, 2.2vw, 2.35rem);
  line-height: 1.18;
}

.school-card p,
.text-card p,
.project-content p,
.certificate-list p,
.drawn-card p,
.deck-area p {
  color: #67645f;
  line-height: 1.85;
}

.card-index {
  position: absolute;
  right: 22px;
  bottom: 16px;
  color: rgba(87, 81, 71, 0.08);
  font-size: 1.7rem;
  font-weight: 800;
}

.path-label {
  color: #998b72;
  font-size: 1.26rem;
  white-space: nowrap;
}

.path-label::before,
.path-label::after {
  content: "";
  display: inline-block;
  width: 44px;
  height: 1px;
  margin: 0 12px 5px;
  background: rgba(121, 104, 77, 0.24);
}

.timeline {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(98, 90, 76, 0.22);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 58px;
  align-items: center;
  margin-bottom: 64px;
}

.timeline-item::after {
  content: attr(data-index);
}

.timeline-card {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 45px rgba(74, 66, 48, 0.13);
  overflow: hidden;
}

.text-card {
  padding: 34px;
}

.equal-line {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 22px;
}

.equal-line strong {
  display: block;
  width: max-content;
  max-width: 100%;
  padding-bottom: 5px;
  font-size: clamp(1.2rem, 1.5vw, 1.55rem);
  line-height: 1.35;
  background: linear-gradient(transparent 66%, rgba(143, 92, 196, 0.22) 0);
}

.photo-note {
  padding: 24px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.62)),
    linear-gradient(rgba(80, 64, 42, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(80, 64, 42, 0.05) 1px, transparent 1px);
  background-size: auto, 22px 22px, 22px 22px;
}

.photo-note img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 12px solid #fff;
  box-shadow: 0 14px 28px rgba(45, 40, 31, 0.13);
}

.photo-note span,
.media-label {
  display: inline-flex;
  margin-top: 16px;
  padding: 8px 16px;
  border-radius: 999px;
  color: #fff;
  background: rgba(101, 175, 151, 0.82);
  font-weight: 800;
}

.collage-note {
  position: relative;
  min-height: 410px;
}

.collage-note img:first-child {
  width: 72%;
  transform: rotate(-4deg);
}

.collage-note img:nth-child(2) {
  position: absolute;
  right: 28px;
  bottom: 42px;
  width: 54%;
  transform: rotate(4deg);
}

.project-stack {
  display: grid;
  gap: 48px;
}

.project-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.85fr);
  gap: clamp(34px, 5vw, 68px);
  align-items: center;
  padding: clamp(34px, 5vw, 58px);
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.44);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.project-gallery {
  position: relative;
  min-height: 360px;
  padding: 26px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.project-reader {
  display: grid;
  grid-template-rows: minmax(280px, 1fr) auto;
  gap: 18px;
  min-height: 460px;
  overflow: hidden;
}

.folio-stage {
  position: relative;
  min-height: 350px;
  perspective: 1200px;
}

.folio-page {
  position: absolute;
  inset: 0;
  display: block;
  width: min(86%, 560px);
  margin: auto;
  padding: 0;
  border: 10px solid #fff;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 22px 54px rgba(63, 56, 47, 0.18);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(24px) scale(0.72);
  transition: transform 320ms ease, opacity 240ms ease, box-shadow 240ms ease;
}

.folio-page img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
}

.folio-page[data-state="active"] {
  z-index: 5;
  opacity: 1;
  pointer-events: auto;
  transform: translate(0, 0) rotate(0deg) scale(1);
}

.folio-page[data-state="prev-1"] {
  z-index: 4;
  opacity: 0.88;
  pointer-events: auto;
  transform: translate(-34%, 8%) rotate(-18deg) scale(0.78);
}

.folio-page[data-state="prev-2"] {
  z-index: 3;
  opacity: 0.5;
  pointer-events: auto;
  transform: translate(-19%, 18%) rotate(-34deg) scale(0.64);
}

.folio-page[data-state="next-1"] {
  z-index: 4;
  opacity: 0.88;
  pointer-events: auto;
  transform: translate(34%, 8%) rotate(18deg) scale(0.78);
}

.folio-page[data-state="next-2"] {
  z-index: 3;
  opacity: 0.5;
  pointer-events: auto;
  transform: translate(19%, 18%) rotate(34deg) scale(0.64);
}

.folio-page:hover {
  box-shadow: 0 28px 62px rgba(63, 56, 47, 0.23);
}

.folio-controls {
  position: relative;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.folio-counter {
  min-width: 84px;
  color: #6a645a;
  font-size: 1.05rem;
  font-weight: 800;
  text-align: center;
  letter-spacing: 0.08em;
}

.mini-polaroids {
  display: flex;
  gap: 12px;
  margin-top: -36px;
  margin-left: 28px;
}

.mini-polaroids img {
  width: 34%;
  aspect-ratio: 1 / 0.75;
  object-fit: cover;
  border: 9px solid #fff;
  box-shadow: 0 12px 28px rgba(54, 45, 35, 0.16);
}

.community-project-gallery {
  min-height: 0;
  max-height: none;
  overflow: visible;
  padding: 20px;
}

.community-photo-wall {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.community-photo-wall figure {
  position: relative;
  min-height: 120px;
  margin: 0;
  overflow: hidden;
  border: 7px solid rgba(255, 255, 255, 0.88);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(63, 56, 47, 0.13);
}

.community-photo-wall img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 120px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.community-photo-wall figcaption {
  position: absolute;
  right: 6px;
  bottom: 6px;
  left: 6px;
  padding: 5px 7px;
  border-radius: 999px;
  color: #fff;
  background: rgba(28, 31, 27, 0.62);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  backdrop-filter: blur(8px);
}

.project-content {
  position: relative;
}

.project-index {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 30px;
  place-items: center;
  border-radius: 16px;
  color: #fff;
  background: #b0798a;
  font-weight: 800;
  transform: rotate(-4deg);
}

.project-tags {
  margin: 24px 0 30px;
}

.awards {
  width: min(88vw, 1600px);
}

.award-wall {
  display: grid;
  gap: 46px;
}

.award-category {
  padding: clamp(22px, 3vw, 36px);
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.36);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.award-category > h3 {
  width: max-content;
  max-width: 100%;
  margin: 0 auto 28px;
  padding: 10px 20px;
  border-radius: 999px;
  color: #fff;
  background: var(--ink);
  box-shadow: 0 14px 30px rgba(32, 35, 31, 0.17);
  font-size: 1.05rem;
}

.honor-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.honor-card {
  display: grid;
  grid-template-rows: 1fr minmax(56px, auto);
  gap: 14px;
  align-items: start;
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 15px 36px rgba(74, 66, 50, 0.11);
  transition: transform 180ms ease, box-shadow 180ms ease;
  cursor: zoom-in;
}

.honor-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 52px rgba(74, 66, 50, 0.16);
}

.honor-card img {
  width: 100%;
  height: clamp(230px, 20vw, 330px);
  object-fit: contain;
  padding: 0;
  border-radius: 12px;
  background: #fff;
}

.honor-card figcaption {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  color: #403e39;
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 42px);
  background: rgba(28, 31, 27, 0.72);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  backdrop-filter: blur(18px);
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-panel {
  display: grid;
  gap: 14px;
  max-width: min(92vw, 980px);
  max-height: 90vh;
  margin: 0;
  padding: clamp(12px, 2vw, 18px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.28);
}

.lightbox-panel img {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 14px;
  background: #fff;
}

.lightbox-panel figcaption {
  color: #34342f;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
}

.lightbox-close {
  position: fixed;
  top: 22px;
  right: 22px;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  color: #fff;
  background: rgba(21, 23, 20, 0.72);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  font-size: 1.5rem;
}

.award-showcase {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

.award-card {
  min-height: 360px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 17px 38px rgba(74, 66, 50, 0.12);
}

.award-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  padding: 10px;
  border-radius: 14px;
  background: #fff;
}

.award-card h3 {
  margin-top: 18px;
  font-size: 1.05rem;
}

.award-card.featured {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 24px;
  align-items: center;
}

.award-card.featured h3 {
  font-size: clamp(1.6rem, 2.2vw, 2.3rem);
}

.certificate-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.certificate-list > div {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.54);
  box-shadow: 0 14px 34px rgba(74, 66, 50, 0.11);
}

.certificate-list h3 {
  margin: 0 0 18px;
  color: #2f302c;
}

.certificate-list p {
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid rgba(92, 82, 68, 0.1);
  font-size: 0.95rem;
}

.file-panel {
  grid-template-columns: 0.9fr 1fr;
  max-width: 1160px;
}

.deck-area {
  text-align: center;
}

.back-card {
  position: relative;
  width: min(290px, 70vw);
  height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 0 auto 24px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(150deg, #8a62c8 0%, #d48278 100%);
  box-shadow:
    -16px 14px 0 rgba(143, 92, 196, 0.28),
    16px 16px 0 rgba(220, 164, 101, 0.26),
    0 24px 54px rgba(84, 57, 89, 0.18);
}

.back-card span {
  display: grid;
  width: 66px;
  height: 66px;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.back-card strong,
.back-card em {
  letter-spacing: 0;
  font-size: 1.25rem;
}

.deck-tabs {
  justify-content: center;
  margin: 10px 0 28px;
}

.life-photo {
  width: min(300px, 76vw);
  aspect-ratio: 16 / 10;
  margin: 0 auto 26px;
  object-fit: cover;
  border: 10px solid rgba(255, 255, 255, 0.76);
  border-radius: 18px;
  box-shadow: 0 18px 42px rgba(69, 58, 43, 0.14);
}

.organization-gallery {
  max-width: 1160px;
  margin: 42px auto 0;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.38);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.gallery-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.gallery-head h3 {
  margin: 0;
  color: #5f574a;
  font-size: clamp(1.7rem, 2.4vw, 2.5rem);
}

.gallery-controls {
  display: flex;
  gap: 10px;
}

.gallery-btn {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(80, 72, 61, 0.12);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 10px 24px rgba(67, 57, 43, 0.1);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
}

.gallery-btn:hover {
  transform: translateY(-2px);
  background: #fff;
}

.org-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(3, auto);
  grid-auto-columns: minmax(260px, 31%);
  gap: 22px;
  overflow-x: auto;
  padding: 4px 4px 18px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: thin;
}

.org-slide {
  display: grid;
  grid-template-rows: auto minmax(56px, auto);
  gap: 16px;
  margin: 0;
  scroll-snap-align: start;
}

.org-slide img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 9px solid rgba(255, 255, 255, 0.86);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(69, 58, 43, 0.13);
}

.org-slide figcaption {
  max-width: 100%;
  color: #5f5b54;
  font-weight: 800;
  line-height: 1.5;
  text-align: center;
}

.drawn-card {
  min-height: 480px;
  padding: 34px;
  border: 1px solid rgba(101, 174, 151, 0.2);
  border-radius: 24px;
  background: rgba(248, 255, 250, 0.72);
  box-shadow: 0 22px 52px rgba(45, 70, 70, 0.15);
}

.drawn-card > p:first-child {
  display: flex;
  justify-content: space-between;
  margin: 0;
  color: #58a78d;
  font-weight: 800;
  font-size: 1.25rem;
}

.orbit {
  position: relative;
  width: min(100%, 360px);
  aspect-ratio: 1;
  margin: 28px auto;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle at center, transparent 0 23px, rgba(101, 174, 151, 0.16) 24px 25px),
    rgba(101, 199, 170, 0.08);
}

.orbit::before,
.orbit::after,
.orbit span {
  content: "";
  position: absolute;
  border: 1px solid rgba(101, 174, 151, 0.25);
  border-radius: 50%;
}

.orbit::before {
  inset: 34%;
  background: rgba(255, 255, 255, 0.78);
}

.orbit::after {
  width: 32px;
  height: 32px;
  left: 18%;
  top: 26%;
  background: rgba(101, 174, 151, 0.86);
}

.orbit span {
  width: 42px;
  height: 42px;
  right: 20%;
  bottom: 26%;
}

.drawn-label {
  display: block;
  color: #5aa990;
  font-weight: 800;
  font-size: 1.2rem;
}

.drawn-card h3 {
  margin: 18px 0 4px;
  font-size: clamp(2rem, 3.2vw, 3rem);
}

.drawn-card small {
  display: block;
  margin-top: 22px;
  color: #8f918b;
  text-align: right;
}

.contact {
  width: min(90vw, 1700px);
}

.contact-panel {
  min-height: 720px;
  padding: clamp(54px, 8vw, 110px);
  border-radius: 42px;
  color: #edf5ef;
  background:
    radial-gradient(circle at 72% 22%, rgba(92, 158, 128, 0.42), transparent 20%),
    linear-gradient(120deg, #1e302b 0%, #1b342b 54%, #25382f 100%);
  box-shadow: 0 28px 80px rgba(39, 55, 49, 0.28);
}

.contact-panel > p {
  color: #a1d8c2;
}

.contact-panel h2 {
  max-width: 980px;
  margin: 0 0 36px;
  font-size: clamp(3.4rem, 7vw, 8.2rem);
  line-height: 1.04;
  font-weight: 420;
}

.contact-panel > span {
  display: block;
  max-width: 780px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.16rem;
  line-height: 1.85;
}

.contact-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  margin-top: 120px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 1.1rem;
}

.contact-meta p {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-16px);
  }
}

@media (max-width: 1180px) {
  .site-header {
    width: min(92vw, 980px);
    grid-template-columns: auto auto auto;
  }

  .menu-toggle {
    display: inline-flex;
    justify-content: center;
  }

  .site-nav {
    position: absolute;
    left: 20px;
    right: 20px;
    top: calc(100% + 12px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 14px;
    border-radius: 20px;
    background: rgba(255, 255, 248, 0.96);
    box-shadow: 0 18px 46px rgba(55, 46, 33, 0.16);
  }

  .site-nav.open {
    display: flex;
  }

  .nav-link {
    text-align: center;
  }

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

  .hero-visual {
    min-height: 580px;
  }

  .education-panel {
    grid-template-columns: 1fr;
  }

  .path-label {
    text-align: center;
  }

  .timeline::before {
    left: 12px;
  }

  .timeline-item,
  .timeline-item.reverse {
    grid-template-columns: 1fr;
    padding-left: 34px;
  }

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

  .project-reader {
    min-height: 430px;
  }

  .community-photo-wall {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .award-showcase,
  .certificate-list {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .org-carousel {
    grid-auto-columns: minmax(240px, 46%);
  }

  .award-card.featured {
    grid-column: 1 / -1;
  }

  .file-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body {
    background:
      linear-gradient(145deg, #ffd7e0 0%, #fff4df 35%, #d9f0dd 68%, #bfeaf2 100%);
  }

  .site-header {
    top: 12px;
    width: calc(100vw - 24px);
    gap: 10px;
    padding: 12px;
    border-radius: 20px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand-word {
    display: none;
  }

  .resume-link,
  .menu-toggle {
    min-height: 42px;
    padding: 0 14px;
    font-size: 0.86rem;
  }

  .section {
    width: calc(100vw - 28px);
    padding: 72px 0;
    scroll-margin-top: 104px;
  }

  .hero {
    padding-top: 54px;
    gap: 28px;
    overflow: hidden;
  }

  .hero-copy {
    width: calc(100vw - 28px);
    max-width: calc(100vw - 28px);
    overflow: hidden;
  }

  .hello-pill {
    margin-bottom: 24px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(3.15rem, 14.6vw, 4.05rem);
    line-height: 0.96;
    word-break: keep-all;
  }

  .hero h1::after {
    width: min(62vw, 220px);
    height: 34px;
    left: 34%;
    bottom: 4px;
  }

  .hero h2 {
    width: 100%;
    max-width: 100%;
    gap: 2px 8px;
    font-size: clamp(1.35rem, 6.4vw, 1.58rem);
    line-height: 1.22;
    overflow-wrap: normal;
  }

  .hero h2 span {
    display: inline-block;
  }

  .file-strip {
    width: 100%;
    max-width: 100%;
    font-size: 0.88rem;
    overflow-wrap: anywhere;
  }

  .hero-summary {
    width: 100%;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-all;
  }

  .tag-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .tag-row span {
    justify-content: center;
    width: 100%;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-visual {
    min-height: 420px;
  }

  .portrait-halo {
    inset: 8% 3% 3%;
  }

  .portrait {
    width: 88%;
    height: 82%;
    right: 6%;
    bottom: 0;
  }

  .status-card {
    right: 4%;
    top: 8%;
    bottom: auto;
    width: 146px;
    padding: 16px;
  }

  .scroll-cue {
    position: static;
    width: max-content;
    margin: 18px auto 0;
    transform: none;
    font-size: 0.9rem;
  }

  .section-heading {
    margin-bottom: 42px;
  }

  .section-heading h2 {
    font-size: clamp(2.5rem, 13vw, 3.8rem);
  }

  .education-panel,
  .project-card,
  .file-panel {
    padding: 18px;
    border-radius: 24px;
  }

  .school-card {
    min-height: 0;
  }

  .school-logo {
    width: 70px;
    height: 70px;
    right: 20px;
    top: 164px;
  }

  .school-body {
    padding: 28px;
  }

  .timeline-item,
  .timeline-item.reverse {
    gap: 24px;
    padding-left: 24px;
  }

  .text-card,
  .photo-note,
  .project-gallery {
    padding: 20px;
  }

  .collage-note {
    min-height: 300px;
  }

  .project-gallery {
    min-height: 0;
  }

  .project-reader {
    grid-template-rows: 250px auto;
    gap: 14px;
    min-height: 330px;
    overflow: hidden;
  }

  .folio-stage {
    min-height: 250px;
  }

  .folio-page {
    width: min(84%, 320px);
    border-width: 7px;
    border-radius: 14px;
  }

  .folio-page[data-state="prev-1"] {
    transform: translate(-24%, 10%) rotate(-16deg) scale(0.74);
  }

  .folio-page[data-state="prev-2"] {
    transform: translate(-13%, 18%) rotate(-29deg) scale(0.6);
  }

  .folio-page[data-state="next-1"] {
    transform: translate(24%, 10%) rotate(16deg) scale(0.74);
  }

  .folio-page[data-state="next-2"] {
    transform: translate(13%, 18%) rotate(29deg) scale(0.6);
  }

  .folio-counter {
    min-width: 72px;
    font-size: 0.92rem;
  }

  .community-project-gallery {
    max-height: none;
    overflow: visible;
  }

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

  .community-photo-wall figure,
  .community-photo-wall img {
    min-height: 104px;
  }

  .community-photo-wall figure:nth-child(5n + 1),
  .community-photo-wall figure:nth-child(7n) {
    grid-column: span 1;
  }

  .project-gallery > img,
  .photo-note img {
    border-width: 8px;
  }

  .mini-polaroids {
    margin-left: 8px;
  }

  .award-showcase,
  .certificate-list {
    grid-template-columns: 1fr;
  }

  .award-category {
    padding: 18px;
    border-radius: 24px;
  }

  .honor-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .honor-card {
    padding: 14px;
  }

  .honor-card figcaption {
    min-height: auto;
    font-size: 0.92rem;
  }

  .gallery-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .gallery-controls {
    width: 100%;
    justify-content: flex-end;
  }

  .org-carousel {
    grid-auto-columns: minmax(236px, 78%);
    gap: 16px;
  }

  .org-slide img {
    border-width: 8px;
  }

  .award-card,
  .award-card.featured {
    display: block;
    min-height: 0;
  }

  .back-card {
    height: 300px;
  }

  .drawn-card {
    min-height: 0;
  }

  .contact-panel {
    min-height: 620px;
    padding: 42px 24px;
    border-radius: 28px;
  }

  .contact-panel h2 {
    font-size: clamp(3.2rem, 16vw, 4.8rem);
  }

  .contact-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .contact-meta {
    margin-top: 70px;
    flex-direction: column;
  }
}
