:root {
  --paper: #f1efe8;
  --ink: #151515;
  --muted: #67665f;
  --acid: #dfff00;
  --coral: #ff6b4a;
  --line: rgba(21, 21, 21, .18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
img { display: block; width: 100%; }
.wrap { width: min(1380px, calc(100% - 64px)); margin-inline: auto; }
.grain { position: fixed; inset: 0; z-index: 99; pointer-events: none; opacity: .045; 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='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E"); }
.cursor-ball { position: fixed; top: 0; left: 0; z-index: 120; width: 16px; height: 16px; pointer-events: none; border: 2px solid var(--paper); border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 1px var(--ink); opacity: 0; transform: translate3d(-50px,-50px,0); transition: width .2s, height .2s, background-color .2s, opacity .2s; }
.cursor-ball.active { opacity: 1; }
.cursor-ball.hit { width: 25px; height: 25px; }
.cursor-ball.context { width: 46px; height: 46px; color: var(--ink); font-size: 7px; font-weight: 900; letter-spacing: .08em; display: grid; place-items: center; }
.cursor-spark { position: fixed; z-index: 119; width: 7px; height: 7px; pointer-events: none; border-radius: 50%; animation: spark-out .62s ease-out forwards; }
.scene { position: relative; isolation: isolate; }
.scene::after { content: ""; position: absolute; z-index: 80; inset: 0; pointer-events: none; background: var(--scene-wash, #dfe8ec); transform: scaleX(1); transform-origin: right center; transition: transform 1.05s cubic-bezier(.77,0,.18,1); }
.scene.scene-visible::after { transform: scaleX(0); }
.hero { --scene-wash: #d9e7ed; }
.manifesto { --scene-wash: #f5d8cf; }
.work { --scene-wash: #dfe5e9; }
.about { --scene-wash: #e3e8d5; }
.contact { --scene-wash: #353535; }

.nav { height: 86px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); font-size: 13px; letter-spacing: .07em; }
.brand { font-weight: 800; }
.brand span { color: var(--muted); font-weight: 400; }
.nav nav { display: flex; gap: 34px; }
.nav nav a { position: relative; }
.nav nav a::after { content: ""; position: absolute; height: 2px; left: 0; right: 100%; bottom: -6px; background: var(--ink); transition: right .25s; }
.nav nav a:hover::after { right: 0; }

.hero { min-height: calc(100vh - 86px); position: relative; padding: 5vh 0 70px; display: flex; flex-direction: column; }
.eyebrow { font-size: 11px; letter-spacing: .18em; font-weight: 700; text-transform: uppercase; }
.hero-identity { display: flex; align-items: center; gap: 20px; width: fit-content; padding: 10px 22px 10px 10px; border: 1px solid var(--line); border-radius: 70px; background: rgba(241,239,232,.7); backdrop-filter: blur(8px); }
.designer-mark { width: 92px; height: 92px; flex: 0 0 auto; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 50%; background: #dcebf0; transform: rotate(-3deg); }
.designer-mark svg { width: 80px; height: 80px; fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.designer-mark .avatar-fill { fill: #78b7d0; stroke: var(--ink); }
.designer-mark .mark-pencil { fill: var(--coral); stroke: var(--ink); }
.hero-identity { position: relative; z-index: 7; }
.identity-copy small { display: block; margin-bottom: 7px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .17em; }
.identity-copy strong { display: flex; align-items: baseline; gap: 14px; font-size: clamp(31px, 3vw, 46px); line-height: 1; letter-spacing: -.055em; }
.identity-copy strong i { color: var(--muted); font-size: 13px; font-style: normal; letter-spacing: .12em; }
.identity-copy p { display: flex; gap: 7px; margin: 10px 0 0; }
.identity-copy p span { padding: 5px 9px; border-radius: 99px; background: var(--ink); color: var(--paper); font-size: 10px; letter-spacing: .06em; }
.identity-copy p span:last-child { background: var(--coral); }
.color-lab { position: absolute; z-index: 2; top: 24px; right: 0; display: flex; align-items: center; gap: 8px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 99px; }
.color-lab small { margin-right: 4px; color: var(--muted); font-size: 8px; letter-spacing: .13em; }
.play-block { width: 22px; height: 22px; display: block; border: 1px solid var(--ink); transition: transform .22s cubic-bezier(.2,.8,.2,1); will-change: transform; }
.play-block:nth-of-type(1) { border-radius: 50%; background: var(--coral); }
.play-block:nth-of-type(2) { background: #78b7d0; transform: rotate(12deg); }
.play-block:nth-of-type(3) { border-radius: 50% 50% 8% 50%; background: var(--ink); }
.lanyard-stage { position: absolute; z-index: 6; top: -5vh; right: -7%; width: 52%; height: min(72vh, 690px); pointer-events: auto; }
.lanyard-fallback { height: 100%; display: grid; place-content: center; text-align: center; color: var(--muted); font-size: 10px; letter-spacing: .2em; }
.lanyard-fallback b { color: var(--ink); font-size: 38px; letter-spacing: -.04em; }
.hero h1, .hero-bottom, .scroll-cue { position: relative; z-index: 5; }
.hero h1 { max-width: 850px; }
.status-dot { display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 0 5px rgba(223,255,0,.2); }
.hero h1 { margin: 3vh 0 0; max-width: 1050px; font-size: clamp(68px, 9.5vw, 140px); line-height: .85; letter-spacing: -.075em; font-weight: 800; }
.hero h1 span { position: relative; display: inline-block; font-family: Georgia, "Songti SC", serif; font-style: italic; font-weight: 400; }
.hero h1 span::after { content: ""; position: absolute; z-index: -1; left: 2%; right: -5%; bottom: 2%; height: 23%; background: var(--acid); transform: rotate(-1.5deg); }
.hero-bottom { margin: auto 0 38px; display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.hero-bottom p { max-width: 450px; margin: 0; color: var(--muted); font-size: clamp(16px, 1.45vw, 21px); line-height: 1.65; }
.idea-button { width: 180px; height: 180px; border: 1px solid var(--ink); border-radius: 50%; background: transparent; cursor: pointer; display: grid; place-content: center; gap: 18px; transition: color .3s, background .3s, transform .2s; }
.idea-button span { font-size: 13px; }
.idea-button b { font-size: 28px; }
.idea-button:hover { background: var(--ink); color: var(--paper); transform: rotate(6deg); }
.idea-orbit { position: absolute; right: 220px; bottom: 138px; width: 240px; height: 105px; pointer-events: none; }
.idea-orbit span { position: absolute; padding: 8px 13px; border-radius: 99px; background: var(--coral); color: white; font-size: 12px; transform: scale(0) rotate(-10deg); transition: .45s cubic-bezier(.2,.9,.2,1.2); }
.idea-orbit span:nth-child(2) { left: 75px; top: 48px; background: var(--acid); color: var(--ink); }
.idea-orbit span:nth-child(3) { right: 0; top: 5px; background: var(--ink); }
.idea-orbit.active span { transform: scale(1) rotate(-6deg); }
.idea-orbit.active span:nth-child(2) { transform: scale(1) rotate(5deg); transition-delay: .08s; }
.idea-orbit.active span:nth-child(3) { transform: scale(1) rotate(-2deg); transition-delay: .15s; }
.scroll-cue { font-size: 10px; letter-spacing: .15em; display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 16px; }
.scroll-cue i { font-size: 17px; font-style: normal; animation: bob 1.6s infinite; }

.manifesto { padding: 150px 0 130px; border-top: 1px solid var(--line); }
.eyebrow { color: var(--muted); margin: 0 0 25px; }
.manifesto-copy { max-width: 1100px; margin: 0; font-size: clamp(35px, 5vw, 72px); line-height: 1.2; letter-spacing: -.045em; }
.manifesto-copy span { border-bottom: 5px solid var(--coral); }
.method-row { margin-top: 90px; padding: 18px 0; border-block: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 12px; letter-spacing: .08em; }
.method-row i { font-style: normal; }

.work { padding: 140px 0; }
.section-head { margin-bottom: 70px; display: flex; justify-content: space-between; align-items: flex-end; gap: 50px; }
.section-head h2 { margin: 0; font-size: clamp(42px, 6vw, 86px); line-height: .95; letter-spacing: -.055em; }
.section-head > p { margin: 0; color: var(--muted); line-height: 1.65; }
.project { position: relative; cursor: pointer; outline: none; transform-style: preserve-3d; transition: transform .2s; }
.project-media { position: relative; overflow: hidden; background: #ddd; }
.project-media::after { content: "OPEN +"; position: absolute; top: 24px; right: 24px; width: 82px; height: 82px; display: grid; place-items: center; border-radius: 50%; background: var(--acid); font-size: 11px; font-weight: 700; opacity: 0; transform: scale(.5); transition: .3s; }
.project:hover .project-media::after, .project:focus .project-media::after { opacity: 1; transform: scale(1); }
.project-media img { aspect-ratio: 16 / 9; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.project-feature .project-media { background: #e6e6e3; }
.project-feature .project-media img { object-fit: cover; object-position: center; }
.project:hover img { transform: scale(1.035); }
.project-info { padding: 24px 2px 50px; border-top: 1px solid var(--ink); display: grid; grid-template-columns: 1fr 2fr 2fr auto; align-items: baseline; gap: 20px; }
.project-info span { color: var(--muted); font-size: 10px; letter-spacing: .12em; }
.project-info h3 { font-size: 35px; margin: 0; letter-spacing: -.04em; }
.project-info p { margin: 0; color: var(--muted); }
.project-info b { font-size: 12px; }
.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.project-grid .project-media img { aspect-ratio: 4 / 3; }
.project-grid .project-info { grid-template-columns: 1fr auto; }
.project-grid .project-info h3 { grid-row: 2; }
.project-grid .project-info p { grid-row: 3; }
.project-grid .project-info b { grid-column: 2; grid-row: 2; }

.about { padding: 140px 0 120px; border-top: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 12vw; }
.about-copy > p { max-width: 700px; font-size: clamp(20px, 2.1vw, 30px); line-height: 1.55; letter-spacing: -.025em; }
.skills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 55px; }
.skills span { border: 1px solid var(--line); border-radius: 99px; padding: 10px 15px; font-size: 12px; }
.timeline { border-top: 1px solid var(--ink); }
.timeline div { padding: 25px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 110px 1fr; }
.timeline small { color: var(--muted); }
.timeline p { margin: 0; line-height: 1.6; }
.honors { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 90px; }
.honors span { background: var(--acid); padding: 25px; font-weight: 700; }
.honors span:last-child { background: var(--coral); color: white; }

.contact { background: var(--ink); color: var(--paper); padding: 140px 0 90px; }
.contact .eyebrow { color: #aaa; }
.contact h2 { margin: 0; font-size: clamp(65px, 11vw, 160px); line-height: .84; letter-spacing: -.075em; }
.contact-row { margin-top: 100px; padding-top: 25px; border-top: 1px solid #555; display: flex; justify-content: space-between; align-items: center; }
.contact-row > a { font-size: clamp(18px, 2.2vw, 32px); }
.downloads { display: flex; gap: 15px; }
.downloads a { border: 1px solid #777; border-radius: 99px; padding: 12px 18px; font-size: 12px; transition: .2s; }
.downloads a:hover { background: var(--acid); border-color: var(--acid); color: var(--ink); }
footer { min-height: 80px; display: flex; justify-content: space-between; align-items: center; font-size: 10px; letter-spacing: .12em; }

.project-dialog { width: min(1080px, calc(100% - 40px)); max-height: 90vh; padding: 0; border: 0; background: var(--paper); color: var(--ink); overflow: auto; }
.project-dialog::backdrop { background: rgba(0,0,0,.78); backdrop-filter: blur(5px); }
.dialog-close { position: fixed; z-index: 2; right: max(28px, calc((100vw - 1080px)/2 + 18px)); top: 7vh; width: 52px; height: 52px; border: 0; border-radius: 50%; background: var(--acid); font-size: 30px; cursor: pointer; }
.dialog-hero { position: relative; }
.dialog-hero img { aspect-ratio: 16 / 8.5; object-fit: cover; }
.dialog-text { padding: clamp(28px, 6vw, 80px); }
.dialog-text .eyebrow { color: var(--muted); }
.dialog-text h2 { margin: 0 0 30px; font-size: clamp(48px, 8vw, 95px); letter-spacing: -.06em; }
.dialog-lead { max-width: 780px; font-size: 22px; line-height: 1.6; }
.dialog-stats { margin: 55px 0; display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); }
.dialog-stats div { padding: 25px 15px 25px 0; }
.dialog-stats b { display: block; font-size: 27px; }
.dialog-stats small { color: var(--muted); }
.dialog-gallery { columns: 2; column-gap: 12px; }
.dialog-gallery img { width: 100%; height: auto; margin: 0 0 12px; break-inside: avoid; background: #e3e2dd; }

.reveal { opacity: 0; transform: translateY(25px); transition: opacity .8s, transform .8s; }
.reveal.visible { opacity: 1; transform: none; }
.hero h1.reveal { clip-path: inset(0 100% 0 0); opacity: 1; transform: none; }
.hero.scene-visible h1.reveal { animation: hero-sweep 1.05s .18s cubic-bezier(.77,0,.18,1) both; }
.section-head.reveal.visible h2, .about.reveal.visible h2, .contact .reveal.visible h2 { animation: title-rise .85s .18s both; }
@keyframes bob { 50% { transform: translateY(7px); } }
@keyframes hero-sweep { from { clip-path: inset(0 100% 0 0); transform: translateX(-18px); } to { clip-path: inset(0); transform: none; } }
@keyframes title-rise { from { opacity: 0; transform: translateY(35px); } to { opacity: 1; transform: none; } }
@keyframes spark-out { to { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.2); } }

@media (max-width: 800px) {
  .wrap { width: min(100% - 30px, 680px); }
  .nav { height: 70px; }
  .nav nav { gap: 15px; }
  .hero { min-height: calc(100svh - 70px); padding-top: 8vh; }
  .hero-identity { gap: 12px; padding: 8px 16px 8px 8px; }
  .designer-mark { width: 68px; height: 68px; }
  .designer-mark svg { width: 58px; height: 58px; }
  .identity-copy strong { font-size: 29px; }
  .identity-copy strong i { font-size: 9px; }
  .identity-copy p { margin-top: 7px; }
  .identity-copy p span { padding: 4px 7px; font-size: 9px; }
  .color-lab { position: fixed; top: 88px; right: 16px; bottom: auto; z-index: 95; background: rgba(241,239,232,.9); }
  .color-lab small { display: none; }
  .lanyard-stage { position: relative; top: auto; right: auto; width: calc(100% + 30px); height: 330px; margin: -28px -15px -38px; z-index: 4; }
  .hero h1 { font-size: clamp(62px, 18vw, 94px); }
  .hero-bottom { align-items: center; }
  .idea-button { width: 112px; height: 112px; flex: 0 0 auto; }
  .idea-orbit { right: 65px; bottom: 120px; }
  .manifesto, .work, .about { padding: 90px 0; }
  .method-row { align-items: flex-start; gap: 14px; overflow-x: auto; }
  .method-row span { min-width: 110px; }
  .section-head, .about-grid, .project-grid { display: grid; grid-template-columns: 1fr; }
  .section-head { gap: 24px; margin-bottom: 45px; }
  .section-head > p br { display: none; }
  .project-info { grid-template-columns: 1fr auto; }
  .project-info h3 { grid-column: 1; grid-row: 2; }
  .project-info p { grid-column: 1; grid-row: 3; }
  .project-info b { grid-column: 2; grid-row: 2; }
  .about-grid { gap: 60px; }
  .honors { grid-template-columns: 1fr; }
  .contact-row { align-items: flex-start; flex-direction: column; gap: 35px; }
  .downloads { flex-wrap: wrap; }
  .dialog-stats { grid-template-columns: 1fr; }
  .dialog-gallery { columns: 1; }
}

@media (pointer: coarse) {
  .cursor-ball, .color-lab { display: none; }
}

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