/* Portfolio edition: violet-derived geometry, editorial scale, precise motion. */
:root {
  --ink: hsl(262 90% 78%);
  --teal: hsl(172 70% 68%);
  --rose: hsl(300 76% 73%);
  --muted: #b0b0b4;
}
body { font-family: 'Cascadia Code', 'Sarasa Mono SC', 'Noto Sans Mono CJK SC', 'SFMono-Regular', Consolas, monospace; }
.wrap { max-width: 1440px; padding-inline: 64px; }
.header { height: 100px; border: 0; position: relative; }
.header::after { content: ''; position: absolute; bottom: 0; left: 64px; right: 64px; height: 1px; background: var(--border); }
.brand { font-size: 19px; letter-spacing: -.7px; }
.brand > .violet { margin-left: -8px; }
nav { font-size: 12px; gap: 40px; }
nav a { position: relative; padding-block: 12px; }
nav a::after { content: ''; position: absolute; bottom: 6px; left: 0; width: 0; height: 1px; background: var(--ink); transition: width .2s linear; }
nav a:hover::after, nav a[aria-current='location']::after { width: 100%; }
.hero { position: relative; grid-template-columns: 1.03fr 1fr; gap: 8px; padding-block: 78px 54px; }
.hero-copy { position: relative; z-index: 1; padding-block: 22px; }
.availability { font-size: 12px; color: #c1bec8; }
.status-dot { width: 7px; height: 7px; }
h1 { font-size: clamp(48px, 4.9vw, 74px); line-height: 1.3; letter-spacing: -4px; font-weight: 600; margin: 30px 0 24px; }
.title-break { display: block; }
.title-period { color: #f0edf8; }
h1 .en { font-size: .94em; line-height: 1.07; letter-spacing: -4px; }
.intro { font-size: 14px; line-height: 2; color: var(--muted); max-width: 53ch; }
.hero-actions { margin-block: 32px 54px; gap: 26px; }
.primary { background: #7c3aed; border-color: #9362ef; box-shadow: 0 0 24px #7c3aed26; }
.button { padding: 13px 24px; font-size: 13px; }
.button:hover { letter-spacing: .3px; }
.hero-foot { gap: 14px; align-items: center; font-size: 10px; }
.hero-foot > span:last-child { display: none; }
.scroll-cue { width: 30px; height: 42px; display: grid; place-items: center; border: 1px solid #38343f; border-radius: 20px; color: var(--ink); }
.art-stage { border: 0; border-radius: 0; background: transparent; overflow: visible; padding-bottom: 12px; }
.art-top { padding: 0 0 4px 24px; color: #a9a5b2; font-size: 9px; }
.art-live { color: var(--ink); }
#heroArt { overflow: visible; }
.art-coordinates { padding: 0 12px 18px 24px; font-size: 9px; }
.art-controls { margin-left: 24px; padding: 14px 0; font-size: 10px; border-color: #312b3e; gap: 12px; }
.art-controls .control { border-color: #3b3547; padding: 9px; font-size: 10px; }
.art-controls > span { white-space: nowrap; }
.density-control { display: flex; align-items: center; gap: 8px; color: #b7b2c3; font-size: 10px; }
.density-control input { appearance: none; width: 52px; height: 20px; margin: 0; background: transparent; cursor: pointer; }
.density-control input::-webkit-slider-runnable-track { height: 2px; background: #514066; }
.density-control input::-webkit-slider-thumb { appearance: none; width: 8px; height: 12px; background: var(--ink); border-radius: 2px; margin-top: -5px; }
.density-control input::-moz-range-track { height: 2px; background: #514066; }
.density-control input::-moz-range-thumb { width: 8px; height: 12px; background: var(--ink); border: 0; border-radius: 2px; }
.density-control input:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 4px; }
.principles { background: transparent; border-color: #242226; }
.principles-inner { padding-block: 23px; font-size: 10px; }
.principles-inner > span:first-child { color: #d0c8df; }
.work { padding-block: 94px 90px; }
.section-heading { margin-bottom: 42px; align-items: flex-end; }
h2 { font-size: clamp(25px, 2.6vw, 36px); font-weight: 500; line-height: 1.45; letter-spacing: -1.5px; }
.section-heading h2 > .violet { display: none; }
.section-heading p { font-size: 13px; color: #aaa5b1; margin-top: 14px; }
.section-count { font-size: 11px; padding-bottom: 4px; color: #b1a8c1; white-space: nowrap; }
.projects { grid-template-columns: 1fr 1fr; gap: 42px 32px; }
.project { position: relative; }
.project:first-child { grid-column: 1 / -1; display: grid; grid-template-columns: 1.16fr 1fr; gap: 56px; align-items: center; padding-bottom: 40px; border-bottom: 1px solid var(--border); }
.project-art { background: #101012; border-color: #302a39; border-radius: 12px; }
.project:nth-child(2) .project-art { border-color: #273734; }
.project:nth-child(3) .project-art { border-color: #3a2d3c; }
.project-art::after { content: ''; position: absolute; inset: 16px; pointer-events: none; border-radius: 8px; border: 1px solid #ffffff05; }
.project-art:hover { border-color: #a78bfa80; }
.project-svg { aspect-ratio: 400 / 260; }
.project:first-child .project-svg { aspect-ratio: 400 / 286; }
.art-label { inset: 20px 22px auto; font-size: 10px; color: #bdb5cb; }
.art-label > span:last-child { color: #c3a9ff; }
.project:nth-child(2) .art-label > span:last-child { color: var(--teal); }
.project:nth-child(3) .art-label > span:last-child { color: var(--rose); }
.art-caption { bottom: 19px; left: 22px; font-size: 9px; color: #bdb5cb; }
.project-info { padding-top: 25px; }
.project:first-child .project-info { padding: 0 36px 0 0; }
.project-meta { margin-top: 0; font-size: 10px; color: #b0a8bd; gap: 12px; }
.project-meta .live { color: var(--teal); }
h3 { margin: 16px 0; font-size: 30px; font-weight: 500; letter-spacing: -1.4px; }
.project:first-child h3 { font-size: 42px; margin-block: 22px; }
h3 a > span { display: none; }
.project p { font-size: 14px; line-height: 1.9; min-height: 0; max-width: 62ch; margin-bottom: 22px; }
.tags { gap: 18px; font-size: 10px; color: #b6b0c0; flex-wrap: wrap; }
.tags span::before { content: '/ '; color: var(--ink); }
.project-cta { display: flex; align-items: center; justify-content: space-between; padding-block: 16px 8px; margin-top: 24px; border-top: 1px solid var(--border); color: #d9d1e7; font-size: 12px; min-height: 48px; }
.project-cta > span:last-child { font-size: 20px; transition: transform .2s linear; }
.project-cta:hover { color: var(--ink); }
.project-cta:hover > span:last-child { transform: rotate(45deg); }
.project:nth-child(2) .tags span::before { color: var(--teal); }
.project:nth-child(3) .tags span::before { color: var(--rose); }
.project-art .project-drawing { transform-origin: 200px 135px; transition: transform .2s linear; }
.project-art:hover .project-drawing { transform: scale(1.035); }
.about { position: relative; grid-template-columns: 160px minmax(0, 1fr) 210px; gap: 52px; padding-block: 72px 88px; border-color: #302a39; }
.about-symbol { width: 160px; height: 160px; }
.about h2 { font-size: 36px; line-height: 1.45; }
.about p { font-size: 13px; margin-block: 22px; }
.about-contact { border: 1px solid #3b3249; border-radius: 12px; display: flex; flex-direction: column; align-self: stretch; justify-content: center; padding: 24px; font-size: 14px; color: #ded6eb; }
.about-contact > span:last-child { font-size: 11px; color: #d0c3e3; overflow-wrap: anywhere; }
.about-contact:hover { border-color: var(--ink); box-shadow: 0 0 20px #7c3aed33; }
.contact-arrow { font-size: 44px; color: var(--ink); margin-block: 10px; }
footer { padding-block: 28px; border-color: #242226; }
.footer-note { color: #aaa; }
/* Motion is analytic: sine fields, constant orbital speeds, exponential pointer response. */
.orbit-motion { animation: none; }
.surface-tracers { pointer-events: none; }
.mesh-highlights { pointer-events: none; }
.field-aura { transform-origin: 300px 255px; animation: aura-breathe 8s linear infinite; }
.face-scanner { filter: drop-shadow(0 0 4px hsl(172 70% 68% / .7)); }
.signal-flow { filter: drop-shadow(0 0 3px hsl(300 76% 73% / .8)); }
.satellite-ring { opacity: .9; }
@keyframes aura-breathe {
  0%,100% { opacity: .65; transform: scale(.95); }
  25%,75% { opacity: .8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}
.registration-ring { transform-origin: 300px 255px; animation: register-orbit 90s linear infinite reverse; }
.satellite-ring { transform-origin: 300px 255px; animation: register-orbit 24s linear infinite; }
.art-stage { isolation: isolate; }
.art-live { animation: live-breathe 4s linear infinite; }
.wave-pixel { transform-box: fill-box; transform-origin: center; animation: pixel-wave 5s linear infinite; animation-delay: var(--delay); }
.face-scanner { animation: face-scan 5s linear infinite; }
.signal-flow { animation: signal-route 4s linear infinite; animation-delay: var(--delay); }
.about-symbol { animation: symbol-orbit 36s linear infinite; }
body.paused *, body.reduced-motion *, body.page-hidden * { animation-play-state: paused !important; }
.art-offscreen * { animation-play-state: paused !important; }
@keyframes register-orbit { to { transform: rotate(360deg); } }
@keyframes symbol-orbit { to { transform: rotate(360deg); } }
@keyframes pixel-wave {
  0%,100% { transform: scale(.65); opacity: .35; }
  12.5% { transform: scale(.72); opacity: .44; }
  25% { transform: scale(.9); opacity: .65; }
  37.5% { transform: scale(1.08); opacity: .86; }
  50% { transform: scale(1.15); opacity: .95; }
  62.5% { transform: scale(1.08); opacity: .86; }
  75% { transform: scale(.9); opacity: .65; }
  87.5% { transform: scale(.72); opacity: .44; }
}
@keyframes face-scan {
  0%,100% { transform: translateY(-64px) scaleX(.64); transform-origin: 200px 135px; opacity: .45; }
  25%,75% { transform: translateY(0) scaleX(1); transform-origin: 200px 135px; opacity: 1; }
  50% { transform: translateY(64px) scaleX(.64); transform-origin: 200px 135px; opacity: .45; }
}
@keyframes signal-route { from { stroke-dashoffset: 480; } to { stroke-dashoffset: 0; } }
@keyframes live-breathe { 0%,100% { opacity: .65; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .registration-ring, .satellite-ring, .wave-pixel, .face-scanner, .signal-flow, .about-symbol, .art-live { animation: none !important; }
  .signal-flow { opacity: .5; }
}
@media (min-width: 1500px) { .wrap { max-width: 1440px; } .hero { padding-block: 90px 64px; } }
@media (max-width: 1100px) {
  .wrap { padding-inline: 36px; }
  .header::after { left: 36px; right: 36px; }
  h1 { font-size: 54px; letter-spacing: -3px; }
  .hero { gap: 0; }
  .hero-actions { gap: 18px; }
  .art-controls { gap: 10px; flex-wrap: wrap; }
  .project:first-child { gap: 32px; }
  .project:first-child .project-info { padding-right: 0; }
  .about { grid-template-columns: 100px minmax(0, 1fr) 180px; gap: 28px; }
  .about-symbol { width: 100px; height: 100px; }
  .about h2 { font-size: 30px; }
}
@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; padding-block: 48px 28px; gap: 24px; }
  .hero-copy { max-width: 600px; }
  h1 { font-size: clamp(44px, 7vw, 64px); }
  h1 .en { line-height: 1.12; }
  .hero-foot { display: none; }
  .hero-actions { margin-bottom: 0; }
  .art-stage { width: 100%; max-width: 600px; justify-self: center; }
  .art-top { padding-left: 0; }
  .art-controls { margin-left: 0; }
  .art-coordinates { padding-left: 0; }
  .projects { gap: 36px 24px; }
  .project:first-child { gap: 26px; }
  .project:first-child h3 { font-size: 34px; margin-block: 16px; }
  .project p { font-size: 13px; }
  .project-meta { font-size: 9px; flex-wrap: wrap; }
  .project:first-child .project-svg { aspect-ratio: 400 / 360; }
  .about { grid-template-columns: 1fr 180px; padding-block: 48px; }
  .about-symbol { display: none; }
}
@media (max-width: 600px) {
  .wrap { padding-inline: 22px; }
  .header { height: 80px; }
  .header::after { left: 22px; right: 22px; }
  .brand { font-size: 15px; gap: 8px; }
  nav { gap: 20px; font-size: 12px; }
  h1 { font-size: clamp(38px, 9.5vw, 56px); letter-spacing: -2px; line-height: 1.4; }
  h1 .en { letter-spacing: -2px; }
  .hero-copy { padding-block: 0; }
  .intro { font-size: 13px; }
  .availability { font-size: 11px; }
  .hero-actions { gap: 20px; }
  .button { font-size: 12px; padding: 12px 20px; }
  .text-link { font-size: 11px; }
  .art-top { font-size: 9px; }
  .art-controls { gap: 8px; }
  .density-control { gap: 6px; }
  .density-control input { width: 42px; }
  .art-controls .control { font-size: 10px; }
  .principles-inner { gap: 14px; font-size: 9px; }
  .work { padding-block: 54px; }
  .section-heading { margin-bottom: 28px; align-items: flex-start; gap: 14px; }
  h2 { font-size: 24px; letter-spacing: -1px; }
  .section-heading p { font-size: 11px; }
  .section-count { font-size: 9px; padding-top: 8px; }
  .projects { grid-template-columns: 1fr; gap: 38px; }
  .project:first-child { display: block; padding-bottom: 32px; }
  .project:first-child .project-svg, .project-svg { aspect-ratio: 400 / 270; }
  .project:first-child .project-info { padding-top: 25px; }
  .project:first-child h3, h3 { font-size: 30px; }
  .project p { font-size: 14px; }
  .project-meta { font-size: 10px; }
  .project-cta { margin-top: 22px; }
  .about { grid-template-columns: 1fr; gap: 30px; padding-block: 42px; }
  .about-contact { min-height: 120px; display: grid; grid-template-columns: 1fr auto; gap: 6px; padding: 20px 24px; }
  .about-contact > .contact-arrow { grid-column: 2; grid-row: 1 / 3; margin: 0; align-self: center; }
  .about-contact > span:last-child { align-self: end; }
  footer { font-size: 9px; }
}
