:root {
  --bg: #f6f1e8;
  --bg-soft: rgba(255, 252, 246, 0.72);
  --surface: rgba(255, 250, 243, 0.9);
  --surface-strong: #fbf7f0;
  --ink: #231d1b;
  --ink-soft: #605651;
  --ink-faint: #8c8078;
  --line: rgba(72, 34, 28, 0.16);
  --line-strong: rgba(96, 42, 35, 0.3);
  --accent: #7e2f2e;
  --accent-soft: rgba(126, 47, 46, 0.08);
  --shadow: 0 20px 60px -28px rgba(63, 34, 28, 0.2);
  --radius: 1.5rem;
  --content-width: 1200px;
  --gutter: clamp(1rem, 3vw, 2rem);
  --section-gap: clamp(4.5rem, 9vw, 8rem);
  --transition: 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top left, rgba(126, 47, 46, 0.08), transparent 28%),
    radial-gradient(circle at bottom right, rgba(92, 72, 54, 0.06), transparent 24%),
    linear-gradient(180deg, #f8f4ed 0%, #f4efe6 100%);
  color: var(--ink);
  font-family: "Manrope", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  overflow-x: clip;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.18)),
    repeating-linear-gradient(
      0deg,
      rgba(97, 70, 53, 0.018) 0,
      rgba(97, 70, 53, 0.018) 1px,
      transparent 1px,
      transparent 3px
    );
  opacity: 0.55;
}

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

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

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

p,
h1,
h2,
h3,
figure {
  margin: 0;
}

.site-shell {
  position: relative;
}

.section-frame {
  width: min(100% - 2rem, var(--content-width));
  margin: 0 auto;
}

.section {
  padding: var(--section-gap) 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(14px);
  background: rgba(246, 241, 232, 0.75);
  border-bottom: 1px solid rgba(72, 34, 28, 0.08);
}

.header-inner {
  width: min(100% - 2rem, var(--content-width));
  margin: 0 auto;
  min-height: 4.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}

.brand-mark {
  display: inline-flex;
  flex-direction: column;
  gap: 0.15rem;
}

.brand-mark__name {
  font-family: "Cormorant Garamond", "Noto Serif SC", serif;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand-mark__role {
  color: var(--ink-faint);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-nav {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 0.25rem;
  padding: 0.3rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.7);
}

.site-nav a {
  flex: 1 1 0;
  padding: 0.72rem 0.95rem;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  transition: background-color var(--transition), color var(--transition), transform var(--transition);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(126, 47, 46, 0.08);
  color: var(--accent);
}

.section-kicker {
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.hero {
  min-height: calc(100dvh - 4.5rem);
  display: flex;
  align-items: center;
}

.hero .section-frame {
  display: grid;
  gap: 2rem;
}

.hero-copy h1,
.section-heading h2 {
  font-family: "Cormorant Garamond", "Noto Serif SC", serif;
  letter-spacing: -0.02em;
}

.hero-copy h1 {
  font-size: clamp(3.2rem, 14vw, 5.6rem);
  line-height: 0.92;
}

.hero-subtitle {
  margin-top: 0.8rem;
  color: var(--ink-soft);
  font-size: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-intro,
.section-description,
.about-copy p {
  color: var(--ink-soft);
  font-size: 0.98rem;
  line-height: 1.9;
}

.hero-intro {
  max-width: 38rem;
  margin-top: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.9rem;
}

.button {
  min-height: 3.25rem;
  padding: 0.95rem 1.45rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: 0.95rem;
  transition: transform var(--transition), background-color var(--transition), border-color var(--transition), color var(--transition);
}

.button:active {
  transform: scale(0.98);
}

.button-primary {
  background: var(--accent);
  color: #fffaf7;
  border-color: var(--accent);
}

.button-secondary {
  background: transparent;
  color: var(--ink);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.hero-panel {
  position: relative;
  display: grid;
  gap: 1.25rem;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 0.2rem);
  background:
    linear-gradient(180deg, rgba(255, 251, 246, 0.92), rgba(247, 241, 232, 0.9));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-panel::before,
.hero-profile__photo::before,
.hero-profile__card::before,
.contact-card::before,
.work-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), transparent 45%);
}

.hero-panel__meta,
.hero-panel__quote,
.hero-panel__stats {
  position: relative;
  z-index: 1;
}

.hero-profile {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.hero-profile__photo {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 0.35rem);
  background: linear-gradient(180deg, rgba(255, 251, 246, 0.92), rgba(238, 228, 216, 0.9));
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
}

.hero-profile__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 55%, rgba(35, 29, 27, 0.08)),
    inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.hero-profile__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-profile__card {
  position: relative;
  display: grid;
  gap: 0.8rem;
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 0.1rem);
  background:
    linear-gradient(180deg, rgba(255, 251, 246, 0.9), rgba(247, 241, 232, 0.88));
  box-shadow: 0 18px 44px -32px rgba(63, 34, 28, 0.22);
  overflow: hidden;
}

.hero-profile__name {
  font-family: "Cormorant Garamond", "Noto Serif SC", serif;
  font-size: 1.75rem;
  line-height: 1.05;
  color: var(--ink);
}

.hero-profile__role {
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-profile__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.hero-profile__facts span,
.hero-profile__skills {
  border: 1px solid rgba(126, 47, 46, 0.13);
  background: rgba(126, 47, 46, 0.05);
  color: var(--accent);
}

.hero-profile__facts span {
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.82rem;
}

.hero-profile__intro,
.hero-profile__skills {
  font-size: 0.9rem;
  line-height: 1.8;
}

.hero-profile__intro {
  color: var(--ink-soft);
}

.hero-profile__skills {
  padding: 0.75rem;
  border-radius: 1rem;
}

.hero-panel__meta p {
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-panel__meta span {
  margin-top: 0.45rem;
  display: block;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.hero-panel__quote {
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero-panel__quote p {
  font-family: "Noto Serif SC", serif;
  font-size: 1rem;
  line-height: 1.95;
  color: var(--ink);
}

.hero-panel__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.stat-chip {
  padding: 0.95rem;
  border-radius: 1rem;
  background: rgba(126, 47, 46, 0.04);
  border: 1px solid rgba(126, 47, 46, 0.08);
}

.stat-chip strong {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.65rem;
  line-height: 1;
}

.stat-chip span {
  display: block;
  margin-top: 0.45rem;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.section-heading {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-heading h2 {
  font-size: clamp(2.3rem, 8vw, 3.8rem);
  line-height: 0.98;
}

.section-heading--compact {
  margin-bottom: 0;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}

.work-card {
  position: relative;
  grid-column: span 12;
  display: grid;
  gap: 1rem;
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 0.15rem);
  background: rgba(255, 251, 246, 0.78);
  box-shadow: 0 10px 30px -24px rgba(63, 34, 28, 0.24);
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition), background-color var(--transition);
}

.work-card:hover,
.work-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(126, 47, 46, 0.25);
  box-shadow: 0 24px 48px -30px rgba(63, 34, 28, 0.25);
}

.work-card:active {
  transform: scale(0.995);
}

.work-card__media {
  position: relative;
  overflow: hidden;
  border-radius: 1.15rem;
  background: linear-gradient(180deg, rgba(125, 106, 88, 0.08), rgba(125, 106, 88, 0.16));
  aspect-ratio: 4 / 3;
}

.work-card__picture,
.responsive-picture {
  display: block;
  width: 100%;
  height: 100%;
}

.work-card__media img,
.work-card__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.work-card--cover-top .work-card__media img {
  object-position: top center;
}

.film-placeholder {
  width: 100%;
  height: 100%;
  min-height: 12rem;
  display: grid;
  align-content: end;
  gap: 0.55rem;
  padding: 1rem;
  background:
    linear-gradient(145deg, rgba(126, 47, 46, 0.16), transparent 48%),
    linear-gradient(180deg, rgba(38, 30, 27, 0.08), rgba(38, 30, 27, 0.2));
}

.film-placeholder span {
  width: fit-content;
  padding: 0.36rem 0.6rem;
  border: 1px solid rgba(126, 47, 46, 0.2);
  border-radius: 999px;
  color: var(--accent);
  background: rgba(255, 250, 243, 0.72);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.film-placeholder strong {
  color: var(--ink);
  font-family: "Cormorant Garamond", "Noto Serif SC", serif;
  font-size: clamp(1.65rem, 7vw, 2.35rem);
  font-weight: 600;
  line-height: 1;
}

.work-card__film-tag {
  position: absolute;
  left: 0.85rem;
  bottom: 0.85rem;
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  background: rgba(35, 29, 27, 0.75);
  color: #fff;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.work-card__body {
  display: grid;
  gap: 0.8rem;
}

.work-card__category {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.work-card__title {
  font-family: "Cormorant Garamond", "Noto Serif SC", serif;
  font-size: 2rem;
  line-height: 1.02;
}

.work-card__description {
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.8;
}

.work-card__submeta,
.project-meta-line {
  color: var(--accent);
  font-size: 0.82rem;
  line-height: 1.55;
  letter-spacing: 0.03em;
}

.work-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding-top: 0.2rem;
  border-top: 1px solid rgba(72, 34, 28, 0.08);
}

.work-card__meta span {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.78rem;
}

@media (max-width: 699px) {
  .works.section {
    padding-top: clamp(3.25rem, 12vw, 4.5rem);
  }

  .section-heading {
    gap: 0.75rem;
    margin-bottom: 1.15rem;
  }

  .works-grid,
  .project-grid {
    gap: 0.8rem;
  }

  .work-card {
    gap: 0.72rem;
    padding: 0.72rem;
    border-radius: 1.15rem;
  }

  .work-card__media {
    height: clamp(9.75rem, 42vw, 13.25rem);
    aspect-ratio: auto;
    border-radius: 0.9rem;
  }

  .project-card .work-card__media {
    height: clamp(9.25rem, 40vw, 12.5rem);
  }

  .film-placeholder {
    min-height: 100%;
    gap: 0.42rem;
    padding: 0.8rem;
  }

  .work-card__body {
    gap: 0.45rem;
  }

  .work-card__category {
    padding: 0.28rem 0.55rem;
    font-size: 0.66rem;
  }

  .work-card__title {
    font-size: 1.55rem;
    line-height: 1.04;
  }

  .work-card__submeta {
    font-size: 0.76rem;
    line-height: 1.45;
  }

  .work-card__description {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 0.84rem;
    line-height: 1.55;
  }

  .project-card .work-card__description {
    -webkit-line-clamp: 1;
  }

  .work-card__meta {
    gap: 0.45rem;
    padding-top: 0.1rem;
  }

  .work-card__meta span {
    min-height: 1.72rem;
    padding: 0.22rem 0.58rem;
    font-size: 0.7rem;
  }

  .route-view {
    padding-top: 3.25rem;
  }

  .route-topbar {
    margin-bottom: 1rem;
  }

  .route-heading {
    gap: 0.75rem;
    margin-bottom: 1.35rem;
  }
}

.about-layout {
  display: grid;
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.about-copy {
  display: grid;
  gap: 1rem;
}

.contact-card {
  position: relative;
  display: grid;
  gap: 1rem;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 0.1rem);
  background: rgba(255, 251, 246, 0.78);
}

.contact-item {
  display: grid;
  gap: 0.3rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(72, 34, 28, 0.08);
}

.contact-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.contact-item span {
  color: var(--accent);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-item a,
.contact-item p {
  font-size: 1rem;
  color: var(--ink);
}

.site-footer {
  padding: 0 0 2rem;
}

.site-footer .section-frame {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.site-footer p {
  color: var(--ink-faint);
  font-size: 0.86rem;
}

[hidden] {
  display: none !important;
}

.route-view {
  min-height: calc(100dvh - 4.5rem);
}

.route-topbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: clamp(1.5rem, 5vw, 3rem);
}

.text-link {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  padding: 0.7rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.68);
  color: var(--ink-soft);
  font-size: 0.9rem;
  transition: transform var(--transition), border-color var(--transition), color var(--transition);
}

.text-link:hover,
.text-link:focus-visible {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  color: var(--accent);
}

.route-heading {
  display: grid;
  gap: 1rem;
  max-width: 58rem;
  margin-bottom: clamp(2rem, 6vw, 4rem);
}

.route-heading h1 {
  font-family: "Cormorant Garamond", "Noto Serif SC", serif;
  font-size: clamp(2.7rem, 11vw, 5rem);
  line-height: 0.96;
  letter-spacing: -0.02em;
}

.route-heading p {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.9;
}

.route-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.route-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.78rem;
}

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

.project-grid .work-card {
  grid-column: auto;
}

.detail-gallery {
  display: grid;
  justify-items: center;
  gap: clamp(1rem, 3vw, 1.75rem);
}

.detail-media,
.detail-video {
  width: min(100%, 1160px);
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(72, 34, 28, 0.09);
  border-radius: 1.1rem;
  background: rgba(255, 251, 246, 0.68);
}

.detail-picture {
  display: block;
  width: 100%;
}

.detail-picture img {
  width: 100%;
  height: auto;
}

.detail-video {
  display: grid;
  gap: 0.8rem;
  padding: 0.8rem;
}

.detail-video video {
  width: 100%;
  max-height: 74dvh;
  background: #171211;
  border-radius: 0.75rem;
}

.detail-video figcaption {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

@media (min-width: 700px) {
  .header-inner {
    min-height: 5rem;
    flex-wrap: nowrap;
    align-items: center;
    padding: 0;
  }

  .site-nav {
    width: auto;
    gap: 0.35rem;
    justify-content: flex-start;
  }

  .site-nav a {
    flex: 0 0 auto;
    padding: 0.72rem 0.95rem;
    font-size: 0.82rem;
  }

  .hero .section-frame {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    align-items: center;
  }

  .hero-profile__photo {
    aspect-ratio: 16 / 11;
  }

  .section-heading {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
    align-items: end;
  }

  .work-card {
    grid-column: span 6;
    padding: 1.15rem;
  }

  .about-layout {
    grid-template-columns: 1.05fr 1fr;
    align-items: start;
  }

  .contact-card {
    grid-column: 2;
  }

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

@media (min-width: 1024px) {
  .hero .section-frame {
    grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
    gap: 3rem;
  }

  .works-grid {
    gap: 1.15rem;
  }

  .project-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.15rem;
  }

  .work-card {
    grid-column: span 4;
  }

  .about-layout {
    grid-template-columns: 0.65fr 1fr 0.8fr;
    gap: 2rem;
  }

  .about-copy {
    grid-column: 2;
  }

  .contact-card {
    grid-column: 3;
  }
}

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

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