* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: #f4efdf; color: #242826; font-family: Gidole, 'Arial Narrow', Arial, sans-serif; }
button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline: 2px solid #f9e6af; outline-offset: 4px; }
[hidden] { display: none !important; }
.stage { width: min(100vw, 177.7778vh); height: min(56.25vw, 100vh); position: absolute; inset: 0; margin: auto; container-type: inline-size; overflow: hidden; background: #eee8da; }
.scene, .background { position: absolute; inset: 0; width: 100%; height: 100%; }
.background { object-fit: fill; }
.scene { transition: filter .5s; }
.stage.overlay .scene { filter: blur(9px) brightness(.62); }
nav { position: absolute; left: 13.66%; top: 10.37%; width: 7.16%; display: grid; gap: 1.08cqw; }
nav button { background: transparent; border: 1px solid #242826; border-radius: 4cqw; height: 2.64cqw; font-size: 1.04cqw; letter-spacing: .015em; font-weight: 400; padding: 0; }
nav button.active { background: #7aa5a0; border-color: #7aa5a0; color: white; }
.stage.overlay nav button:not(.active), .stage.about-open nav button:not(.active) { visibility: hidden; }
.rig { position: absolute; left: 35.94%; top: 5.37%; width: 8.39%; height: 16.39%; transform-origin: 50% -30%; animation: sway 3.2s ease-in-out infinite; z-index: 3; }
.cable { position: absolute; bottom: 86%; left: 49.3%; width: 1px; height: 100cqw; background: #272925; pointer-events: none; }
#claw { position: absolute; inset: 0; border: 0; padding: 0; background: none; width: 100%; height: 100%; display: block; }
#claw > img { width: 100%; height: 100%; object-fit: contain; position: relative; z-index: 2; pointer-events: none; }
.ball { position: absolute; left: 30.7%; top: 70%; width: 38.5%; aspect-ratio: 1; border-radius: 50%; background: var(--ball, #82bfd3); box-shadow: inset -5px -7px 12px #244d4b29, inset 5px 4px 8px #ffffff40; z-index: 1; }
.hint { position: absolute; left: 42.9%; top: 12.6%; display: flex; align-items: flex-start; font-size: .8cqw; transition: opacity .2s; }
.hint svg { width: 3.1cqw; height: 2.6cqw; fill: none; stroke: #3b3732; stroke-width: 1; }
.hint span { margin-left: .2cqw; }
.stage.busy .rig, .stage.overlay .rig, .stage.about-open .rig { animation: none; }
.stage.busy .hint { opacity: 0; }
.panel { position: absolute; z-index: 5; color: white; background: var(--panel-tint, #759f9c80); border: 1px solid #eee7d9; border-radius: .65cqw; backdrop-filter: blur(8px); box-shadow: 0 8px 30px #24393410; animation: reveal .35s ease both; }
.project { left: 3.82%; top: 24.77%; width: 92.53%; height: 69.53%; overflow: hidden; }
.close { position: absolute; right: 1.75cqw; top: 1.35cqw; width: clamp(32px, 2.3cqw, 44px); height: clamp(32px, 2.3cqw, 44px); background: none; border: 0; padding: 0; z-index: 8; --glyph: clamp(14px, 1.3cqw, 25px); }
.close::before, .close::after { content: ''; position: absolute; left: calc(50% - .5px); top: calc((100% - var(--glyph)) / 2); width: 1px; height: var(--glyph); background: currentColor; transform: rotate(45deg); }
.close::after { transform: rotate(-45deg); }
.close:hover { opacity: .65; }
.project-copy { position: absolute; left: 3%; top: 9.1%; width: 42%; max-height: 87%; overflow: auto; padding-bottom: 1.5cqw; scrollbar-width: thin; scrollbar-color: #ffffff60 transparent; }
.project h1 { font-family: 'HanziPen SC', 'Segoe Print', 'Bradley Hand', cursive; font-weight: 400; font-size: 3.65cqw; line-height: 1.14; white-space: pre-line; margin: 0 0 2.7cqw; min-height: 10.2cqw; max-width: 34cqw; }
.project dl { font: 1.04cqw/1.3 Glegoo, Georgia, serif; margin: 0 0 3.1cqw; }
.project dl div { display: flex; gap: 1.1cqw; margin-bottom: .4cqw; }
.project dt { width: 2.8cqw; }
.project dd { margin: 0; }
.project p { font: .78cqw/1.25 'Courier New', monospace; white-space: pre-line; margin: 0; max-width: 23cqw; }
.project .subtitle { margin-bottom: 1.6cqw; font-family: 'Didact Gothic', Arial, sans-serif; }
.project[data-category='personal'] h1 { min-height: 0; margin-bottom: 1.7cqw; }
.project[data-category='hci'] h1 { font-family: Geologica, Arial, sans-serif; font-size: 2.08cqw; font-weight: 700; line-height: 1.25; min-height: 10.2cqw; margin-bottom: 2.2cqw; max-width: 35cqw; }
.project[data-category='hci'] p { font-family: 'Didact Gothic', Arial, sans-serif; line-height: 1.45; }
#prototype-link { display: block; margin-top: 4cqw; color: inherit; white-space: pre-line; font: 1.04cqw/1.5 Glegoo, Georgia, serif; overflow-wrap: anywhere; }
.project-decoration { position: absolute; left: 31%; bottom: 3%; width: 19%; height: 57%; object-fit: contain; }
.project-images { position: absolute; left: var(--media-left, 53%); top: var(--media-top, 11.4%); width: var(--media-width, 38%); bottom: 0; padding: 0 0 2cqw; display: flex; flex-direction: column; gap: .8cqw; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #ffffff65 transparent; }
.media-block { margin: 0; width: 100%; flex-shrink: 0; }
.media-block img, .media-block video { width: 100%; height: auto; display: block; }
.media-block[style*='aspect-ratio'] img { height: 100%; object-fit: cover; }
.media-block video { aspect-ratio: 16 / 9; background: #172424; object-fit: contain; }
.media-grid { display: grid; grid-template-columns: var(--grid-columns, repeat(var(--columns, 2), minmax(0, 1fr))); gap: .5cqw; flex-shrink: 0; align-items: start; }
.media-grid .media-block { min-width: 0; }
.media-grid img { object-fit: contain; }
.trimmed-image { position: relative; overflow: hidden; }
.media-block.trimmed-image img { position: absolute; height: auto; max-width: none; }
.project[data-project='photography'] h1 { max-width: 26cqw; }
.project[data-project='lights'] .project-copy { width: 33%; }
.project[data-project='lights'] h1 { max-width: 29.3cqw; }
.project[data-project='lights'] #description { max-width: 15.625cqw; }
.project[data-project='lights'] .project-decoration { left: 22.66%; top: 39.35%; bottom: auto; width: 20.1%; height: 57%; object-position: center top; }
.project[data-project='magnum'] .project-images { scroll-snap-type: y proximity; }
.project[data-project='magnum'] .media-block { height: min(37.2cqw, 100%); scroll-snap-align: start; }
.project[data-project='magnum'] .media-block img { height: 100%; object-fit: contain; }
.gallery { inset: 4.6% 3.8%; padding: 2.4cqw 2.7cqw; overflow-y: auto; overscroll-behavior: contain; background: #7f855780; scrollbar-width: thin; }
.gallery h1 { font-size: 1.25cqw; letter-spacing: .03em; font-weight: 400; margin: 0 0 2cqw; padding-bottom: 1cqw; border-bottom: 1px solid #ffffff70; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3cqw 1.9cqw; }
.card { border: 0; background: none; color: white; text-align: left; padding: 0; }
.card img { width: 100%; aspect-ratio: 1.5; object-fit: cover; display: block; margin-bottom: .8cqw; transition: filter .2s; }
.caption { display: grid; grid-template-columns: auto 1fr auto; gap: .55cqw; border-top: 1px solid #ffffffa0; padding-top: .6cqw; font: .78cqw/1.55 Glegoo, Georgia, serif; }
.card-title { white-space: pre-line; }
.number { opacity: .7; }
.card-year { opacity: .85; }
.card:hover img { filter: brightness(1.08); }
.about-card { position: absolute; left: 26.82%; top: 23.7%; width: 26.62%; height: 48.89%; border: 1px solid #777; border-radius: .65cqw; background: white; text-align: center; z-index: 5; box-shadow: 0 3px 8px #0003; }
.about-card .close { right: .3cqw; top: .3cqw; color: #333; --glyph: 12px; }
.summer-logo { display: block; width: 49.5%; height: 15.5%; object-fit: contain; margin: 3% auto 0; }
.about-card p { font-size: .78cqw; margin: 0 0 .6cqw; }
.cv-pending { display: inline-block; font-size: .63cqw; border-radius: 2cqw; padding: .35cqw .6cqw; background: linear-gradient(100deg,#ddf89f,#c2eaff,#ffacda); }
.contact { margin-top: 4.6cqw; }
.contact h1 { font: 400 1.56cqw/1.4 'HanziPen SC', cursive; margin: 0; }
.contact a { color: inherit; text-decoration: none; display: block; font-size: .78cqw; line-height: 1.5; }
.brand-logos { position: absolute; left: 4%; right: 4%; bottom: 2.5%; border-top: 1px solid #777; padding: .6cqw 3.4cqw 0; display: grid; grid-template-columns: repeat(4,1fr); gap: .35cqw .65cqw; align-items: center; }
.brand-logos img { width: 100%; height: 1.6cqw; object-fit: contain; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@keyframes sway { 0%,100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes reveal { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (max-aspect-ratio: 4/5) {
 .stage { width: 100vw; height: 100svh; position: relative; }
 .background { object-fit: cover; object-position: 43% center; }
 nav { top: 5%; left: 6%; width: 23%; gap: 3cqw; }
 nav button { height: 9cqw; font-size: 3.4cqw; }
 .rig { top: 8%; left: 46%; width: 22%; height: 22%; }
 .hint { left: 68%; top: 17%; font-size: 3cqw; }
 .hint svg { width: 8cqw; height: 8cqw; }
 .project { inset: 34% 4% 3%; width: 92%; height: auto; overflow-y: auto; padding: 8cqw 6cqw 5cqw; }
 .project-copy { position: relative; inset: auto; width: 100%; max-height: none; padding: 0; overflow: visible; }
 .project h1, .project[data-category='personal'] h1 { font-size: 7cqw; max-width: 72cqw; min-height: 0; margin-bottom: 5cqw; }
 .project[data-category='hci'] h1 { font-size: 5cqw; max-width: 72cqw; min-height: 0; margin-bottom: 4cqw; }
 .project[data-project='lights'] .project-copy { width: 100%; }
 .project[data-project='lights'] h1, .project[data-project='photography'] h1 { max-width: 72cqw; }
 .project[data-project='lights'] #description { max-width: none; }
 .project dl { font-size: 3.2cqw; margin-bottom: 5cqw; }
 .project dt { width: 10cqw; }
 .project p, .project .subtitle { font-size: 2.8cqw; line-height: 1.45; max-width: none; }
 #prototype-link { font-size: 3cqw; margin-top: 5cqw; }
 .project-decoration { position: relative; inset: auto; width: 38%; height: auto; margin: 4cqw 0 0; }
 .project[data-project='lights'] .project-decoration { position: relative; inset: auto; width: 45%; height: auto; margin: 5cqw 0 0 auto; display: block; }
 .project-images { position: relative; inset: auto; width: 100%; height: auto; gap: 3cqw; padding: 6cqw 0 0; overflow: visible; }
 .project[data-project='magnum'] .media-block { height: auto; max-height: 55svh; }
 .project[data-project='magnum'] .media-block img { height: auto; max-height: 55svh; object-fit: contain; }
 .media-grid { gap: 2cqw; }
 .close { position: sticky; float: right; right: 0; top: 0; margin: -5cqw -3cqw 0 0; width: 32px; height: 32px; --glyph: 16px; }
 .gallery { inset: 4%; padding: 6cqw; }
 .gallery h1 { font-size: 4cqw; padding-bottom: 3cqw; margin-bottom: 4cqw; }
 .grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6cqw 3cqw; }
 .caption { font-size: 2.4cqw; gap: 1cqw; }
 .card-year { display: none; }
 .stage.overlay nav { visibility: hidden; }
 .about-card { left: 10%; top: 34%; width: 80%; height: 55%; max-height: 115cqw; border-radius: 3cqw; }
 .about-card .close { position: absolute; margin: 0; right: 2cqw; top: 1cqw; }
 .about-card p, .contact a { font-size: 2.5cqw; }
 .cv-pending { font-size: 2.3cqw; padding: 1cqw 2cqw; }
 .contact { margin-top: 12cqw; }
 .contact h1 { font-size: 5cqw; }
 .brand-logos { padding: 2cqw 8cqw 0; gap: 2cqw; }
 .brand-logos img { height: 6cqw; }
}

/* Locally hosted open fonts and designer-supplied title artwork. */
@font-face { font-family: Gidole; src: url('assets/fonts/Gidole-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: Glegoo; src: url('assets/fonts/Glegoo-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: Glegoo; src: url('assets/fonts/Glegoo-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: Geologica; src: url('assets/fonts/Geologica[CRSV,SHRP,slnt,wght].ttf') format('truetype'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Didact Gothic'; src: url('assets/fonts/DidactGothic-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'DM Mono'; src: url('assets/fonts/DMMono-Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: Alkalami; src: url('assets/fonts/Alkalami-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
.title-art { display: block; max-width: 100%; height: auto; }
.contact-art { display: block; width: 4.48cqw; height: auto; margin: 0 auto .5cqw; }
.hci-scroll { position: absolute; inset: 0; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #ffffff65 transparent; }
.hci-board { position: relative; width: 100%; container-type: inline-size; }
.hci-slot { position: absolute; margin: 0; overflow: hidden; }
.hci-slot img, .hci-slot video { display: block; position: absolute; width: 100%; height: 100%; object-fit: cover; }
.hci-slot video { object-fit: contain; background: #111; }
.project .hci-slot p { font: 400 .8444cqw/1.4 'Didact Gothic',Arial,sans-serif; max-width: none; margin: 0; white-space: pre-line; }
.hci-slot h2 { font: 500 .8444cqw/1.35 'DM Mono',monospace; margin: 0 0 .12cqw; }
.project .hci-title h1 { font: 700 2.2516cqw/1.25 Geologica,Arial,sans-serif; max-width: none; min-height: 0; margin: 0; }
.project .hci-tools p { font-size: 1.126cqw; }
.project .hci-caption p { font-family: Alkalami,Georgia,serif; line-height: 1.1; }
.hci-divider { border-top: 1px solid #ffffff75; }
@media (max-aspect-ratio: 4/5) {
 .title-art { width: auto !important; max-width: 100%; max-height: 27cqw; }
 .contact-art { width: 15cqw; margin-bottom: 2cqw; }
 .project:has(.hci-scroll:not([hidden])) { padding: 8cqw 5cqw; }
 .hci-scroll { position: relative; inset: auto; overflow: visible; }
 .hci-board { height: auto !important; display: grid; grid-template-columns: minmax(0,1fr); gap: 5cqw; }
 .hci-slot { position: relative; left: auto !important; top: auto !important; width: 100% !important; height: auto !important; overflow: hidden; }
 .hci-slot:has(img), .hci-slot:has(video) { aspect-ratio: var(--slot-ratio,1.35); }
 .hci-slot img, .hci-slot video { position: relative; height: 100%; object-fit: contain; }
 .project .hci-title h1 { font-size: 5.4cqw; line-height: 1.25; }
 .project .hci-slot p, .hci-slot h2 { font-size: 3.5cqw; }
 .hci-divider { display: none; }
}

.cv-download { color: #242826; text-decoration: none; }
.cv-download:hover { filter: brightness(.96); }
