:root {
  --bg: #0c0b09;
  --ink: #11100d;
  --paper: #f4efe4;
  --paper-2: #e8decc;
  --muted: #aaa195;
  --line: rgba(244, 239, 228, 0.16);
  --accent: #d94b34;
  --green: #a8ba61;
  --blue: #8aaab1;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--paper);
  background: var(--bg);
  font-family:
    Inter, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

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

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

figure {
  margin: 0;
}

.site-header {
  position: fixed;
  z-index: 80;
  inset: 0 0 auto;
  height: 70px;
  padding: 0 clamp(18px, 4vw, 58px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(12, 11, 9, 0.7);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  font-size: 18px;
  font-weight: 840;
}

.nav {
  display: flex;
  gap: clamp(14px, 3vw, 32px);
  color: rgba(244, 239, 228, 0.76);
  font-size: 14px;
}

.nav a:hover {
  color: var(--green);
}

.hero {
  position: relative;
  min-height: 92vh;
  padding: 112px clamp(20px, 5vw, 76px) 74px;
  display: grid;
  align-items: end;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 22%, rgba(103, 190, 166, 0.2), transparent 34%),
    radial-gradient(circle at 78% 28%, rgba(208, 67, 47, 0.16), transparent 30%),
    linear-gradient(145deg, #090909 0%, #15130f 48%, #050505 100%);
}

.hero-video,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-video {
  object-fit: cover;
  opacity: 0.68;
  background: #050505;
}

.hero-shade {
  background:
    radial-gradient(ellipse at center, rgba(244, 239, 228, 0.06), transparent 42%),
    radial-gradient(ellipse at 50% 45%, transparent 26%, rgba(0, 0, 0, 0.42) 72%, rgba(0, 0, 0, 0.78) 100%),
    linear-gradient(0deg, rgba(5, 5, 5, 0.98), rgba(12, 11, 9, 0.12) 46%, rgba(5, 5, 5, 0.62));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 980px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--green);
  font-size: 13px;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 12px;
  font-size: clamp(74px, 14vw, 172px);
  line-height: 0.88;
  font-weight: 860;
}

.hero-role {
  margin-bottom: 22px;
  color: var(--blue);
  font-size: clamp(25px, 4vw, 50px);
  font-weight: 820;
}

.hero-intro {
  max-width: 860px;
  margin-bottom: 0;
  color: rgba(244, 239, 228, 0.82);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.72;
}

.category-overview {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: #050505;
}

.category-card {
  position: relative;
  min-height: clamp(360px, 48vh, 520px);
  padding: clamp(24px, 4vw, 54px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: #15130f;
}

.category-card + .category-card {
  margin-top: -18px;
}

.category-card img,
.category-card video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
  transition: transform 420ms ease, opacity 420ms ease;
  background: #090907;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(244, 239, 228, 0.03), transparent 38%),
    radial-gradient(ellipse at 50% 50%, transparent 30%, rgba(0, 0, 0, 0.46) 82%, rgba(0, 0, 0, 0.78) 100%),
    linear-gradient(180deg, rgba(5, 5, 5, 0.5), rgba(12, 11, 9, 0.18) 42%, rgba(5, 5, 5, 0.86));
}

.category-card::before {
  content: "";
  position: absolute;
  inset: -24px 0 auto;
  height: 96px;
  z-index: 1;
  background: linear-gradient(180deg, rgba(5, 5, 5, 0.78), transparent);
  pointer-events: none;
}

.category-card:hover img,
.category-card:hover video {
  transform: scale(1.02);
  opacity: 0.72;
}

.category-card.no-media {
  background: linear-gradient(145deg, #1a1712, #2d241b 58%, #17282c);
}

.category-card span,
.category-card h2,
.category-card p {
  position: relative;
  z-index: 1;
}

.category-card span {
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 820;
}

.category-card h2 {
  margin-bottom: 12px;
  font-size: clamp(32px, 5vw, 72px);
  line-height: 1.08;
}

.category-card p {
  margin-bottom: 0;
  color: rgba(244, 239, 228, 0.76);
  line-height: 1.68;
}

.direction {
  padding: clamp(46px, 7vw, 88px) clamp(20px, 5vw, 76px);
  color: var(--ink);
  background: var(--paper);
}

.direction p {
  max-width: 1160px;
  margin: 0 auto;
  font-size: clamp(26px, 4.2vw, 56px);
  line-height: 1.24;
  font-weight: 840;
}

.page-hero {
  min-height: 76vh;
  padding: 112px clamp(20px, 5vw, 76px) 54px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(26px, 5vw, 70px);
  align-items: end;
  background: #11100d;
}

.page-hero img,
.page-hero video {
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: contain;
  border: 1px solid rgba(244, 239, 228, 0.16);
  background: #050505;
}

.page-hero h1 {
  margin-bottom: 18px;
  font-size: clamp(48px, 8vw, 112px);
  line-height: 0.96;
}

.page-hero p:last-child {
  max-width: 760px;
  margin-bottom: 0;
  color: rgba(244, 239, 228, 0.76);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.72;
}

.page-hero.light-page,
.page-hero.profile-page {
  color: var(--ink);
  background: var(--paper);
}

.page-hero.light-page p:last-child,
.page-hero.profile-page p:last-child {
  color: rgba(17, 16, 13, 0.7);
}

.text-hero {
  padding: 128px clamp(20px, 5vw, 76px) 72px;
  color: var(--ink);
  background: var(--paper);
}

.text-hero h1 {
  margin-bottom: 18px;
  font-size: clamp(58px, 10vw, 136px);
}

.text-hero p:last-child {
  max-width: 980px;
  margin-bottom: 0;
  color: rgba(17, 16, 13, 0.72);
  font-size: clamp(18px, 2.2vw, 26px);
  line-height: 1.68;
}

.work-section {
  padding: clamp(66px, 9vw, 126px) clamp(20px, 5vw, 76px);
  border-top: 1px solid var(--line);
}

.section-head {
  display: grid;
  grid-template-columns: 0.32fr 0.9fr 0.78fr;
  gap: 28px;
  align-items: end;
  margin-bottom: 34px;
}

.section-head h2 {
  margin-bottom: 0;
  font-size: clamp(39px, 6.2vw, 88px);
  line-height: 0.98;
}

.section-head > p:last-child {
  margin-bottom: 0;
  color: rgba(244, 239, 228, 0.7);
  line-height: 1.72;
}

.jump-list {
  position: sticky;
  top: 72px;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -10px 0 28px;
  padding: 10px 0 12px;
  background: var(--bg);
  border-bottom: 1px solid rgba(244, 239, 228, 0.12);
}

.light-section .jump-list {
  background: var(--paper);
  border-bottom-color: rgba(17, 16, 13, 0.12);
}

.jump-list a {
  padding: 8px 11px;
  color: rgba(244, 239, 228, 0.78);
  border: 1px solid rgba(244, 239, 228, 0.2);
  font-size: 12px;
}

.jump-list a:hover {
  color: var(--ink);
  background: var(--green);
  border-color: var(--green);
}

.pdf-gallery {
  display: grid;
  gap: 72px;
}

.page-block,
.project-block {
  scroll-margin-top: 92px;
  padding-top: 22px;
  border-top: 1px solid rgba(244, 239, 228, 0.16);
}

.project-block {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 54px);
  align-items: start;
  overflow: visible;
}

.project-label {
  position: sticky;
  top: 92px;
  align-self: start;
  display: grid;
  gap: 10px;
  padding: 18px 0 12px;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.light-section .project-label {
  background: var(--paper);
  border-bottom: 1px solid rgba(17, 16, 13, 0.14);
}

.project-label span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-label strong {
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.18;
}

.project-label em {
  color: rgba(244, 239, 228, 0.58);
  font-style: normal;
  line-height: 1.55;
}

.page-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.page-title h3 {
  margin: 0;
  font-size: clamp(22px, 2.5vw, 36px);
}

.page-title span {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 13px;
  font-weight: 820;
}

.page-text {
  max-width: 980px;
  margin: 0 0 18px;
  color: rgba(244, 239, 228, 0.68);
  line-height: 1.75;
}

.light-section .page-text {
  color: rgba(17, 16, 13, 0.68);
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  align-items: stretch;
  margin-bottom: 24px;
}

/* 特殊网格布局 */
.grid-2x2 {
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, auto);
}

.grid-1x3 {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
}

.grid-3x2 {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, auto);
}

.grid-1x2 {
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: auto;
}

.grid-3x3 {
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, auto);
}

.grid-2x3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, auto);
}

.grid-dream-stack {
  grid-template-columns: minmax(0, 860px);
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 900px;
}

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

.grid-2x3 .image-card,
.grid-2x2 .image-card {
  min-height: 260px;
  max-height: 360px;
}

.grid-dream-stack .image-card {
  min-height: 0;
  max-height: none;
  padding: 0;
  background: transparent;
  border: 0;
}

.grid-dream-stack .image-card img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  max-height: none;
  object-fit: contain;
}

.grid-rise-main .image-card,
.grid-haohai-feature .image-card,
.grid-haohai-secondary .image-card,
.grid-free-image .image-card {
  min-height: 0;
  max-height: none;
}

.grid-rise-main .image-card.is-wide,
.grid-haohai-feature .image-card.is-hero,
.grid-haohai-secondary .image-card.is-large,
.grid-free-image .image-card.is-hero,
.grid-free-image .image-card.is-large {
  min-height: 0;
  max-height: none;
}

.grid-rise-main .image-card img,
.grid-haohai-feature .image-card img,
.grid-haohai-secondary .image-card img,
.grid-free-image .image-card img {
  width: 100%;
  height: auto;
  max-width: none;
  max-height: none;
  object-fit: contain;
}

.grid-haohai-feature .image-card {
  padding: 8px;
}

.grid-haohai-secondary .image-card {
  padding: 8px;
}

.grid-side-prototype {
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 26px;
  align-items: stretch;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

.grid-side-prototype .side-main,
.grid-side-prototype .side-stack .image-card {
  min-height: 0;
  max-height: none;
  padding: 0;
}

.grid-side-prototype .side-main,
.grid-side-prototype .side-stack {
  height: 100%;
}

.grid-side-prototype .side-main img,
.grid-side-prototype .side-stack .image-card img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
}

.grid-side-prototype .side-stack {
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.grid-side-prototype .side-stack .image-card {
  height: auto;
  min-height: 0;
}

.grid-landscape-prototype {
  height: 560px;
  min-height: 0;
}

.grid-landscape-prototype .side-main,
.grid-landscape-prototype .side-stack {
  height: 560px;
}

.grid-landscape-prototype .side-main,
.grid-landscape-prototype .side-stack .image-card {
  overflow: hidden;
}

.grid-landscape-prototype .side-stack .image-card {
  height: calc((560px - 36px) / 3);
}

.grid-landscape-prototype .side-main img,
.grid-landscape-prototype .side-stack .image-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.grid-2x3 {
  grid-auto-rows: 320px;
}

.grid-2x3 .image-card {
  height: 100%;
  min-height: 0;
  max-height: none;
}

.grid-water-shadow {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
}

.grid-water-shadow .image-card {
  min-height: 0;
  max-height: none;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
}

.grid-water-shadow .image-card img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
}

.grid-water-shadow .image-card:nth-child(-n + 3) {
  height: 205px;
}

.grid-water-shadow .image-card:nth-child(n + 4) {
  height: 178px;
}

.grid-water-shadow .image-card:nth-child(n + 4) img {
  object-fit: cover;
}

.grid-water-hero .image-card.is-hero {
  min-height: 520px;
  max-height: 720px;
}

.grid-water-front .image-card {
  min-height: 280px;
  max-height: 380px;
}

.grid-deduction-prototype {
  grid-template-columns: minmax(0, 1.36fr) minmax(300px, 0.64fr);
  gap: 30px;
  align-items: stretch;
  height: 720px;
}

.grid-deduction-prototype .deduction-main {
  min-height: 0;
  max-height: none;
  height: 720px;
}

.grid-deduction-prototype .deduction-stack {
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 24px;
  min-height: 0;
  height: 720px;
}

.grid-deduction-prototype .deduction-stack .image-card {
  min-height: 0;
  max-height: none;
  height: 100%;
}

.grid-deduction-prototype .image-card {
  padding: 0;
}

.grid-deduction-prototype .image-card img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  transform: none;
}

.grid-deduction-prototype .image-card.deduction-main.is-hero {
  height: 720px;
  min-height: 720px;
  max-height: 720px;
}

.grid-deduction-prototype .image-card.deduction-main.is-hero img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: none;
}

.grid-deduction-prototype .image-card:hover img {
  transform: none;
}

.grid-deduction-prototype .deduction-stack .image-card.is-wide {
  height: 224px;
  min-height: 224px;
  max-height: 224px;
}

.grid-deduction-prototype .deduction-stack .image-card.is-wide img {
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: cover;
}

.grid-single .image-card.is-hero {
  min-height: 380px;
  max-height: 560px;
}

.image-card {
  min-width: 0;
  background: #171511;
  border: 1px solid rgba(244, 239, 228, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background: #060606;
  overflow: hidden;
  min-height: 200px;
  max-height: 300px;
}

.image-card.is-wide {
  min-height: 250px;
  max-height: 350px;
}

.image-card.is-tall {
  min-height: 300px;
  max-height: 400px;
}

.image-card.is-large {
  min-height: 280px;
  max-height: 380px;
}

.image-card.is-hero {
  min-height: 350px;
  max-height: 450px;
}

.image-card.is-small {
  min-height: 150px;
  max-height: 200px;
}

.image-card.is-medium {
  min-height: 250px;
  max-height: 300px;
}

.image-card.is-page {
  min-height: 400px;
  max-height: 600px;
}

.image-card img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.image-card:hover img {
  transform: none;
}

.image-card.is-page img {
  height: auto;
  max-height: 80vh;
  object-fit: contain;
}

.aigc-section {
  background: #11100d;
}

.video-archive {
  display: grid;
  gap: 26px;
  margin-bottom: 54px;
}

.video-group {
  padding-top: 18px;
  border-top: 1px solid rgba(244, 239, 228, 0.16);
}

.video-group h3 {
  margin-bottom: 14px;
  color: var(--blue);
  font-size: clamp(24px, 3vw, 42px);
}

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

.video-card {
  min-width: 0;
  background: #181611;
  border: 1px solid rgba(244, 239, 228, 0.14);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: 400px;
}

.video-card video {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background: #050505;
  flex-shrink: 0;
}

.video-card h4 {
  display: none;
}

.light-section {
  color: var(--ink);
  background: var(--paper);
}

.light-section .eyebrow {
  color: var(--accent);
}

.light-section .section-head > p:last-child {
  color: rgba(17, 16, 13, 0.68);
}

.light-section .jump-list a {
  color: rgba(17, 16, 13, 0.76);
  border-color: rgba(17, 16, 13, 0.22);
}

.light-section .page-block,
.light-section .project-block {
  border-color: rgba(17, 16, 13, 0.14);
}

.light-section .project-label em {
  color: rgba(17, 16, 13, 0.58);
}

.light-section .image-card {
  background: #eee6d7;
  border-color: rgba(17, 16, 13, 0.14);
}

.profile-section {
  background: #d94b34;
  color: var(--ink);
}

.profile-section .eyebrow {
  color: rgba(17, 16, 13, 0.72);
}

.profile-section .section-head > p:last-child,
.profile-section .profile-grid p {
  color: rgba(17, 16, 13, 0.72);
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 42px;
  background: rgba(17, 16, 13, 0.18);
}

.social-links {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 42px;
  background: rgba(17, 16, 13, 0.18);
}

.social-links a,
.social-links div {
  min-width: 0;
  padding: 20px;
  background: #dc563e;
}

.social-links span {
  display: block;
  margin-bottom: 8px;
  color: rgba(17, 16, 13, 0.62);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.social-links strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: clamp(16px, 1.5vw, 21px);
}

.profile-grid article {
  min-height: 230px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: #dc563e;
}

.profile-grid h3 {
  margin-bottom: 12px;
  font-size: clamp(23px, 2.3vw, 34px);
}

.profile-grid p {
  margin-bottom: 0;
  line-height: 1.72;
}

.profile-section .jump-list a {
  color: rgba(17, 16, 13, 0.8);
  border-color: rgba(17, 16, 13, 0.22);
}

.profile-section .page-block {
  border-color: rgba(17, 16, 13, 0.18);
}

.profile-section .image-card {
  background: rgba(17, 16, 13, 0.12);
  border-color: rgba(17, 16, 13, 0.18);
}

.resume-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.34fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(54px, 8vw, 110px) clamp(20px, 5vw, 76px);
  color: var(--paper);
  background: var(--bg);
}

.resume-aside {
  position: sticky;
  top: 94px;
  align-self: start;
  display: grid;
  gap: 12px;
  padding: 24px;
  background: #181611;
  border: 1px solid rgba(244, 239, 228, 0.14);
}

.resume-aside h2,
.resume-section h2 {
  margin-bottom: 10px;
  font-size: clamp(28px, 3vw, 44px);
}

.resume-aside a,
.resume-aside span {
  color: rgba(244, 239, 228, 0.78);
  overflow-wrap: anywhere;
  line-height: 1.55;
}

.resume-content {
  display: grid;
  gap: 46px;
}

.resume-section {
  padding-top: 22px;
  border-top: 1px solid rgba(244, 239, 228, 0.16);
}

.resume-section p,
.timeline li {
  color: rgba(244, 239, 228, 0.76);
  font-size: 16px;
  line-height: 1.8;
}

.resume-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(244, 239, 228, 0.14);
}

.resume-cards article {
  padding: 22px;
  background: #181611;
}

.resume-cards h3 {
  margin-bottom: 10px;
  color: var(--blue);
  font-size: clamp(21px, 2vw, 30px);
}

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

.timeline strong {
  color: var(--green);
}

@media (max-width: 1100px) {
  .video-grid,
  .profile-grid,
  .social-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-head {
    grid-template-columns: 1fr;
  }

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

  .resume-layout {
    grid-template-columns: 1fr;
  }

  .resume-aside {
    position: static;
  }

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

  .project-label {
    position: sticky;
    top: 64px;
    z-index: 8;
    padding: 12px 0;
    background: var(--bg);
    border-bottom: 1px solid rgba(244, 239, 228, 0.14);
  }

  .light-section .project-label {
    background: var(--paper);
  }

  .image-card,
  .image-card.is-wide,
  .image-card.is-large {
    grid-column: span 6;
  }

  .image-card.is-page {
    grid-column: span 12;
  }

  .image-card.is-hero {
    grid-column: span 12;
  }

  .image-card.is-tall,
  .image-card.is-small {
    grid-column: span 4;
  }
}

@media (max-width: 680px) {
  body {
    overflow-x: hidden;
  }

  .site-header {
    height: 64px;
    padding-inline: 16px;
  }

  .brand {
    font-size: 15px;
  }

  .nav {
    gap: 10px;
    font-size: 11px;
    white-space: nowrap;
  }

  .nav a:first-child {
    display: none;
  }

  .hero {
    min-height: 72vh;
    padding: 96px 18px 46px;
  }

  h1 {
    font-size: clamp(58px, 21vw, 96px);
  }

  .hero-role {
    font-size: 24px;
  }

  .video-grid,
  .profile-grid,
  .social-links {
    grid-template-columns: 1fr;
  }

  .category-card {
    min-height: 330px;
    padding: 24px 18px;
    margin-top: 0;
  }

  .category-card + .category-card {
    margin-top: 0;
  }

  .category-card h2 {
    font-size: clamp(30px, 10vw, 44px);
  }

  .category-card p {
    font-size: 14px;
    line-height: 1.55;
  }

  .page-hero {
    min-height: 0;
    padding: 88px 18px 34px;
    gap: 20px;
  }

  .page-hero h1 {
    font-size: clamp(42px, 13vw, 66px);
  }

  .work-section,
  .resume-layout {
    padding-inline: 18px;
  }

  .jump-list {
    top: 64px;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 10px;
  }

  .jump-list a {
    flex: 0 0 auto;
  }

  .project-block {
    gap: 18px;
    padding-top: 18px;
  }

  .project-label {
    top: 64px;
  }

  .project-label strong {
    font-size: 25px;
  }

  .project-label em {
    font-size: 14px;
  }

  .page-title {
    margin-bottom: 12px;
  }

  .page-title h3 {
    font-size: 24px;
  }

  .image-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .resume-cards {
    grid-template-columns: 1fr;
  }

  .image-card,
  .image-card.is-wide,
  .image-card.is-large,
  .image-card.is-hero,
  .image-card.is-tall,
  .image-card.is-small,
  .image-card.is-page {
    grid-column: span 12;
    width: 100%;
    min-height: 0;
    max-height: none;
    padding: 8px;
  }

  .image-card img,
  .image-card.is-page img,
  .grid-water-shadow .image-card img,
  .grid-deduction-prototype .image-card img,
  .grid-deduction-prototype .deduction-stack .image-card.is-wide img,
  .grid-side-prototype .side-main img,
  .grid-side-prototype .side-stack .image-card img,
  .grid-landscape-prototype .side-main img,
  .grid-landscape-prototype .side-stack .image-card img {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: none;
    object-fit: contain;
  }

  .grid-2x2,
  .grid-2x3,
  .grid-1x3,
  .grid-3x2,
  .grid-1x2,
  .grid-3x3,
  .grid-dream-stack,
  .grid-single,
  .grid-water-shadow,
  .grid-deduction-prototype,
  .grid-side-prototype {
    grid-template-columns: 1fr;
  }

  .grid-deduction-prototype {
    height: auto;
  }

  .grid-landscape-prototype,
  .grid-landscape-prototype .side-main,
  .grid-landscape-prototype .side-stack,
  .grid-landscape-prototype .side-stack .image-card {
    height: auto;
  }

  .grid-deduction-prototype .deduction-main,
  .grid-deduction-prototype .deduction-stack,
  .grid-deduction-prototype .image-card.deduction-main.is-hero,
  .grid-deduction-prototype .deduction-stack .image-card.is-wide,
  .grid-water-shadow .image-card,
  .grid-water-shadow .image-card:nth-child(-n + 3),
  .grid-water-shadow .image-card:nth-child(n + 4),
  .grid-water-hero .image-card.is-hero,
  .grid-water-front .image-card {
    min-height: 0;
    height: auto;
    max-height: none;
  }

  .grid-2x3 {
    grid-auto-rows: auto;
  }

  .page-title {
    display: block;
  }

  .video-card {
    min-height: 0;
    padding: 0;
  }

  .video-card video {
    width: 100%;
    height: auto;
    max-height: none;
  }

  .portrait-videos .video-card video {
    max-height: 76vh;
  }

  .resume-cards,
  .profile-grid,
  .social-links {
    grid-template-columns: 1fr;
  }
}
