:root {
  color-scheme: light;
  --bg: #f6f3ee;
  --surface: rgba(250, 248, 244, 0.78);
  --surface-strong: #fffdf8;
  --surface-soft: #ece8e0;
  --text: #21303f;
  --muted: #5f6f7d;
  --line: rgba(92, 115, 134, 0.16);
  --primary: #185d99;
  --primary-deep: #0d3f73;
  --accent: #d9c089;
  --shadow: 0 24px 64px rgba(30, 52, 71, 0.12);
  --shadow-soft: 0 20px 40px rgba(30, 52, 71, 0.08);
  --radius-xl: 40px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --container: min(1120px, calc(100vw - 2rem));
}

@font-face {
  font-family: "Yunluo Text";
  src: url("./assets/fonts/iAWriterQuattroSRegular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-024F, U+1E00-1EFF, U+2000-206F;
}

@font-face {
  font-family: "Yunluo Text";
  src: url("./assets/fonts/iAWriterQuattroSItalic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-024F, U+1E00-1EFF, U+2000-206F;
}

@font-face {
  font-family: "Yunluo Text";
  src: url("./assets/fonts/iAWriterQuattroSBold.ttf") format("truetype");
  font-weight: 700; 
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-024F, U+1E00-1EFF, U+2000-206F;
}

@font-face {
  font-family: "Yunluo Text";
  src: url("./assets/fonts/iAWriterQuattroSBoldItalic.ttf") format("truetype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-024F, U+1E00-1EFF, U+2000-206F;
}

@font-face {
  font-family: "Yunluo Text";
  src: url("./assets/fonts/FZFWZhuZiAYuanJWD.TTF") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  unicode-range:
    U+2E80-2EFF,
    U+2F00-2FDF,
    U+3040-30FF,
    U+3100-312F,
    U+3190-319F,
    U+31A0-31BF,
    U+3400-4DBF,
    U+4E00-9FFF,
    U+F900-FAFF;
}

@font-face {
  font-family: "Yunluo Text";
  src: url("./assets/fonts/FZFWZhuZiAYuanJWD.TTF") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range:
    U+2E80-2EFF,
    U+2F00-2FDF,
    U+3040-30FF,
    U+3100-312F,
    U+3190-319F,
    U+31A0-31BF,
    U+3400-4DBF,
    U+4E00-9FFF,
    U+F900-FAFF;
}

@keyframes heroDrift {
  0% {
    transform: perspective(1600px) rotateX(var(--hero-rotate-x)) rotateY(var(--hero-rotate-y)) scale(1.12) translate3d(calc(var(--hero-shift-x) * 0.58), calc(var(--hero-shift-y) * 0.58), 0);
  }
  50% {
    transform: perspective(1600px) rotateX(calc(var(--hero-rotate-x) + 1.4deg)) rotateY(calc(var(--hero-rotate-y) - 2deg)) scale(1.17) translate3d(calc(var(--hero-shift-x) * 0.9), calc(var(--hero-shift-y) * 0.72 - 18px), 0);
  }
  100% {
    transform: perspective(1600px) rotateX(var(--hero-rotate-x)) rotateY(var(--hero-rotate-y)) scale(1.12) translate3d(calc(var(--hero-shift-x) * 0.58), calc(var(--hero-shift-y) * 0.58), 0);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Yunluo Text", "PingFang SC", "Microsoft YaHei", serif;
  color: var(--text);
  background: linear-gradient(180deg, #f3f7f8 0%, #f6f3ee 26%, #f4efe6 100%);
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}

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

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 60;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--surface-strong);
  box-shadow: var(--shadow-soft);
}

.skip-link:focus {
  top: 1rem;
}

.site-nav {
  position: fixed;
  top: 1rem;
  left: 50%;
  z-index: 50;
  width: var(--container);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
  transform: translateX(-50%);
}

.brand,
.footer-brand {
  font-family: "Yunluo Text", "PingFang SC", "Microsoft YaHei", serif;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.nav-links,
.footer-links,
.quote-tags,
.work-meta,
.hero-actions {
  display: flex;
  align-items: center;
}

.nav-links {
  gap: 1.1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a,
.footer-links a {
  color: var(--muted);
  font-size: 0.94rem;
  font-family: "Yunluo Text", "PingFang SC", "Microsoft YaHei", serif;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color 220ms ease, transform 220ms ease;
}

.nav-links a:hover,
.footer-links a:hover,
.work-body a:hover {
  color: var(--primary-deep);
}

.works-section,
.quote-section,
.site-footer {
  width: var(--container);
  margin: 0 auto;
}

.hero {
  --hero-rotate-x: 0deg;
  --hero-rotate-y: 0deg;
  --hero-shift-x: 0px;
  --hero-shift-y: 0px;
  --hero-glow-x: 18%;
  --hero-glow-y: 12%;
  position: relative;
  width: 100%;
  min-height: 100svh;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  perspective: 1400px;
}

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
}

.hero-media {
  background:
    radial-gradient(circle at var(--hero-glow-x) var(--hero-glow-y), rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0) 26%),
    url("./assets/images/hero-background.png") center center / cover no-repeat;
  filter: saturate(1.05) contrast(1.04);
  transform: perspective(1600px) rotateX(var(--hero-rotate-x)) rotateY(var(--hero-rotate-y)) scale(1.12) translate3d(calc(var(--hero-shift-x) * 0.58), calc(var(--hero-shift-y) * 0.58), 0);
  transition:
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
    background-position 320ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 320ms cubic-bezier(0.22, 1, 0.36, 1);
  animation: heroDrift 12s ease-in-out infinite;
}

.hero-media::before,
.hero-media::after {
  position: absolute;
  inset: -4%;
  content: "";
  pointer-events: none;
}

.hero-media::before {
  background:
    radial-gradient(circle at calc(var(--hero-glow-x) + 10%) calc(var(--hero-glow-y) + 6%), rgba(255, 255, 255, 0.26), transparent 18%),
    linear-gradient(115deg, rgba(255, 255, 255, 0.24), transparent 32%);
  mix-blend-mode: screen;
  opacity: 1;
  transform: translate3d(calc(var(--hero-shift-x) * -0.42), calc(var(--hero-shift-y) * -0.28), 0) scale(1.04);
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-media::after {
  background:
    radial-gradient(circle at 52% 10%, rgba(255, 255, 255, 0.28), transparent 16%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(0, 54, 98, 0.06));
  opacity: 0.88;
  transform: translate3d(calc(var(--hero-shift-x) * 0.24), calc(var(--hero-shift-y) * 0.18), 0) scale(1.03);
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-content,
.scroll-hint {
  position: relative;
  z-index: 1;
}

.hero-content {
  width: min(860px, calc(100vw - 2.5rem));
  margin-top: 4.5rem;
  padding: 3rem 1.5rem 6rem;
  text-align: center;
  transform: translate3d(calc(var(--hero-shift-x) * 0.12), calc(var(--hero-shift-y) * 0.08), 0);
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.eyebrow,
.section-label,
.quote-caption,
.visual-chip,
.work-meta span {
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 1.2rem;
  padding: 0.72rem 1.15rem;
  border-radius: var(--radius-pill);
  color: #0e4d7c;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(244, 251, 255, 0.72);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 24px rgba(34, 75, 109, 0.12);
}

.hero h1,
.section-heading h2,
.work-body h3,
.quote-shell blockquote {
  font-family: "Yunluo Text", "PingFang SC", "Microsoft YaHei", serif;
}

.hero h1 {
  margin: 0;
  font-size: min(7rem, clamp(3.8rem, 8vw, 6.4rem));
  line-height: 0.94;
  color: #0c4d7f;
  white-space: nowrap;
  text-shadow: 0 10px 24px rgba(245, 251, 255, 0.42);
}

.hero-intro {
  max-width: 44rem;
  margin: 1.6rem auto 0;
  font-size: clamp(1.12rem, 1.8vw, 1.4rem);
  line-height: 1.9;
  color: #17344c;
  text-shadow: 0 4px 14px rgba(246, 250, 255, 0.32);
}

.hero-note,
.section-copy,
.work-body p,
.footer-copy {
  color: var(--muted);
  font-size: 1.02rem;
  font-weight: 400;
  line-height: 2;
  letter-spacing: 0.01em;
}

.hero-note {
  max-width: 30em;
  margin: 1rem auto 0;
  font-size: 1.06rem;
  color: rgba(28, 64, 91, 0.88);
  text-shadow: 0 4px 12px rgba(246, 250, 255, 0.24);
}

.hero-actions {
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 10rem;
  padding: 0.95rem 1.5rem;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 700;
  transition:
    transform 240ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 240ms cubic-bezier(0.22, 1, 0.36, 1),
    background-color 240ms ease;
}

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

.button-primary {
  color: #eff7ff;
  background: linear-gradient(135deg, var(--primary), #3a8bc8);
  box-shadow: 0 18px 32px rgba(18, 79, 132, 0.24);
}

.button-secondary {
  color: var(--text);
  background: rgba(255, 252, 246, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: var(--shadow-soft);
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 2.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #0d4a79;
  font-size: 0.92rem;
  transform: translateX(-50%);
  text-shadow: 0 4px 14px rgba(244, 250, 255, 0.4);
}

.scroll-hint::after {
  width: 3rem;
  height: 1px;
  content: "";
  background: currentColor;
}

.works-section {
  padding: 6rem 0 2rem;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.section-label {
  margin: 0 0 0.85rem;
  color: #8b6e2d;
  font-size: 0.78rem;
  font-weight: 700;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.12;
}

.section-copy {
  max-width: 26em;
  margin: 0;
}

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

.work-card {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.offset-card {
  margin-top: 4rem;
}

.work-visual {
  position: relative;
  aspect-ratio: 16 / 11;
  min-height: 22rem;
  overflow: hidden;
  border-radius: 38px 30px 44px 34px;
  box-shadow: var(--shadow);
  background: #eef4f1;
}

.work-visual-shot {
  border: 1px solid rgba(18, 77, 93, 0.1);
}

.work-shot {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
}

.work-visual::before,
.work-visual::after {
  position: absolute;
  content: "";
  border-radius: 999px;
  filter: blur(0.5px);
}

.work-visual::before {
  width: 18rem;
  height: 18rem;
  right: -2rem;
  bottom: -4rem;
  background: rgba(255, 250, 236, 0.28);
}

.work-visual::after {
  width: 10rem;
  height: 10rem;
  left: -1rem;
  top: 2rem;
  background: rgba(255, 255, 255, 0.18);
}

.work-visual-shot::before,
.work-visual-shot::after {
  display: none;
}

.visual-chip,
.visual-title {
  position: absolute;
  z-index: 1;
}

.visual-chip {
  top: 1.4rem;
  left: 1.4rem;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-pill);
  color: #f7fbff;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(13, 50, 84, 0.35);
  backdrop-filter: blur(10px);
}

.visual-title {
  left: 1.4rem;
  bottom: 1.5rem;
  color: #f8fbff;
  font-family: "Yunluo Text", "PingFang SC", "Microsoft YaHei", serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1;
}

.work-body {
  padding-inline: 0.3rem;
}

.work-meta {
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-bottom: 0.9rem;
}

.work-meta span:first-child {
  display: inline-flex;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-pill);
  color: #664d14;
  background: #f3dfb0;
  font-size: 0.74rem;
  font-weight: 800;
}

.work-meta span:last-child {
  color: rgba(96, 110, 124, 0.9);
  font-size: 0.76rem;
  font-weight: 700;
}

.work-body h3 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.35;
}

.work-body p {
  margin: 1rem 0 1.25rem;
  max-width: 28em;
}

.work-body a {
  color: var(--primary);
  font-size: 0.94rem;
  font-family: "Yunluo Text", "PingFang SC", "Microsoft YaHei", serif;
  font-weight: 700;
}

.quote-section {
  padding: 4rem 0 5rem;
}

.quote-shell {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 6vw, 4.5rem);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at top right, rgba(111, 194, 248, 0.16), transparent 24%),
    radial-gradient(circle at bottom left, rgba(220, 197, 142, 0.18), transparent 20%),
    linear-gradient(180deg, rgba(245, 242, 236, 0.95), rgba(240, 236, 228, 0.92));
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.quote-mark {
  margin: 0;
  color: rgba(24, 93, 153, 0.18);
  font-family: "Yunluo Text", "PingFang SC", "Microsoft YaHei", serif;
  font-size: clamp(4rem, 10vw, 6rem);
  line-height: 1;
}

.quote-shell blockquote {
  max-width: 20em;
  margin: 0 auto;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.65;
  letter-spacing: 0.01em;
}

.quote-line {
  width: 4rem;
  height: 4px;
  margin: 2rem auto 1rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--accent), var(--primary));
}

.quote-caption {
  margin: 0;
  color: rgba(33, 48, 63, 0.74);
  font-size: 0.82rem;
  font-weight: 800;
}

.quote-tags {
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.4rem;
}

.quote-tags span {
  padding: 0.6rem 0.95rem;
  border-radius: var(--radius-pill);
  color: rgba(33, 48, 63, 0.82);
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.56);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  padding: 0 0 3rem;
  align-items: end;
}

.footer-copy,
.footer-note {
  max-width: 32rem;
  margin: 0.85rem 0 0;
}

.footer-links {
  gap: 1rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.footer-note {
  grid-column: 1 / -1;
  color: rgba(95, 111, 125, 0.82);
  font-size: 0.88rem;
  font-family: "Yunluo Text", "PingFang SC", "Microsoft YaHei", serif;
  letter-spacing: 0.02em;
}

@media (max-width: 960px) {
  .site-nav,
  .section-heading,
  .site-footer {
    width: min(100vw - 1.5rem, 100%);
  }

  .hero {
    min-height: auto;
    min-height: 100svh;
  }

  .hero-content {
    padding: 3rem 1.25rem 6rem;
  }

  .works-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .offset-card {
    margin-top: 0;
  }

  .section-heading {
    flex-direction: column;
    align-items: start;
  }

  .section-copy {
    max-width: 34rem;
  }

  .footer-links {
    justify-content: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-media,
  .hero-media::before,
  .hero-media::after,
  .hero-content {
    animation: none;
    transition: none;
    transform: none;
  }
}

@media (max-width: 720px) {
  .site-nav {
    top: 0.75rem;
    padding: 0.9rem 1rem;
  }

  .brand {
    font-size: 1.25rem;
  }

  .nav-links {
    gap: 0.8rem;
  }

  .hero {
    min-height: 100svh;
  }

  .hero h1 {
    font-size: clamp(3.6rem, 17vw, 5.2rem);
  }

  .scroll-hint {
    bottom: 1.5rem;
  }

  .work-visual {
    min-height: 18rem;
  }

  .quote-shell blockquote {
    max-width: 12em;
  }
}
