/* Dimensional layer shared by every portfolio page. */
:root { --scene-line: rgba(27,79,216,.16); --scene-glow: rgba(104,129,242,.14); }
html[data-theme="dark"] { --scene-line: rgba(137,162,255,.22); --scene-glow: rgba(92,130,242,.16); }
body { background-image: radial-gradient(ellipse at 90% 15%,var(--scene-glow),transparent 52%); }
::selection { background: var(--accent); color: white; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.home-page #hero { overflow: hidden; position: relative; padding-bottom: 55px; }
.home-page .hero-inner { grid-template-columns: 1.1fr 1fr; gap: 28px; max-width: 1240px; }
.home-page .hero-name { font-size: clamp(3.8rem,7vw,6.8rem); }
.home-page .hero-desc { max-width: 490px; }
.home-page .hero-cta { gap: 10px; margin-bottom: 36px; }
.home-page .hero-cta .btn { padding: 12px 20px; }
.home-page .hero-stats { gap: 32px; }
.hero-universe { position: relative; min-width: 0; width: 100%; height: 620px; perspective: 1100px; isolation: isolate; }
.scene-halo { position: absolute; inset: 60px -50px; border-radius: 50%; background: radial-gradient(ellipse,var(--scene-glow),transparent 68%); filter: blur(12px); }
.scene-grid { position: absolute; left: -12%; right: -12%; height: 420px; bottom: -70px; background-image: linear-gradient(var(--scene-line) 1px,transparent 1px),linear-gradient(90deg,var(--scene-line) 1px,transparent 1px); background-size: 42px 42px; transform: rotateX(65deg) rotateZ(-16deg); mask-image: radial-gradient(ellipse,#000,transparent 68%); pointer-events: none; }
.scene-assembly { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--scene-rx,0deg)) rotateY(var(--scene-ry,0deg)); transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.developer-card { position: absolute; width: 290px; left: calc(50% - 145px); top: 105px; border: 1px solid var(--scene-line); border-radius: 24px; padding: 19px; background: var(--surface); box-shadow: 14px 20px 0 -4px var(--accent-light), 15px 23px 0 -3px var(--scene-line), 0 35px 65px -24px rgba(30,40,100,.3); transform: rotateY(-17deg) rotateX(8deg) rotateZ(-5deg); animation: card-drift 7s ease-in-out infinite; backface-visibility: hidden; }
.card-topline { display: flex; align-items: center; justify-content: space-between; font: 10px monospace; color: var(--muted); margin-bottom: 22px; }
.window-dots { display: flex; gap: 4px; }.window-dots i { width: 5px; height: 5px; background: var(--border); border-radius: 50%; }.window-dots i:first-child { background: #8a9df1; }
.home-page .hero-photo { width: 110px; height: 110px; margin: 0 auto 16px; border-radius: 24px; border: 4px solid var(--bg); box-shadow: 0 10px 20px rgba(0,0,0,.08); }
.home-page .hero-photo img { object-position: center 30%; }
.developer-name { text-align: center; font-family: 'Fraunces',serif; font-size: 25px; font-weight: 600; line-height: 1.3; }
.developer-name > span { display: block; font: 11px 'DM Sans',sans-serif; color: var(--muted); margin-top: 6px; }
.card-code { font: 11px/1.9 monospace; color: var(--muted); border: 1px solid var(--border); border-radius: 10px; padding: 12px 15px; margin: 22px 0 16px; background: var(--bg); }.card-code > span { color: #9363d9; }.card-code b { color: var(--accent); font-weight: 400; }
.card-status { font-size: 9px; display: flex; gap: 4px; align-items: center; color: var(--muted); }.card-status > span:last-child { margin-left: auto; }.card-status .available-dot { width: 5px; height: 5px; }
.orbit { position: absolute; width: 430px; height: 430px; left: calc(50% - 215px); top: 95px; border: 1px solid var(--scene-line); border-radius: 50%; transform-style: preserve-3d; pointer-events: none; }
.orbit::before { content: ''; position: absolute; width: 9px; height: 9px; left: 50%; top: -5px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 20px var(--accent); }
.orbit-one { animation: orbit-spin 26s linear infinite; }.orbit-two { animation: orbit-spin-two 32s linear infinite; }.orbit-three { transform: rotateX(62deg) rotateY(-24deg); border-style: dashed; width: 490px; height: 490px; left: calc(50% - 245px); top: 65px; }
.floating-chip { position: absolute; display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--scene-line); box-shadow: 0 16px 35px -15px rgba(30,40,100,.25); font-size: 12px; font-weight: 600; animation: chip-drift 6s ease-in-out infinite; transform: translateZ(65px); }
.floating-chip small { display: block; font-size: 9px; font-weight: 400; color: var(--muted); margin-top: 2px; }.chip-symbol { display: grid; place-items: center; width: 30px; height: 34px; color: var(--accent); border-radius: 8px; background: var(--accent-light); font: 600 18px monospace; }
.chip-kotlin { left: -8px; top: 85px; animation-delay: -1s; }.chip-web { right: -15px; top: 265px; animation-delay: -3s; }.chip-ai { left: -10px; bottom: 95px; animation-delay: -5s; }
.scene-cube { position: absolute; right: 50px; top: 60px; width: 42px; height: 42px; transform-style: preserve-3d; animation: cube-turn 18s linear infinite; }.scene-cube i { position: absolute; inset: 0; border: 1px solid var(--accent); background: var(--scene-glow); }.scene-cube i:nth-child(1) { transform: translateZ(21px); }.scene-cube i:nth-child(2) { transform: rotateY(180deg) translateZ(21px); }.scene-cube i:nth-child(3) { transform: rotateY(90deg) translateZ(21px); }.scene-cube i:nth-child(4) { transform: rotateY(-90deg) translateZ(21px); }.scene-cube i:nth-child(5) { transform: rotateX(90deg) translateZ(21px); }.scene-cube i:nth-child(6) { transform: rotateX(-90deg) translateZ(21px); }
.scene-spark { position: absolute; color: var(--accent); font: 24px monospace; }.spark-one { left: 25px; top: 260px; }.spark-two { right: 80px; bottom: 95px; font-size: 16px; }
.scene-caption { position: absolute; bottom: 12px; width: 100%; text-align: center; font: 9px monospace; letter-spacing: 2px; color: var(--muted); }.scene-caption > span { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin-right: 7px; }
.depth-card { transform-style: preserve-3d; position: relative; }
.depth-card.tilt-active { transform: perspective(1000px) rotateX(var(--tilt-x,0deg)) rotateY(var(--tilt-y,0deg)) translateY(-4px) !important; box-shadow: 0 22px 50px -25px rgba(42,65,130,.35); transition: transform .12s ease-out, box-shadow .25s ease !important; }
@keyframes card-drift { 0%,100% { transform: rotateY(-17deg) rotateX(8deg) rotateZ(-5deg) translateY(0); } 50% { transform: rotateY(-8deg) rotateX(4deg) rotateZ(-2deg) translateY(-16px); } }
@keyframes chip-drift { 0%,100% { transform: translateY(0) translateZ(65px) rotateZ(-3deg); } 50% { transform: translateY(-16px) translateZ(65px) rotateZ(2deg); } }
@keyframes orbit-spin { from { transform: rotateX(62deg) rotateY(18deg) rotateZ(0deg); } to { transform: rotateX(62deg) rotateY(18deg) rotateZ(360deg); } }
@keyframes orbit-spin-two { from { transform: rotateX(28deg) rotateY(-55deg) rotateZ(360deg); } to { transform: rotateX(28deg) rotateY(-55deg) rotateZ(0deg); } }
@keyframes cube-turn { from { transform: rotateX(20deg) rotateY(0deg) rotateZ(15deg); } to { transform: rotateX(380deg) rotateY(360deg) rotateZ(15deg); } }

html.motion-paused .scene-assembly { transform: none; }
@media (max-width: 1100px) { .nav-links { gap: 0; }.nav-links a { padding: 6px 8px; font-size: .8rem; }.hero-universe { transform: scale(.9); }.chip-web { right: -25px; } }
@media (max-width: 900px) { .home-page .hero-inner { grid-template-columns: 1fr; gap: 5px; }.home-page .hero-text { max-width: 620px; }.hero-universe { max-width: 500px; margin: 0 auto; transform: none; height: 590px; }.home-page #hero { padding-top: calc(var(--nav-h) + 50px); }.home-page .hero-name { font-size: clamp(3.7rem,10vw,6rem); } }
@media (max-width: 540px) { .hero-universe { width: 100%; height: 530px; margin-top: 15px; }.scene-assembly { scale: .8; transform-origin: 50% 40%; }.scene-grid { bottom: -30px; }.scene-caption { font-size: 8px; letter-spacing: 1px; }.home-page .hero-name { font-size: clamp(3rem,13vw,4.5rem); }.home-page .hero-stats { gap: 26px; }.chip-kotlin { left: -15px; }.chip-ai { left: -15px; bottom: 25px; }.chip-web { right: -30px; }.scene-cube { right: 5px; }.home-page #hero { padding-bottom: 70px; }.home-page .hero-desc { font-size: 1rem; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; } .fade-up, [data-reveal], .mask-inner { opacity: 1 !important; transform: none !important; }.scene-assembly { transform: none !important; } }

/* A living, theme-aware environment for the entire portfolio. */
:root {
  --bg: #f5f7fd; --surface: #fff; --text: #18213a; --muted: #58647d;
  --border: #dce3f1; --accent: #3659d9; --accent-light: #eaf0ff; --tag-bg: #edf1f9;
  --scene-line: rgba(54,89,217,.24); --scene-glow: rgba(95,126,236,.18);
  --glass: rgba(255,255,255,.91); --depth-shadow: rgba(34,57,116,.16);
  --card-edge: rgba(54,89,217,.18); --ambient-blue: rgba(93,143,255,.2); --ambient-violet: rgba(167,128,235,.17);
}
html[data-theme="dark"] {
  --bg: #0b1020; --surface: #141d32; --text: #edf2ff; --muted: #a8b6d0;
  --border: #2b3a57; --accent: #9aaeff; --accent-light: #202e50; --tag-bg: #1d2941;
  --scene-line: rgba(148,175,255,.38); --scene-glow: rgba(94,126,255,.23);
  --glass: rgba(20,29,50,.93); --depth-shadow: rgba(0,0,0,.48);
  --card-edge: rgba(142,171,255,.3); --ambient-blue: rgba(58,99,235,.19); --ambient-violet: rgba(139,76,215,.15);
  color-scheme: dark;
}
html[data-theme="light"] { color-scheme: light; }
body { position: relative; isolation: isolate; background-image: none; overflow-x: clip; }
.live-environment { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; perspective: 1000px; }
.ambient-light { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; filter: blur(35px); animation: ambient-drift 24s ease-in-out infinite alternate; }
.light-one { top: -30%; right: -30%; background: radial-gradient(circle,var(--ambient-blue),transparent 65%); }
.light-two { bottom: -45%; left: -20%; background: radial-gradient(circle,var(--ambient-violet),transparent 65%); animation-delay: -12s; }
.ambient-grid { position: absolute; inset: 40% -30% -60%; background-image: linear-gradient(var(--scene-line) 1px,transparent 1px),linear-gradient(90deg,var(--scene-line) 1px,transparent 1px); background-size: 75px 75px; transform: rotateX(65deg); opacity: .35; mask-image: radial-gradient(ellipse,black,transparent 68%); animation: grid-travel 16s linear infinite; }
.ambient-orb { position: absolute; width: 58px; height: 58px; border-radius: 50%; background: radial-gradient(circle at 28% 22%,var(--surface),var(--accent-light) 35%,var(--scene-line) 75%); border: 1px solid var(--scene-line); box-shadow: 9px 14px 25px var(--depth-shadow),inset -8px -6px 15px var(--scene-glow); animation: orb-drift 12s ease-in-out infinite; opacity: .65; }
.orb-one { top: 18%; right: 4%; }.orb-two { top: 69%; left: 2%; width: 30px; height: 30px; animation-delay: -4s; }.orb-three { top: 80%; right: 10%; width: 18px; height: 18px; animation-delay: -8s; }
nav, html[data-theme="dark"] nav { background: var(--glass); }
nav.nav-mobile { background: var(--surface); }
.page-wrapper { position: relative; width: 100%; max-width: 1240px; padding-bottom: 110px; }
.dimensional-header { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(260px,1fr); gap: 24px; align-items: center; min-height: 330px; margin-bottom: 45px; }
.page-heading { min-width: 0; }.page-heading .section-title { margin-bottom: 22px; font-size: clamp(2.5rem,4.7vw,4.5rem); text-wrap: balance; }.page-heading > p:last-child:not(.section-label) { margin-bottom: 0; }
.page-heading .section-label { display: flex; gap: 10px; align-items: center; }.page-heading .section-label::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px var(--accent-light); }
.page-sculpture { position: relative; height: 320px; perspective: 850px; min-width: 0; }
.sculpture-camera { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--scene-rx,0deg)) rotateY(var(--scene-ry,0deg)); transition: transform .5s ease-out; }
.sculpture-floor { position: absolute; inset: 35% 2% -15%; background-image: linear-gradient(var(--scene-line) 1px,transparent 1px),linear-gradient(90deg,var(--scene-line) 1px,transparent 1px); background-size: 27px 27px; transform: rotateX(65deg) rotateZ(-15deg); mask-image: radial-gradient(ellipse,black,transparent 68%); }
.sculpture-core { position: absolute; left: calc(50% - 48px); top: calc(50% - 48px); width: 96px; height: 96px; transform-style: preserve-3d; animation: sculpture-turn 22s linear infinite; }
.sculpture-core i { position: absolute; inset: 0; border: 1px solid var(--accent); background: linear-gradient(140deg,var(--surface),var(--accent-light)); display: grid; place-items: center; font: 500 32px monospace; color: var(--accent); border-radius: 12px; box-shadow: inset 0 0 25px var(--scene-glow); backface-visibility: hidden; }
.sculpture-core i:nth-child(1) { transform: translateZ(48px); }.sculpture-core i:nth-child(2) { transform: rotateY(180deg) translateZ(48px); }.sculpture-core i:nth-child(3) { transform: rotateY(90deg) translateZ(48px); }.sculpture-core i:nth-child(4) { transform: rotateY(-90deg) translateZ(48px); }.sculpture-core i:nth-child(5) { transform: rotateX(90deg) translateZ(48px); }.sculpture-core i:nth-child(6) { transform: rotateX(-90deg) translateZ(48px); }
.sculpture-ring { position: absolute; inset: 28px calc(50% - 130px); width: 260px; height: 260px; border: 1px solid var(--scene-line); border-radius: 50%; transform-style: preserve-3d; animation: orbit-spin 20s linear infinite; }
.sculpture-ring::after { content: ''; width: 9px; height: 9px; position: absolute; top: -5px; left: 50%; border-radius: 50%; background: var(--accent); box-shadow: 0 0 18px var(--scene-glow); }
.ring-b { animation: orbit-spin-two 28s linear infinite; border-style: dashed; }
.sculpture-label { position: absolute; font: 11px 'DM Sans',sans-serif; letter-spacing: .03em; padding: 9px 15px; border: 1px solid var(--card-edge); border-radius: 9px; background: var(--glass); box-shadow: 4px 6px 0 var(--accent-light),0 12px 22px -10px var(--depth-shadow); animation: chip-drift 7s ease-in-out infinite; }
.label-a { left: 5%; top: 45px; }.label-b { right: 0; top: 135px; animation-delay: -2s; }.label-c { left: 15%; bottom: 35px; animation-delay: -4s; }
.sculpture-index { position: absolute; bottom: -12px; width: 100%; text-align: center; font: 9px monospace; letter-spacing: 2px; color: var(--muted); }
.sculpture-point { position: absolute; width: 8px; height: 8px; background: var(--accent); border-radius: 2px; animation: cube-turn 12s linear infinite; }.point-a { right: 16%; top: 35px; }.point-b { left: 4%; bottom: 80px; width: 5px; height: 5px; }
[data-page="about"] .sculpture-core i { border-radius: 24px; }
[data-page="skills"] .sculpture-core { animation-direction: reverse; }
[data-page="experience"] .sculpture-core i { border-radius: 4px; }
[data-page="achievements"] .sculpture-core i { color: #a87511; border-color: #c8a350; background: linear-gradient(140deg,var(--surface),var(--accent-light)); }
[data-page="contact"] .sculpture-core i { border-radius: 50%; }
.depth-card { border-color: var(--card-edge); box-shadow: 0 5px 0 -1px var(--accent-light),0 6px 0 var(--card-edge),0 18px 32px -20px var(--depth-shadow); animation: panel-breathe 9s ease-in-out var(--drift-delay,0s) infinite; transform-origin: 50% 70%; }
.depth-card::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(circle at var(--shine-x,25%) var(--shine-y,0%),var(--scene-glow),transparent 60%); opacity: .28; transition: opacity .3s; }
.depth-card.tilt-active::after { opacity: .7; }.depth-card.tilt-active, .depth-card:focus-within { animation-play-state: paused; rotate: none; translate: none; }
.depth-card > * { position: relative; }
.skill-group-icon, .ach-icon-wrap, .highlight-icon, .timeline-dot { animation: icon-bob 6s ease-in-out infinite; filter: drop-shadow(0 5px 3px var(--depth-shadow)); }
.timeline::before { background: linear-gradient(var(--accent),var(--scene-line),var(--accent)); background-size: 100% 200%; animation: timeline-flow 5s linear infinite; }
.skill-bar-fill { position: relative; overflow: hidden; }.skill-bar-fill::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg,transparent,rgba(255,255,255,.45),transparent); animation: bar-light 4s ease-in-out infinite; }
.project-card.featured, .ach-card.highlight, .freelance-banner { background: linear-gradient(135deg,#1c2c58,#253e72 60%,#372c64); color: #f1f5ff; border-color: #536b9b; }
html[data-theme] .project-card.featured .project-desc, html[data-theme] .ach-card.highlight .ach-sub, html[data-theme] .freelance-banner p { color: #c4d1eb; }
html[data-theme] .project-card.featured .tech-tag, html[data-theme] .freelance-banner .tech-tag { color: #e0e9ff; background: rgba(191,210,255,.12); border-color: rgba(191,210,255,.18); }
html[data-theme] .project-card.featured .proj-link { color: #e0e9ff; }
html[data-theme] .project-card.featured .status-live { color: #b5f5ce; background: #244c46; }
html[data-theme] .ach-card.highlight .ach-icon-wrap { background: rgba(255,255,255,.12); }
footer { padding-bottom: 32px; background: var(--glass); }
html.motion-paused :is(.ambient-light,.ambient-grid,.ambient-orb,.sculpture-core,.sculpture-ring,.sculpture-label,.sculpture-point,.depth-card,.skill-group-icon,.ach-icon-wrap,.highlight-icon,.timeline-dot,.developer-card,.floating-chip,.scene-cube,.orbit,.available-dot,.hero-name em), html.motion-paused .timeline::before, html.motion-paused .skill-bar-fill::after { animation-play-state: paused !important; }
html.motion-paused .sculpture-camera { transform: none; }
@keyframes ambient-drift { to { transform: translate(-12%,20%) scale(1.15); } }
@keyframes grid-travel { to { background-position: 0 75px,0 75px; } }
@keyframes orb-drift { 0%,100% { transform: translate3d(0,0,0); } 50% { transform: translate3d(15px,-35px,40px); } }
@keyframes sculpture-turn { from { transform: rotateX(-18deg) rotateY(25deg) rotateZ(-8deg); } to { transform: rotateX(342deg) rotateY(385deg) rotateZ(-8deg); } }
@keyframes panel-breathe { 0%,100% { translate: 0 0; rotate: 1 0 0 .4deg; } 50% { translate: 0 -5px; rotate: 0 1 0 -.6deg; } }
@keyframes icon-bob { 0%,100% { translate: 0 0; rotate: -3deg; } 50% { translate: 0 -4px; rotate: 3deg; } }
@keyframes timeline-flow { to { background-position: 0 200%; } }
@keyframes bar-light { 0%,20% { transform: translateX(-100%); } 80%,100% { transform: translateX(100%); } }
@media (max-width: 1000px) { .dimensional-header { grid-template-columns: minmax(0,1.2fr) minmax(230px,1fr); gap: 10px; }.page-sculpture { scale: .9; }.page-heading .section-title { font-size: clamp(2.4rem,4.6vw,3.5rem); } }
@media (max-width: 700px) { .dimensional-header { grid-template-columns: 1fr; gap: 20px; margin-bottom: 40px; }.page-sculpture { width: min(100%,380px); height: 300px; margin: 0 auto; scale: 1; }.page-wrapper { padding-top: calc(var(--nav-h) + 42px); }.page-heading .section-title { font-size: clamp(2.3rem,9vw,3.4rem); }.project-card.featured { grid-column: span 1; }.projects-grid,.ach-grid,.skills-grid { grid-template-columns: minmax(0,1fr); }.depth-card { max-width: 100%; }.back-to-top { right: 16px; bottom: 17px; }.project-card { padding: 26px; }.ambient-orb { opacity: .3; }.contact-grid { min-width: 0; }.cl-val { overflow-wrap: anywhere; } }
@media (prefers-reduced-motion: reduce) { .depth-card { animation: none !important; rotate: none; translate: none; }.sculpture-core { animation: none !important; transform: rotateX(-18deg) rotateY(25deg) rotateZ(-8deg); }.sculpture-camera { transform: none !important; } }
html[data-theme] .project-card .proj-link.primary { background: #3659d9; color: #fff; }
html.motion-paused .btn-primary::after { animation-play-state: paused !important; }

/* Full floating workspaces use the same visual language as the home hero. */
.dimensional-header { grid-template-columns: minmax(0,1fr) minmax(0,1.08fr); gap: 36px; min-height: 560px; margin-bottom: 65px; }
.page-universe { height: 560px; transform: none; }
.page-universe .scene-assembly { scale: .9; transform-origin: 50% 45%; }
.page-universe .developer-card { top: 70px; width: 290px; left: calc(50% - 145px); padding: 20px; }
.page-universe .orbit { top: 55px; }.page-universe .orbit-three { top: 25px; }
.page-universe .chip-kotlin { top: 48px; left: -15px; }.page-universe .chip-web { top: 250px; right: -25px; }.page-universe .chip-ai { bottom: 45px; left: -8px; }
.page-universe .scene-cube { top: 20px; right: 35px; }.page-universe .scene-grid { bottom: -30px; }.page-universe .scene-caption { bottom: -5px; font-size: 8px; letter-spacing: 1.5px; }
.scene-card-title { font: 600 28px/1.16 'Fraunces',serif; letter-spacing: -.035em; color: var(--text); margin: 12px 0; }
.scene-card-title em { font-weight: 400; color: var(--accent); }
.scene-card-sub { font-size: 11px; line-height: 1.8; color: var(--muted); }
.scene-card-kicker { font: 8px monospace; letter-spacing: 1.4px; color: var(--accent); margin-bottom: 14px; }
.scene-portrait { display: block; width: 100px; height: 100px; object-fit: cover; object-position: center 30%; border: 4px solid var(--bg); border-radius: 23px; margin: 0 auto 12px; box-shadow: 0 8px 22px var(--depth-shadow); }
[data-page="about"] .page-scene-card > .scene-card-title, [data-page="about"] .page-scene-card > .scene-card-sub { text-align: center; }
.scene-app-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; }.scene-app-brand img { width: 40px; height: 40px; border-radius: 11px; }.scene-app-brand span { display: block; font-size: 9px; color: var(--muted); font-weight: 400; }
.scene-mini-panel { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 12px; margin: 18px 0; }.scene-mini-panel > span { font: 7px monospace; letter-spacing: 1px; color: var(--muted); }
.scene-chart { display: flex; align-items: end; gap: 9px; height: 82px; padding: 10px 0 0; border-bottom: 1px solid var(--border); margin-bottom: 8px; }.scene-chart i { flex: 1; height: 40%; background: linear-gradient(var(--accent),var(--accent-light)); border-radius: 4px 4px 0 0; transform-origin: bottom; animation: chart-rise 4s ease-in-out infinite alternate; }.scene-chart i:nth-child(2) { height: 58%; animation-delay: -.7s; }.scene-chart i:nth-child(3) { height: 46%; animation-delay: -1.4s; }.scene-chart i:nth-child(4) { height: 80%; animation-delay: -2.1s; }.scene-chart i:nth-child(5) { height: 65%; animation-delay: -2.8s; }.scene-chart i:nth-child(6) { height: 90%; animation-delay: -3.5s; }.scene-chart i:nth-child(7) { height: 100%; animation-delay: -1s; }
.scene-panel-row { display: flex; justify-content: space-between; font-size: 9px; padding: 5px 0; color: var(--muted); }.scene-panel-row b { color: var(--accent); }
.scene-terminal { margin: 22px 0 15px; padding: 14px 10px; border: 1px solid var(--border); border-radius: 12px; font: 10px/2.2 monospace; color: var(--text); background: var(--bg); }.scene-terminal span { color: var(--muted); opacity: .65; }.scene-terminal b { color: #a16bd6; font-weight: 400; }.scene-terminal em { color: var(--accent); font-style: normal; }.scene-caret { display: inline-block; width: 5px; height: 10px; background: var(--accent); vertical-align: middle; animation: caret-blink 1.2s steps(2,end) infinite; }
.scene-mini-tags { display: flex; gap: 6px; margin-bottom: 22px; }.scene-mini-tags span { font: 7px monospace; letter-spacing: 1px; background: var(--accent-light); color: var(--accent); border: 1px solid var(--border); padding: 5px 10px; border-radius: 5px; }
.scene-journey { margin: 23px 0 20px; }.scene-journey > div { padding: 0 0 20px 20px; border-left: 1px solid var(--scene-line); position: relative; }.scene-journey > div:last-child { padding-bottom: 0; }.scene-journey > div::before { content: ''; position: absolute; width: 7px; height: 7px; left: -4px; top: 3px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 0 4px var(--accent-light); animation: pulse 3s ease-in-out infinite; }.scene-journey span { display: block; font: 8px monospace; color: var(--accent); margin-bottom: 6px; }.scene-journey b { display: block; font-size: 12px; font-weight: 500; }.scene-journey small { display: block; font-size: 9px; color: var(--muted); margin-top: 3px; }
.scene-medallion { display: grid; place-items: center; width: 65px; height: 65px; border-radius: 50%; color: #9d6910; font-size: 34px; background: linear-gradient(135deg,#fff4bf,#eac46c); border: 5px double #c79b43; box-shadow: 5px 6px 0 #c79b4340,0 10px 20px var(--depth-shadow); margin: 0 auto 20px; animation: medal-float 6s ease-in-out infinite; }
.scene-award-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 20px 0; }.scene-award-grid > div { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 12px; }.scene-award-grid b { font: 600 25px 'Fraunces',serif; display: block; color: var(--accent); }.scene-award-grid span { font: 7px monospace; color: var(--muted); letter-spacing: .6px; }
.scene-shipped { display: flex; align-items: center; gap: 9px; font-size: 11px; margin-bottom: 20px; }.scene-shipped img { width: 30px; height: 30px; border-radius: 8px; }.scene-shipped small { display: block; font-size: 8px; color: var(--muted); }.scene-shipped > b { margin-left: auto; color: var(--accent); }
.scene-envelope { width: 92px; height: 68px; position: relative; margin: 12px auto 28px; border: 1px solid var(--accent); border-radius: 10px; background: linear-gradient(140deg,var(--accent-light),var(--surface)); box-shadow: 5px 8px 0 var(--scene-line); transform-style: preserve-3d; animation: envelope-float 6s ease-in-out infinite; }.scene-envelope > div { position: absolute; inset: -1px -1px 15px; background: var(--accent-light); clip-path: polygon(0 0,100% 0,50% 100%); border-top: 1px solid var(--accent); transform-origin: top; animation: envelope-open 6s ease-in-out infinite; }.scene-envelope > span { position: absolute; right: 8px; bottom: 2px; color: var(--accent); font: 23px 'Fraunces',serif; }
.scene-message-lines { margin: 18px 0; display: grid; gap: 7px; }.scene-message-lines i { height: 5px; border-radius: 4px; background: var(--border); }.scene-message-lines i:nth-child(2) { width: 85%; }.scene-message-lines i:nth-child(3) { width: 60%; }
.scene-address { font: 9px monospace; color: var(--accent); background: var(--accent-light); border-radius: 7px; padding: 10px 9px; margin-bottom: 20px; display: flex; justify-content: space-between; }
@keyframes chart-rise { from { scale: 1 .7; } to { scale: 1 1; } }
@keyframes caret-blink { 50% { opacity: 0; } }
@keyframes medal-float { 0%,100% { transform: rotateY(-15deg) rotateZ(-5deg); } 50% { transform: rotateY(20deg) rotateZ(5deg) translateY(-4px); } }
@keyframes envelope-float { 0%,100% { transform: rotateY(-15deg) translateY(0); } 50% { transform: rotateY(15deg) translateY(-6px); } }
@keyframes envelope-open { 0%,100% { transform: rotateX(0deg); } 50% { transform: rotateX(150deg); } }
html.motion-paused :is(.scene-chart i,.scene-caret,.scene-medallion,.scene-envelope,.scene-envelope > div), html.motion-paused .scene-journey > div::before { animation-play-state: paused !important; }
@media (min-width: 701px) and (max-width: 1100px) { .dimensional-header { gap: 15px; min-height: 510px; }.page-universe { height: 510px; }.page-universe .scene-assembly { scale: .78; }.page-universe .scene-caption { font-size: 7px; letter-spacing: .8px; }.page-universe .chip-ai { bottom: 0; }.page-universe .scene-grid { bottom: -40px; } }
@media (max-width: 700px) { .dimensional-header { grid-template-columns: 1fr; gap: 12px; margin-bottom: 55px; }.page-universe { width: min(100%,500px); margin: 0 auto; height: 540px; }.page-universe .scene-assembly { scale: .88; }.page-universe .scene-caption { font-size: 8px; }.page-universe .chip-kotlin { left: -15px; }.page-universe .chip-ai { bottom: 30px; } }
@media (max-width: 420px) { .page-universe { height: 480px; }.page-universe .scene-assembly { scale: .72; transform-origin: 50% 25%; }.page-universe .chip-ai { bottom: -15px; }.page-universe .chip-web { right: -45px; }.page-universe .chip-kotlin { left: -30px; }.page-universe .scene-caption { font-size: 7px; letter-spacing: .7px; } }
.page-universe { overflow: clip; }
.page-universe .scene-caption { bottom: 0; }

/* A single sun/moon switch stays in the top navigation on every screen. */
.nav-actions { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.theme-toggle { position: relative; display: inline-flex; align-items: center; justify-content: space-between; flex-shrink: 0; width: 66px; height: 36px; padding: 4px; border: 1px solid var(--card-edge); border-radius: 100px; background: var(--accent-light); color: var(--muted); cursor: pointer; box-shadow: inset 0 2px 5px var(--depth-shadow); transition: background .3s, border-color .3s, box-shadow .3s; }
.theme-toggle::before { content: ''; position: absolute; top: 3px; left: 3px; width: 28px; height: 28px; border-radius: 50%; background: var(--surface); box-shadow: 0 2px 6px var(--depth-shadow); transition: transform .35s cubic-bezier(.2,.8,.2,1),background .3s; }
.theme-icon { position: relative; z-index: 1; width: 26px; height: 26px; display: grid; place-items: center; transition: color .3s,transform .35s; }.theme-icon svg { width: 17px; height: 17px; }
.theme-sun { color: #a66b12; }.theme-moon { color: var(--muted); }
html[data-theme="dark"] .theme-toggle::before { transform: translateX(30px); background: #34466f; }
html[data-theme="dark"] .theme-sun { color: var(--muted); }
html[data-theme="dark"] .theme-moon { color: #e6edff; transform: rotate(-12deg); }
.theme-toggle:hover { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light); }
.theme-toggle:active::before { scale: .9; }
@media (max-width: 900px) { .nav-links { display: none; }.nav-hamburger { display: flex; }.nav-actions { margin-left: auto; } }
@media (max-width: 420px) { .nav-actions { gap: 14px; }.theme-toggle { width: 62px; height: 34px; }.theme-toggle::before { width: 26px; height: 26px; }.theme-icon { width: 24px; height: 24px; }html[data-theme="dark"] .theme-toggle::before { transform: translateX(28px); } }
