:root {
  --paper: #fff9f2;
  --paper-deep: #f5ebde;
  --pink: #efb7c3;
  --pink-soft: #f9e3e8;
  --pink-deep: #c86f86;
  --blue: #b9d8ec;
  --blue-soft: #e5f1f8;
  --ink: #514b49;
  --ink-strong: #332f2e;
  --muted: #7e7470;
  --white: #fffefa;
  --border: rgba(81, 75, 73, 0.16);
  --shadow: 0 22px 60px rgba(94, 70, 68, 0.12);
  --radius-xl: 36px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --shell: min(1180px, calc(100% - 48px));
  --header-height: 76px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 18px);
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 4%, rgba(239, 183, 195, 0.2), transparent 22rem),
    radial-gradient(circle at 92% 18%, rgba(185, 216, 236, 0.25), transparent 25rem),
    var(--paper);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body.menu-open,
body.lightbox-open {
  overflow: hidden;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

button {
  color: inherit;
  font: inherit;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  padding: 9px 14px;
  border-radius: 10px;
  background: var(--ink-strong);
  color: white;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.section-shell {
  width: var(--shell);
  margin-inline: auto;
}

.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  border-color: var(--border);
  background: rgba(255, 249, 242, 0.88);
  box-shadow: 0 8px 32px rgba(81, 75, 73, 0.06);
  backdrop-filter: blur(16px);
}

.nav-shell {
  width: var(--shell);
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: grid;
  width: 40px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50% 50% 45% 55%;
  background: var(--pink);
  color: var(--ink-strong);
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 21px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 7px;
}

.site-nav a {
  position: relative;
  padding: 9px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  transition: color 160ms ease, background 160ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--ink-strong);
  background: rgba(255, 255, 255, 0.64);
}

.site-nav .nav-contact {
  margin-left: 8px;
  padding-inline: 18px;
  background: var(--ink-strong);
  color: white;
}

.site-nav .nav-contact:hover {
  color: white;
  background: var(--pink-deep);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 21px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 180ms ease, opacity 180ms ease;
}

.hero {
  min-height: min(900px, 100svh);
  padding-top: calc(var(--header-height) + 78px);
  padding-bottom: 70px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.8fr);
  align-content: center;
  gap: 58px 78px;
}

.hero-copy {
  align-self: center;
}

.eyebrow,
.section-index,
.project-type {
  margin: 0 0 18px;
  color: var(--pink-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow span {
  width: 28px;
  height: 2px;
  background: currentColor;
}

.hero h1 {
  margin: 0;
  color: var(--ink-strong);
  font-family: "STKaiti", "KaiTi", "Songti SC", serif;
  font-size: clamp(58px, 8vw, 102px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero h1 strong {
  position: relative;
  display: inline-block;
  z-index: 0;
  font-weight: 700;
}

.hero h1 strong::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -3%;
  right: -8%;
  bottom: 6%;
  height: 24%;
  border-radius: 10px 30px 8px 20px;
  background: var(--pink);
  transform: rotate(-2deg);
}

.hero-role {
  margin: 27px 0 12px;
  color: var(--ink-strong);
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-intro {
  max-width: 630px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.tag-list,
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.tag-list {
  margin-top: 26px;
}

.tag-list span,
.skill-tags span {
  padding: 7px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 750;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.button-primary {
  background: var(--ink-strong);
  box-shadow: 0 12px 24px rgba(51, 47, 46, 0.16);
  color: white;
}

.button-primary:hover {
  background: var(--pink-deep);
}

.button-secondary {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.62);
}

.hero-visual {
  position: relative;
  min-height: 540px;
  align-self: center;
}

.portrait-frame {
  position: absolute;
  inset: 0 20px 24px 54px;
  overflow: hidden;
  border: 10px solid rgba(255, 255, 255, 0.72);
  border-radius: 48% 48% 28px 28px;
  background: var(--blue-soft);
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
}

.portrait-frame::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: auto -20% -22% 18%;
  height: 55%;
  border-radius: 50%;
  background: rgba(239, 183, 195, 0.16);
  pointer-events: none;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scaleX(-1);
}

.portrait-note {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 18px;
  padding: 11px 16px;
  border-radius: 14px;
  background: rgba(255, 254, 250, 0.86);
  font-family: "STKaiti", "KaiTi", serif;
  font-size: 17px;
  line-height: 1.35;
  transform: rotate(-3deg);
  backdrop-filter: blur(8px);
}

.visual-card {
  position: absolute;
  z-index: 3;
  display: grid;
  gap: 3px;
  min-width: 176px;
  padding: 14px 17px;
  border: 4px solid var(--paper);
  border-radius: 17px;
  box-shadow: 0 14px 32px rgba(81, 75, 73, 0.13);
}

.visual-card-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  opacity: 0.68;
}

.visual-card strong {
  font-size: 13px;
}

.visual-card-blue {
  top: 24%;
  left: -2%;
  background: var(--blue);
  transform: rotate(-4deg);
}

.visual-card-pink {
  right: -2%;
  bottom: 10%;
  background: var(--pink);
  transform: rotate(3deg);
}

.stat-strip {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 18px 48px rgba(81, 75, 73, 0.06);
}

.stat-strip article {
  display: grid;
  gap: 2px;
  padding: 21px 28px;
  border-right: 1px solid var(--border);
}

.stat-strip article:last-child {
  border-right: 0;
}

.stat-strip strong {
  color: var(--ink-strong);
  font-family: Georgia, serif;
  font-size: 31px;
  line-height: 1;
}

.stat-strip sup {
  color: var(--pink-deep);
  font-family: inherit;
  font-size: 0.55em;
}

.stat-strip span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.section {
  padding: 118px 0;
}

.section-soft-blue {
  background: rgba(229, 241, 248, 0.74);
}

.section-soft-pink {
  background: rgba(249, 227, 232, 0.48);
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 440px);
  align-items: end;
  gap: 40px;
  margin-bottom: 52px;
}

.section-heading h2,
.contact-inner h2 {
  margin: 0;
  color: var(--ink-strong);
  font-family: "STKaiti", "KaiTi", "Songti SC", serif;
  font-size: clamp(42px, 6vw, 67px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}

.section-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.section-index {
  margin-bottom: 12px;
}

.education-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.education-card {
  display: grid;
  gap: 24px;
  min-height: 300px;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-lg);
  background: rgba(255, 254, 250, 0.78);
  box-shadow: 0 18px 40px rgba(62, 95, 114, 0.07);
}

.education-card time {
  width: fit-content;
  height: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--blue);
  color: var(--ink-strong);
  font-family: Georgia, serif;
  font-size: 13px;
  font-weight: 700;
}

.education-card h3 {
  margin: 0;
  color: var(--ink-strong);
  font-size: 25px;
}

.education-major {
  margin: 6px 0 16px;
  color: var(--pink-deep);
  font-size: 16px;
  font-weight: 750;
}

.education-card div > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

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

.experience-card {
  display: grid;
  grid-template-columns: 148px 1fr;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 18px 52px rgba(81, 75, 73, 0.07);
}

.experience-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 2px;
  padding: 39px 24px;
  background: var(--ink-strong);
  color: white;
  font-family: Georgia, serif;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

.experience-date span:nth-child(2) {
  width: 24px;
  height: 1px;
  margin: 11px 0;
  overflow: hidden;
  background: var(--pink);
  color: transparent;
}

.experience-content {
  min-width: 0;
  padding: 32px;
}

.experience-identity {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--border);
}

.experience-identity div {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 104px;
  padding: 18px;
  background: var(--white);
}

.experience-identity span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.experience-identity strong {
  color: var(--ink-strong);
  font-size: clamp(15px, 1.55vw, 19px);
  line-height: 1.35;
}

.experience-points {
  display: grid;
  gap: 9px;
  margin: 26px 0 30px;
  padding: 0;
  list-style: none;
}

.experience-points li {
  position: relative;
  padding-left: 20px;
  color: var(--muted);
  font-size: 14px;
}

.experience-points li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pink);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.video-grid figure {
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
  background: var(--blue-soft);
}

.video-grid video {
  width: 100%;
  aspect-ratio: 9 / 14;
  background: var(--ink-strong);
  object-fit: cover;
}

.video-grid figcaption {
  padding: 10px 13px 12px;
  color: var(--ink-strong);
  font-size: 12px;
  font-weight: 750;
}

.experience-gallery {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 10px;
}

.image-button {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.image-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 280ms ease;
}

.image-button:hover img {
  transform: scale(1.025);
}

.carousel {
  min-width: 0;
}

.carousel-viewport {
  overflow: hidden;
  border-radius: 16px;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.carousel-viewport::-webkit-scrollbar {
  display: none;
}

.carousel-track {
  display: flex;
  gap: 12px;
  width: 100%;
}

.carousel-slide {
  flex: 0 0 100%;
  border-radius: 16px;
  background: var(--paper-deep);
  scroll-snap-align: start;
}

.carousel-slide img {
  object-position: top;
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 10px;
}

.carousel-controls button {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink-strong);
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

.carousel-controls button:hover {
  background: var(--pink);
  transform: translateY(-1px);
}

.carousel-controls [data-carousel-status] {
  min-width: 44px;
  color: var(--muted);
  font-family: Georgia, serif;
  font-size: 11px;
  text-align: center;
}

.activity-carousel .carousel-viewport,
.activity-carousel .carousel-slide {
  height: 234px;
}

.activity-carousel .carousel-slide img {
  object-fit: cover;
  object-position: center;
}

.article-links {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  height: 276px;
}

.article-links .image-button {
  border-radius: 15px;
  background: var(--paper-deep);
}

.article-links img {
  object-fit: cover;
  object-position: center;
}

.article-links span {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(51, 47, 46, 0.78);
  color: white;
  font-size: 10px;
  font-weight: 700;
  backdrop-filter: blur(6px);
}

.featured-work {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 42px;
  overflow: hidden;
  padding: 18px;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow);
}

.featured-image {
  min-height: 480px;
  border-radius: 24px;
  background: var(--blue-soft);
}

.featured-image img {
  object-position: top;
}

.featured-image span {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(51, 47, 46, 0.8);
  color: white;
  font-size: 11px;
  font-weight: 700;
  backdrop-filter: blur(6px);
}

.featured-copy {
  align-self: center;
  padding: 24px 32px 24px 0;
}

.featured-copy h3,
.project-card h3,
.collection-heading h3,
.vibe-note h3,
.skill-card h3 {
  margin: 0;
  color: var(--ink-strong);
  line-height: 1.25;
}

.featured-copy h3 {
  font-family: "STKaiti", "KaiTi", "Songti SC", serif;
  font-size: clamp(30px, 4vw, 46px);
}

.featured-copy > p:not(.project-type) {
  margin: 22px 0;
  color: var(--muted);
  font-size: 14px;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 26px;
}

.project-meta span {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--blue-soft);
  font-size: 11px;
  font-weight: 700;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 2px;
  border-bottom: 1px solid currentColor;
  color: var(--pink-deep);
  font-size: 14px;
  font-weight: 800;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 22px;
}

.project-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 18px;
  min-height: 470px;
  overflow: hidden;
  padding: 34px;
  border-radius: var(--radius-xl);
}

.project-card-blue {
  background: var(--blue);
}

.project-card-cream {
  background: var(--paper-deep);
}

.project-card-copy {
  position: relative;
  z-index: 2;
}

.project-card h3 {
  font-size: 27px;
}

.project-card-copy > p:not(.project-type) {
  margin: 16px 0 22px;
  color: rgba(51, 47, 46, 0.74);
  font-size: 13px;
}

.project-card .project-type {
  color: rgba(51, 47, 46, 0.62);
}

.metric-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.metric-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.metric-list strong {
  color: var(--ink-strong);
  font-family: Georgia, serif;
  font-size: 20px;
}

.metric-list span {
  color: rgba(51, 47, 46, 0.68);
  font-size: 11px;
}

.phone-gallery,
.single-phone {
  align-self: end;
}

.phone-gallery {
  position: relative;
  height: 350px;
}

.phone-gallery .image-button,
.single-phone {
  overflow: hidden;
  border: 5px solid rgba(255, 255, 255, 0.85);
  border-radius: 22px;
  box-shadow: 0 18px 34px rgba(51, 47, 46, 0.15);
}

.phone-gallery .image-button {
  position: absolute;
  inset: 0 8px 0 0;
}

.phone-gallery .phone-secondary {
  inset: 92px -5px -12px 38px;
  transform: rotate(5deg);
}

.phone-gallery img,
.single-phone img {
  object-position: top;
}

.single-phone {
  height: 350px;
  transform: rotate(3deg);
}

.work-collection {
  margin-top: 22px;
  padding: 38px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: rgba(255, 254, 250, 0.76);
}

.collection-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 26px;
}

.collection-heading h3 {
  font-size: 28px;
}

.collection-heading > p {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.ai-carousel .carousel-viewport,
.ai-carousel .carousel-slide {
  height: 340px;
}

.ai-carousel .carousel-viewport {
  overscroll-behavior-inline: contain;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.ai-carousel .carousel-slide {
  flex-basis: calc((100% - 36px) / 4);
}

.ai-carousel .carousel-slide img {
  object-fit: cover;
}

.carousel-controls-wide {
  justify-content: flex-start;
}

.carousel-hint {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
}

.vibe-note {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 22px;
  margin-top: 22px;
  padding: 26px 30px;
  border: 1px dashed rgba(81, 75, 73, 0.34);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.48);
}

.vibe-icon {
  display: grid;
  width: 66px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 21px;
  background: var(--ink-strong);
  color: var(--pink);
  font-family: ui-monospace, monospace;
  font-weight: 800;
}

.vibe-note h3 {
  font-size: 21px;
}

.vibe-note p:last-child {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.vibe-note .project-type {
  margin-bottom: 4px;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.skill-card {
  min-height: 230px;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.62);
}

.skill-card:nth-child(2),
.skill-card:nth-child(3) {
  background: var(--blue-soft);
}

.skill-card-wide {
  grid-column: 1 / -1;
}

.skill-number {
  display: block;
  margin-bottom: 35px;
  color: var(--pink-deep);
  font-family: Georgia, serif;
  font-size: 12px;
}

.skill-card h3 {
  margin-bottom: 18px;
  font-size: 22px;
}

.skill-tags span {
  background: var(--white);
  font-size: 12px;
}

.honor-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  padding: 18px;
  border-radius: 999px;
  background: var(--pink-soft);
}

.honor-strip span {
  padding: 3px 15px;
  border-right: 1px solid rgba(81, 75, 73, 0.18);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.honor-strip span:last-child {
  border-right: 0;
}

.contact-section {
  padding: 104px 0;
  background: var(--blue);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr minmax(360px, 0.8fr);
  align-items: center;
  gap: 70px;
}

.contact-inner > div > p:last-child {
  max-width: 560px;
  margin: 20px 0 0;
  color: rgba(51, 47, 46, 0.72);
}

.contact-inner .section-index {
  color: rgba(51, 47, 46, 0.55);
}

.contact-card {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 25px 72px 25px 25px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 18px 42px rgba(62, 95, 114, 0.14);
  transition: transform 180ms ease;
}

.contact-card:hover {
  transform: translateY(-4px) rotate(-1deg);
}

.contact-card > span:first-child {
  color: var(--pink-deep);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.contact-card strong {
  overflow-wrap: anywhere;
  color: var(--ink-strong);
  font-family: Georgia, serif;
  font-size: clamp(17px, 2.2vw, 24px);
}

.contact-arrow {
  position: absolute;
  right: 22px;
  bottom: 22px;
  display: grid;
  width: 38px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: var(--pink);
  font-weight: 800;
}

.site-footer {
  padding: 24px 0;
  background: var(--ink-strong);
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
}

.site-footer .section-shell {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.site-footer a:hover {
  color: white;
}

.lightbox {
  width: min(1120px, calc(100% - 30px));
  max-width: none;
  height: min(92vh, 940px);
  max-height: none;
  overflow: hidden;
  padding: 52px 18px 18px;
  border: 0;
  border-radius: 24px;
  background: rgba(35, 31, 30, 0.96);
}

.lightbox::backdrop {
  background: rgba(38, 32, 31, 0.72);
  backdrop-filter: blur(6px);
}

.lightbox img {
  width: 100%;
  height: 100%;
  margin: auto;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 13px;
  display: grid;
  width: 36px;
  aspect-ratio: 1;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: white;
  font-size: 24px;
  cursor: pointer;
}

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

.reveal-delay {
  transition-delay: 110ms;
}

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

@media (max-width: 980px) {
  :root {
    --shell: min(100% - 36px, 760px);
  }

  .site-nav a {
    padding-inline: 9px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr 0.8fr;
    gap: 45px 30px;
    padding-top: calc(var(--header-height) + 56px);
  }

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

  .portrait-frame {
    left: 28px;
  }

  .stat-strip {
    grid-template-columns: 1fr 1fr;
  }

  .stat-strip article:nth-child(2) {
    border-right: 0;
  }

  .stat-strip article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--border);
  }

  .experience-card {
    grid-template-columns: 118px 1fr;
  }

  .experience-content {
    padding: 25px;
  }

  .featured-work {
    grid-template-columns: 1fr;
  }

  .featured-image {
    min-height: 520px;
  }

  .featured-copy {
    padding: 20px 18px 24px;
  }

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

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

  .ai-carousel .carousel-slide {
    flex-basis: calc((100% - 24px) / 3);
  }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 68px;
    --shell: calc(100% - 30px);
    --radius-xl: 28px;
  }

  .brand-copy {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .menu-button[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .menu-button[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-button[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .site-nav {
    position: fixed;
    inset: var(--header-height) 15px auto;
    display: grid;
    gap: 2px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: rgba(255, 249, 242, 0.97);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
  }

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

  .site-nav a {
    padding: 11px 13px;
  }

  .site-nav .nav-contact {
    margin: 4px 0 0;
    text-align: center;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: calc(var(--header-height) + 48px);
    padding-bottom: 50px;
  }

  .hero h1 {
    font-size: clamp(56px, 22vw, 82px);
  }

  .hero-intro {
    font-size: 15px;
  }

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

  .portrait-frame {
    inset: 0 15px 20px 20px;
  }

  .visual-card-blue {
    left: -1%;
  }

  .visual-card-pink {
    right: -1%;
  }

  .stat-strip {
    grid-column: auto;
  }

  .stat-strip article {
    padding: 18px;
  }

  .stat-strip strong {
    font-size: 26px;
  }

  .section {
    padding: 82px 0;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 19px;
    margin-bottom: 38px;
  }

  .section-heading > p {
    max-width: 520px;
  }

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

  .education-card {
    min-height: 0;
    padding: 26px;
  }

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

  .experience-date {
    flex-direction: row;
    justify-content: flex-start;
    gap: 8px;
    padding: 16px 22px;
  }

  .experience-date span:nth-child(2) {
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    background: none;
    color: var(--pink);
  }

  .experience-content {
    padding: 22px;
  }

  .experience-identity {
    grid-template-columns: 1fr;
  }

  .experience-identity div {
    min-height: 0;
    padding: 15px 17px;
  }

  .experience-identity strong {
    font-size: 17px;
  }

  .video-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .video-grid figure {
    min-width: 180px;
    scroll-snap-align: start;
  }

  .experience-gallery {
    grid-template-columns: 1fr;
  }

  .activity-carousel .carousel-viewport,
  .activity-carousel .carousel-slide {
    height: 250px;
  }

  .article-links {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 108px;
    height: auto;
  }

  .featured-work {
    padding: 12px;
  }

  .featured-image {
    min-height: 390px;
  }

  .project-card {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 26px;
  }

  .phone-gallery,
  .single-phone {
    width: min(100%, 280px);
    height: 380px;
    margin: 10px auto 0;
  }

  .work-collection {
    padding: 25px;
  }

  .collection-heading {
    display: grid;
    gap: 10px;
  }

  .ai-carousel .carousel-viewport,
  .ai-carousel .carousel-slide {
    height: 360px;
  }

  .ai-carousel .carousel-slide {
    flex-basis: 100%;
  }

  .carousel-hint {
    display: none;
  }

  .vibe-note {
    grid-template-columns: 1fr;
  }

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

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

  .skill-number {
    margin-bottom: 22px;
  }

  .honor-strip {
    justify-content: flex-start;
    border-radius: 24px;
  }

  .honor-strip span {
    border-right: 0;
  }

  .contact-section {
    padding: 80px 0;
  }

  .contact-card {
    padding-right: 62px;
  }
}

@media (max-width: 420px) {
  .stat-strip article {
    padding: 16px 13px;
  }

  .stat-strip span {
    font-size: 10px;
  }

  .hero-actions .button {
    flex: 1;
    padding-inline: 14px;
  }

  .visual-card {
    min-width: 155px;
    padding: 12px;
  }

  .experience-gallery {
    gap: 8px;
  }

  .activity-carousel .carousel-viewport,
  .activity-carousel .carousel-slide {
    height: 220px;
  }

  .article-links {
    grid-template-rows: 92px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
