:root {
  --bg: #f2f0e9;
  --surface: #e8e4db;
  --ink: #20231f;
  --muted: #6e7068;
  --line: rgba(32, 35, 31, .18);
  --accent: #eb5d3a;
  --acid: #d6e868;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: clip; background: var(--bg); color: var(--ink); font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; transition: background .35s, color .35s; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.grain { position: fixed; inset: 0; pointer-events: none; z-index: 99; opacity: .03; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E"); }
.section-wrap, .site-header { width: min(calc(100% - 64px), var(--max)); margin-inline: auto; }

.site-header { height: 92px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; position: relative; z-index: 10; border-bottom: 1px solid var(--line); }
.brand { font-family: Georgia, serif; font-size: 25px; font-weight: 700; letter-spacing: -2px; width: max-content; }
.brand span { color: var(--accent); }
.nav { display: flex; gap: 40px; font-size: 14px; }
.nav a, .socials a { position: relative; }
.nav a::after, .socials a::after { content: ""; position: absolute; height: 1px; width: 0; left: 0; bottom: -5px; background: currentColor; transition: width .25s; }
.nav a:hover::after, .socials a:hover::after { width: 100%; }
.theme-toggle { justify-self: end; border: 1px solid var(--line); background: transparent; color: var(--ink); width: 42px; height: 42px; border-radius: 50%; cursor: pointer; transition: transform .25s, background .25s; }
.theme-toggle:hover { transform: rotate(20deg); background: var(--surface); }

.hero { min-height: calc(100vh - 92px); display: grid; grid-template-columns: 1.25fr .75fr; gap: 7vw; align-items: center; position: relative; padding-block: 80px 120px; }
.eyebrow { font-size: 11px; letter-spacing: .2em; font-weight: 700; text-transform: uppercase; }
.hero .eyebrow { display: flex; align-items: center; gap: 12px; }
.hero .eyebrow span { width: 30px; height: 1px; background: var(--accent); }
.hero h1 { font-family: Georgia, "Songti SC", serif; font-weight: 400; font-size: clamp(54px, 6.4vw, 96px); line-height: 1.09; letter-spacing: -.055em; margin: 28px 0 34px; }
.accent-word { font-style: italic; color: var(--accent); white-space: nowrap; }
.hero-intro { max-width: 560px; font-size: 18px; line-height: 1.85; color: var(--muted); }
.hero-actions { display: flex; align-items: center; gap: 36px; margin-top: 44px; }
.button { display: inline-flex; gap: 26px; align-items: center; padding: 17px 23px; font-size: 14px; }
.button.primary { background: var(--ink); color: var(--bg); }
.button span, .text-link span { transition: transform .2s; display: inline-block; }
.button:hover span, .text-link:hover span { transform: translate(3px, -3px); }
.text-link { font-size: 14px; padding-bottom: 4px; border-bottom: 1px solid var(--ink); }

.hero-art { position: relative; height: 500px; display: grid; place-items: center; overflow: clip; }
.art-card { width: 245px; height: 330px; background: var(--ink); color: var(--bg); padding: 24px; position: relative; transform: rotate(6deg); box-shadow: 22px 26px 0 var(--acid); transition: transform .5s; }
.hero-art:hover .art-card { transform: rotate(2deg) translateY(-5px); }
.art-number, .art-year { font-size: 10px; letter-spacing: .16em; }
.art-line { width: 100%; height: 1px; background: currentColor; opacity: .35; margin-top: 15px; }
.art-card p { position: absolute; left: 24px; bottom: 44px; font-family: Georgia, serif; font-size: 30px; line-height: .95; }
.art-year { position: absolute; bottom: 22px; right: 22px; }
.orbit { border: 1px solid var(--line); border-radius: 50%; position: absolute; }
.orbit-one { width: 390px; height: 390px; }
.orbit-two { width: 480px; height: 180px; transform: rotate(-32deg); }
.art-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); position: absolute; top: 87px; right: 22px; }
.scroll-hint { position: absolute; left: 0; bottom: 35px; display: flex; gap: 12px; align-items: center; font-size: 10px; letter-spacing: .16em; writing-mode: vertical-rl; }
.scroll-hint i { height: 42px; width: 1px; background: var(--ink); }

.work, .notes, .about { padding-block: 130px; }
.work { border-top: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 60px; }
.section-heading h2 { font-family: Georgia, "Songti SC", serif; font-size: clamp(42px, 5vw, 68px); font-weight: 400; margin: 8px 0 0; letter-spacing: -.04em; }
.section-heading > p { color: var(--muted); font-size: 14px; line-height: 1.8; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px 28px; }
.project-large { grid-column: 1 / -1; grid-row: auto; }
.project-visual { position: relative; overflow: hidden; min-height: 370px; display: grid; place-items: center; }
.project-large .project-visual { height: auto; min-height: 0; aspect-ratio: 3 / 2; }
.project-grid > .project:not(.project-large) .project-visual { height: auto; min-height: 0; aspect-ratio: 4 / 5; }
.project-index { position: absolute; top: 20px; left: 20px; font: 11px Georgia, serif; z-index: 2; }
.visual-one { background: #b8c9c1; }
.visual-two { background: #d8c5b4; }
.visual-three { background: #c9d176; }
.mock-window { width: 72%; height: 69%; background: #e9edea; padding: 18px; box-shadow: 0 30px 70px rgba(21,36,31,.2); position: relative; transition: transform .5s; }
.project:hover .mock-window { transform: scale(1.025) rotate(-1deg); }
.mock-top { display: flex; gap: 5px; }
.mock-top i { width: 5px; height: 5px; border-radius: 50%; background: #8ba097; }
.mock-title { font: 44px/1 Georgia, serif; margin-top: 70px; }
.mock-circle { position: absolute; right: 12%; bottom: 12%; width: 130px; height: 130px; border-radius: 50%; background: var(--accent); filter: blur(1px); }
.phone { height: 295px; width: 154px; border-radius: 22px; background: #f5efe5; border: 4px solid #242722; box-shadow: 13px 18px 30px rgba(61,40,29,.22); padding: 28px 13px 12px; position: relative; transition: transform .5s; }
.project:hover .phone { transform: translateY(-8px) rotate(2deg); }
.phone-speaker { width: 35px; height: 5px; border-radius: 4px; background: #292a26; top: 8px; left: 56px; position: absolute; }
.phone-sun { width: 58px; height: 58px; border-radius: 50%; background: #ef7652; margin: 15px auto 35px; }
.phone p { font: 15px/1.6 Georgia, "Songti SC", serif; }
.phone-pill { background: #272925; color: #fff; border-radius: 20px; font-size: 8px; padding: 8px; text-align: center; margin-top: 25px; }
.poster { width: 190px; height: 245px; background: #1f2822; color: #e8ebd1; padding: 22px; transform: rotate(-5deg); z-index: 1; transition: transform .5s; }
.project:hover .poster { transform: rotate(-1deg) scale(1.02); }
.poster-cn { font: 38px/1.06 "Songti SC", serif; margin: 0; }
.poster-en { font: 9px/1.4 Arial, sans-serif; letter-spacing: .13em; margin-top: 58px; }
.sun { position: absolute; width: 130px; height: 130px; border-radius: 50%; background: #eb673f; right: 10%; top: 12%; }
.project-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; }
.project-meta h3 { font: 24px Georgia, "Songti SC", serif; margin: 0 0 9px; }
.project-meta p { font-size: 10px; color: var(--muted); letter-spacing: .11em; text-transform: uppercase; }
.round-arrow { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; transition: background .25s, color .25s, transform .25s; }
.project:hover .round-arrow { color: var(--bg); background: var(--ink); transform: rotate(45deg); }

.notes { border-top: 1px solid var(--line); }
.note { border-top: 1px solid var(--line); }
.note:last-child { border-bottom: 1px solid var(--line); }
.note a { display: grid; grid-template-columns: 130px 2fr 1fr 30px; gap: 36px; align-items: center; padding: 32px 5px; transition: padding .25s, background .25s; }
.note a:hover { padding-inline: 20px; background: var(--surface); }
.note time, .tag { font-size: 10px; letter-spacing: .12em; color: var(--muted); }
.tag { margin: 0 0 10px; color: var(--accent); }
.note h3 { font: 22px/1.45 Georgia, "Songti SC", serif; margin: 0; }
.note-excerpt { color: var(--muted); font-size: 13px; line-height: 1.7; }

.about { border-top: 1px solid var(--line); }
.about-card { min-height: 500px; background: var(--ink); color: var(--bg); position: relative; padding: 70px 8%; display: flex; align-items: center; overflow: hidden; }
.about-card::after { content: ""; position: absolute; width: 440px; height: 440px; border: 1px solid rgba(242,240,233,.2); border-radius: 50%; right: -90px; bottom: -210px; }
.about-mark { color: var(--accent); font: 170px/1 Georgia, serif; align-self: flex-start; margin-right: 8%; }
.about-copy { max-width: 670px; z-index: 1; }
.about-copy h2 { font: 42px/1.35 Georgia, "Songti SC", serif; font-weight: 400; margin: 24px 0; }
.about-copy > p:not(.eyebrow) { color: rgba(242,240,233,.65); line-height: 2; font-size: 15px; max-width: 580px; margin-bottom: 35px; }
.about-copy .text-link { border-color: currentColor; }
.availability { position: absolute; right: 6%; top: 50px; font-size: 11px; letter-spacing: .1em; }
.availability i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--acid); margin-right: 7px; box-shadow: 0 0 0 5px rgba(214,232,104,.1); }

.footer { padding-block: 70px 35px; display: grid; grid-template-columns: 1fr auto; gap: 65px; align-items: start; }
.footer > div:first-child p { color: var(--muted); font-size: 13px; }
.socials { display: flex; gap: 32px; font-size: 13px; }
.copyright { grid-column: 1/-1; border-top: 1px solid var(--line); padding-top: 25px; font-size: 9px; color: var(--muted); letter-spacing: .15em; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
body.dark { --bg: #171a17; --surface: #242824; --ink: #eeeae1; --muted: #a7aaa1; --line: rgba(238,234,225,.17); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 70px; }
  .hero-art { height: 420px; }
  .project-grid { grid-template-columns: 1fr; }
  .project-large { grid-row: auto; }
  .project-visual, .project-large .project-visual { height: 620px; aspect-ratio: auto; }
  .note a { grid-template-columns: 90px 1fr 30px; }
  .note-excerpt { display: none; }
  .about-mark { display: none; }
}

@media (max-width: 600px) {
  .section-wrap, .site-header { width: min(calc(100% - 36px), var(--max)); }
  .site-header { height: 72px; grid-template-columns: 1fr auto; }
  .nav { position: fixed; bottom: 15px; left: 50%; transform: translateX(-50%); z-index: 50; padding: 13px 22px; border-radius: 30px; background: var(--ink); color: var(--bg); box-shadow: 0 10px 35px rgba(0,0,0,.18); gap: 25px; }
  .theme-toggle { width: 38px; height: 38px; }
  .hero { min-height: auto; padding: 70px 0 120px; gap: 45px; }
  .hero h1 { font-size: clamp(45px, 13vw, 64px); }
  .hero-intro { font-size: 16px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 24px; }
  .hero-art { height: 330px; overflow: hidden; }
  .art-card { width: 190px; height: 260px; }
  .art-card p { font-size: 24px; }
  .orbit-one { width: 300px; height: 300px; }
  .orbit-two { width: 350px; }
  .scroll-hint { display: none; }
  .work, .notes, .about { padding-block: 90px; }
  .section-heading { align-items: flex-start; gap: 25px; flex-direction: column; margin-bottom: 42px; }
  .section-heading > p { margin: 0; }
  .project-grid { gap: 55px; }
  .project-visual, .project-large .project-visual { height: 480px; min-height: 0; }
  .mock-title { font-size: 30px; }
  .mock-circle { width: 90px; height: 90px; }
  .project-meta h3 { font-size: 21px; }
  .note a { grid-template-columns: 1fr 24px; gap: 20px; padding-block: 25px; }
  .note time { grid-column: 1; }
  .note div { grid-column: 1; }
  .note a > span { grid-column: 2; grid-row: 1/3; }
  .about { width: 100%; padding-bottom: 0; }
  .about-card { padding: 90px 24px 65px; min-height: 570px; }
  .about-copy h2 { font-size: 34px; }
  .availability { left: 24px; top: 40px; }
  .footer { grid-template-columns: 1fr; gap: 35px; padding-bottom: 95px; }
  .socials { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
