/* An interactive research exhibition: silver paper, spectral objects, clear type. */
.portfolio-home { --bg: #f5f6f8; --bg-soft: #eaeef2; --ink: #202536; --ink-soft: #4b5264; --muted: #626b7d; --accent: #4d51cc; --accent-ink: #373ba1; --line: #2025361c; --font-display: 'Manrope', sans-serif; --maxw: 1320px; }
.portfolio-home::before { display: none; }
.portfolio-home .navbar { background: #f5f6f8ec; backdrop-filter: blur(16px); }
.portfolio-home .nav-container { max-width: 1440px; }
.portfolio-home .nav-logo a { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; letter-spacing: -.05em; }
.portfolio-home .nav-link { font-size: .8rem; }
.playground { max-width: 1600px; margin: 0 auto; padding: 110px 3.7vw 36px; display: grid; grid-template-columns: minmax(300px, .8fr) minmax(0, 1.4fr); gap: 1.5rem; min-height: min(900px, 100svh); align-items: center; }
.playground-intro { padding: 30px 0 15px; z-index: 2; }
.intro-line { display: flex; gap: 10px; align-items: center; font-size: .79rem; color: var(--ink-soft); }
.presence-dot { width: 7px; height: 7px; background: #4d51cc; border-radius: 50%; box-shadow: 0 0 0 4px #4d51cc0d; }
.playground h1 { font-size: clamp(5rem, 8.1vw, 8.8rem); font-weight: 500; letter-spacing: -.085em; line-height: .96; margin: 30px 0; }
.name-period { color: #6c70de; }
.intro-description { max-width: 330px; font-size: 1.07rem; line-height: 1.7; }
.intro-description strong { font-weight: 500; color: var(--ink); }
.intro-affiliation { font-size: .74rem; margin-top: 16px; }
.intro-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin-top: 28px; }
.enter-playground { display: flex; align-items: center; gap: 28px; border: 0; border-radius: 50px; padding: 14px 23px; font: 500 .85rem var(--font-body); color: #fff; background: #282d40; cursor: pointer; transition: background .2s, transform .2s; }
.enter-playground:hover { background: #4d51cc; transform: translateY(-2px); }
.enter-playground span { font-size: 1.3rem; line-height: 1; }
.intro-actions > a { font-size: .75rem; color: var(--muted); text-decoration: underline; text-underline-offset: 5px; }
.exploration-passport { max-width: 330px; margin-top: 42px; }
.passport-top { display: flex; justify-content: space-between; font-size: .72rem; color: var(--muted); }
.discovery-slots { display: flex; gap: 26px; margin: 12px 0 10px; }
.discovery-slots button { display: grid; justify-items: center; gap: 4px; background: none; border: none; cursor: pointer; color: var(--muted); font: .65rem var(--font-body); }
.slot-symbol { display: grid; place-items: center; border-radius: 50%; width: 37px; height: 37px; background: #e9ecf0; border: 1px solid #d9dee6; font-size: 21px; color: #81899a; transition: background .3s, color .3s, transform .3s; }
.discovery-slots button:hover .slot-symbol { transform: translateY(-3px); color: var(--accent); }
.discovery-slots button.discovered .slot-symbol { color: #fff; background: var(--topic-color, #4d51cc); border-color: transparent; }
#passport-note { font-size: .7rem; line-height: 1.6; min-height: 2.2em; }
.completion-actions { display: flex; gap: 15px; margin-top: 12px; }
.completion-actions button { font: .75rem var(--font-body); color: var(--accent); border: none; border-bottom: 1px solid #4d51cc40; background: none; cursor: pointer; }
.playground-stage { min-width: 0; width: 100%; height: clamp(580px, 48vw, 760px); position: relative; background: radial-gradient(ellipse at 50% 50%, #f9fafc 10%, #e8edf3 100%); border-radius: 46% 46% 8px 8px / 12% 12% 8px 8px; isolation: isolate; overflow: hidden; }
#research-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.stage-caption, .stage-bottom { position: absolute; left: 25px; right: 25px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #626b7d; font-size: .63rem; z-index: 2; }
.stage-caption { top: 33px; }
.stage-caption > span { display: flex; align-items: center; gap: 7px; }
.live-dot { width: 5px; height: 5px; border-radius: 50%; background: #6970b8; }
#motion-toggle { border: 0; background: none; color: #626b7d; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 5px; }
.stage-bottom { bottom: 25px; }
.stage-bottom > span:last-child { color: #333b53; }
.stage-center { position: absolute; top: 74%; left: 50%; transform: translateX(-50%); text-align: center; color: #636d80; font-size: .68rem; line-height: 1.6; pointer-events: none; }
.stage-center span { display: block; }
.research-node { position: absolute; display: flex; align-items: center; gap: 10px; color: var(--ink); padding: 10px 12px 10px 8px; border-radius: 40px; z-index: 3; background: #f9fafbbb; border: 1px solid #ffffffce; box-shadow: 0 8px 30px #28394f08; backdrop-filter: blur(10px); transform: translate(-50%, -50%); transition: box-shadow .2s, background .2s; }
.research-node:hover, .research-node:focus-visible { background: #fff; box-shadow: 0 8px 30px #28394f18; }
.node-glyph { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--topic-color) 12%, white); color: var(--topic-color); font-size: 25px; }
.node-copy { display: flex; flex-direction: column; gap: 1px; white-space: nowrap; }
.node-copy strong { font-size: .76rem; font-weight: 600; }
.node-copy small { font-size: .58rem; color: #667084; }
.node-arrow { font-size: .85rem; margin-left: 2px; color: #758098; }
.research-node.discovered .node-arrow { font-size: 0; }
.research-node.discovered .node-arrow::after { content: '✓'; font-size: .85rem; color: var(--topic-color); }
[data-open="play"] { --topic-color: #b85376; }
[data-open="create"] { --topic-color: #6563c5; }
[data-open="connect"] { --topic-color: #25837e; }
[data-open="meet"] { --topic-color: #a47432; }
.node-play { left: 24%; top: 22%; }
.node-create { left: 75%; top: 30%; }
.node-connect { left: 77%; top: 77%; }
.node-meet { left: 25%; top: 83%; }
.canvas-fallback { position: absolute; top: 45%; left: 20%; width: 60%; text-align: center; font-size: .85rem; }
.experiment-dialog { border: 1px solid #fff; border-radius: 18px; padding: 0; width: min(940px, calc(100% - 40px)); max-height: calc(100svh - 50px); margin: auto; background: #fafbfc; color: var(--ink); box-shadow: 0 30px 120px #1b254440; }
.experiment-dialog::backdrop { background: #19223766; backdrop-filter: blur(12px); }
.experiment-dialog[open] { animation: dialog-in .25s ease-out; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.experiment-layout { display: grid; grid-template-columns: 1.1fr 1fr; }
.experiment-lab { background: #e9edf3; padding: 25px; min-width: 0; display: flex; flex-direction: column; }
.lab-top { display: flex; align-items: center; justify-content: space-between; font-size: .8rem; }
#lab-category { color: var(--topic-color); }
#close-experiment { border: 1px solid #b7c0cd; border-radius: 50%; width: 34px; height: 34px; background: #ffffff80; cursor: pointer; color: #394259; font-size: 16px; }
#experiment-surface { min-height: 340px; display: flex; flex-direction: column; justify-content: center; padding: 25px 0; }
.experiment-prompt { font-family: var(--font-display); font-size: 1.4rem; font-weight: 500; letter-spacing: -.04em; color: var(--ink); line-height: 1.35; max-width: 300px; }
.experiment-hint { font-size: .75rem; line-height: 1.6; margin-top: 8px; color: #626b7d; }
.experiment-feedback { font-size: .75rem; line-height: 1.6; color: var(--topic-color); min-height: 3.2em; }
.experiment-notes { padding: 35px; }
.notes-label { color: #717b8d; font-size: .7rem; margin-bottom: 22px; }
.experiment-notes h2 { font-size: 1.8rem; line-height: 1.2; letter-spacing: -.045em; margin-bottom: 15px; font-weight: 600; }
#experiment-description { font-size: .85rem; line-height: 1.8; }
#experiment-works { margin: 24px 0; }
.experiment-work { display: block; border-top: 1px solid #dce1e8; padding: 14px 0; }
.experiment-work small { font-size: .65rem; color: var(--muted); display: block; margin-bottom: 4px; }
.experiment-work strong { display: block; color: var(--ink); font-size: .85rem; line-height: 1.5; font-weight: 500; }
.experiment-work:hover strong { color: var(--accent); }
.experiment-links { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; font-size: .75rem; }
#next-experiment { border: 0; background: #282d40; color: #fff; border-radius: 30px; padding: 10px 17px; font: inherit; cursor: pointer; }
.play-targets { position: relative; height: 215px; margin-top: 15px; }
.play-target { position: absolute; width: 67px; height: 67px; border: 1px solid #ffffff; border-radius: 50%; background: radial-gradient(circle at 32% 25%, #ffe6ec, #d887a7 55%, #92516d); box-shadow: 0 12px 22px #9b536e24, inset -4px -6px 15px #74486630; color: #602d45; font: 500 .62rem var(--font-body); cursor: pointer; transition: transform .25s, opacity .25s; }
.play-target:nth-child(1) { left: 8%; top: 48%; }
.play-target:nth-child(2) { left: 42%; top: 8%; }
.play-target:nth-child(3) { right: 3%; top: 59%; }
.play-target:hover { transform: scale(1.12); }
.play-target[aria-pressed="true"] { transform: scale(.8); background: #f1e4ee; box-shadow: none; border-color: #ba829a; }
.play-target[aria-pressed="true"]::after { content: ' ✓'; }
.mood-sculpture { width: 150px; height: 150px; margin: 24px auto; border-radius: 40% 60% 65% 35% / 35% 35% 65% 65%; background: conic-gradient(from 45deg, #6763bf, #b7bfeb, #dde1f1, #7e9fbe, #6763bf); box-shadow: inset -12px -8px 28px #383e6838, 0 20px 24px -15px #67749b66; transform: rotate(-18deg); transition: border-radius .6s, transform .6s, background .6s; }
.mood-sculpture[data-mood="wonder"] { border-radius: 25% 75% 30% 70% / 70% 30% 70% 30%; transform: rotate(30deg); background: conic-gradient(#a163c6, #dfacc7, #f1cbb2, #b5b6e0, #a163c6); }
.mood-sculpture[data-mood="focus"] { border-radius: 20%; transform: rotate(45deg) scale(.8); background: conic-gradient(#3f767b, #9cbfc7, #d2e4df, #53828c, #3f767b); }
.mood-choices { display: flex; justify-content: center; gap: 8px; }
.mood-choices button { border: 1px solid #bdc6d6; border-radius: 30px; padding: 8px 15px; font: .75rem var(--font-body); background: #ffffff75; color: #515d76; cursor: pointer; }
.mood-choices button[aria-pressed="true"] { background: #6263ad; border-color: #6263ad; color: #fff; }
.wave-view { width: 100%; height: 145px; margin: 20px 0; overflow: visible; }
.wave-view path { fill: none; stroke-width: 3; stroke-linecap: round; }
.wave-reference { stroke: #33445644; }
.wave-player { stroke: #25837e; }
.tuning-label { font-size: .75rem; display: flex; justify-content: space-between; }
#rhythm-tuner { width: 100%; accent-color: #25837e; margin: 16px 0; cursor: pointer; }
.journey-stops { display: grid; gap: 9px; margin: 24px 0; }
.journey-stops button { padding: 13px 16px; border: 1px solid #c3cbd6; border-radius: 6px; background: #ffffff70; text-align: left; color: #394259; cursor: pointer; font: .8rem var(--font-body); display: flex; justify-content: space-between; }
.journey-stops button small { color: #727c8f; }
.journey-stops button[aria-pressed="true"] { border-color: #ae8b58; background: #e9e0d2; }
.journey-stops button[aria-pressed="true"]::after { content: '✓'; color: #80602f; }
.portfolio-home .section { padding: 85px 0; }
.portfolio-home .section-head h2 { font-weight: 500; font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -.055em; }
.project-section { border-top: 1px solid var(--line); }
.all-research-link { font-size: .8rem; text-decoration: underline; text-underline-offset: 5px; }
.selected-project { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; padding: 32px 0; border-top: 1px solid var(--line); }
.project-context { font-size: .72rem; color: var(--muted); margin-bottom: 10px; }
.project-heading h3 { font-size: clamp(1.6rem, 2.3vw, 2.1rem); font-weight: 500; letter-spacing: -.045em; }
.project-heading h3 a { color: var(--ink); transition: color .2s; }
.selected-project:hover h3 a { color: var(--accent); }
.project-publication { font-size: .73rem; color: var(--muted); margin-top: 15px; }
.project-description { padding-top: 27px; }
.project-description p { font-size: .97rem; }
.project-description .project-detail { font-size: .85rem; color: var(--muted); margin-top: 10px; }
.paper-link { display: inline-block; margin-top: 16px; font-size: .8rem; border-bottom: 1px solid var(--accent-line); }
.portfolio-home .theme-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.portfolio-home .theme-card { padding: 0; border: 0; border-radius: 0; background: none; }
.portfolio-home .theme-card:hover { box-shadow: none; transform: none; }
.portfolio-home .theme-card h3 { font-size: 1.07rem; font-weight: 600; }
.portfolio-home .theme-card p { font-size: .87rem; }
.theme-link { display: inline-block; font-size: .75rem; margin-top: 15px; }
.portfolio-home .pub { grid-template-columns: 145px 1fr; }
.portfolio-home .pub-title { font-family: var(--font-body); font-size: 1.05rem; }
.portfolio-home .chip { border-radius: 30px; font-family: var(--font-body); }
.skip-link { position: fixed; top: 10px; left: 15px; z-index: 2000; padding: 8px 15px; background: var(--ink); color: #fff; transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[hidden] { display: none !important; }
.portfolio-home :focus-visible { outline: 2px solid #4d51cc; outline-offset: 5px; }
.portfolio-home [id] { scroll-margin-top: 90px; }
@media (min-width: 1500px) { .playground { gap: 60px; } }
@media (max-width: 1100px) { .playground { grid-template-columns: minmax(260px,.8fr) minmax(0,1.2fr); padding-left: 30px; padding-right: 30px; gap: 10px; } .node-copy small { display: none; } .research-node { gap: 7px; } .node-glyph { width: 28px; height: 28px; font-size: 21px; } .node-copy strong { font-size: .7rem; } .stage-caption { left: 18px; right: 18px; } .stage-bottom { left: 18px; right: 18px; font-size: .58rem; } .stage-caption > span { max-width: 165px; } }
@media (max-width: 800px) { .playground { display: flex; flex-direction: column; align-items: stretch; padding: 100px 22px 35px; gap: 28px; } .playground-intro { position: relative; padding: 0; } .playground h1 { font-size: 5.5rem; margin: 22px 0; } .playground h1 br { display: none; } .playground h1 br::after { content: ' '; } .playground h1 br + * { margin-left: .1em; } .intro-description { max-width: 400px; } .intro-actions { margin-top: 20px; } .exploration-passport { margin-top: 25px; max-width: 100%; } .discovery-slots { gap: 30px; } .passport-top { max-width: 270px; } .playground-stage { height: 580px; border-radius: 18px; } .node-copy small { display: block; } .node-copy strong { font-size: .76rem; } .stage-caption > span { max-width: none; } .portfolio-home .theme-grid { grid-template-columns: 1fr 1fr; } .selected-project { gap: 35px; } .experiment-dialog { width: min(540px, calc(100% - 24px)); } .experiment-layout { grid-template-columns: 1fr; } .experiment-lab { padding: 20px; } #experiment-surface { min-height: 290px; padding: 15px 0; } .experiment-notes { padding: 24px; } .notes-label { margin-bottom: 12px; } }
@media (max-width: 480px) { .playground h1 { font-size: 4.5rem; letter-spacing: -.08em; } .playground-stage { height: 480px; margin-left: -10px; width: calc(100% + 20px); } .research-node { padding: 8px; gap: 5px; } .node-copy small { display: none; } .node-copy strong { font-size: .65rem; } .node-arrow { display: none; } .node-play { left: 25%; top: 22%; } .node-create { left: 74%; top: 29%; } .node-connect { left: 74%; top: 76%; } .node-meet { left: 27%; top: 85%; } .stage-caption, .stage-bottom { font-size: .56rem; left: 14px; right: 14px; } .stage-bottom > span:first-child { display: none; } .stage-bottom { justify-content: center; } .stage-center { top: 68%; font-size: .6rem; } .portfolio-home .section { padding: 55px 0; } .selected-project { grid-template-columns: 1fr; gap: 0; } .project-description { padding-top: 15px; } .portfolio-home .theme-grid { grid-template-columns: 1fr; gap: 30px; } .portfolio-home .pub { grid-template-columns: 1fr; gap: 8px; } }
@media (max-width: 480px) { .stage-center { display: none; } }
@media (prefers-reduced-motion: reduce) { .portfolio-home *, .portfolio-home *::before, .portfolio-home *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
