[data-theme="playful"] {
  --page: #fff6e8;
  --surface: #fffdf7;
  --surface-soft: #eee7ff;
  --ink: #29244f;
  --muted: #716b87;
  --line: rgba(41, 36, 79, 0.15);
  --line-strong: rgba(41, 36, 79, 0.4);
  --accent: #5146e5;
  --accent-ink: #ffffff;
  --orange: #ff7657;
  --yellow: #f6ce46;
  --mint: #6cf5bd;
  --success: #2f8f63;
  --font-display: var(--font-sans);
  --radius: 22px;
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  color-scheme: light;
}

[data-theme="playful"] body {
  background: radial-gradient(circle at 90% 4%, rgba(246, 206, 70, 0.22), transparent 24%), var(--page);
}

[data-theme="playful"] ::selection { background: var(--orange); color: #fff; }
[data-theme="playful"] :focus-visible { outline-color: var(--accent); }

.scroll-progress { position: fixed; top: 0; right: 0; left: 0; z-index: 1000; height: 3px; background: transparent; pointer-events: none; }
.scroll-progress span { display: block; width: 100%; height: 100%; background: linear-gradient(90deg, var(--orange), var(--accent), var(--mint)); transform: scaleX(0); transform-origin: left; will-change: transform; }
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; z-index: 999; pointer-events: none; opacity: 0; }
.cursor-dot { width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: var(--orange); }
.cursor-ring { width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 1px solid rgba(255, 118, 87, 0.7); border-radius: 50%; transition: width 180ms ease, height 180ms ease, margin 180ms ease, background 180ms ease; }
.cursor-ring.is-active { width: 54px; height: 54px; margin: -27px 0 0 -27px; background: rgba(255, 118, 87, 0.1); }
body.cursor-ready .cursor-dot, body.cursor-ready .cursor-ring { opacity: 1; }

.orange-pop-layer { position: fixed; inset: 0; z-index: 1200; overflow: hidden; pointer-events: none; }
.orange-pop { position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; border: 2px solid var(--ink); border-radius: 50%; background: radial-gradient(circle at 32% 28%, #ffb08f 0 10%, var(--orange) 11% 62%, #e95f43 100%); box-shadow: 0 9px 20px rgba(159, 55, 37, 0.22); animation: orange-pop 720ms var(--spring) both; }
.orange-pop::before { content: ""; position: absolute; top: -8px; left: 21px; z-index: 2; width: 17px; height: 10px; border: 1.5px solid var(--ink); border-radius: 100% 0 100% 0; background: var(--mint); transform: rotate(-18deg); }
.orange-pop::after { content: ""; position: absolute; top: 24px; left: 13px; z-index: 2; width: 14px; height: 8px; border-bottom: 2px solid var(--ink); border-radius: 0 0 50% 50%; }
.orange-pop > i { position: absolute; top: 15px; left: 10px; z-index: 2; width: 4px; height: 6px; border-radius: 50%; background: var(--ink); transform-origin: center; animation: orange-blink 720ms ease both; }
.orange-pop > i:nth-child(2) { left: auto; right: 10px; }
.orange-pop > b { position: absolute; top: 50%; left: 50%; width: 7px; height: 7px; background: var(--yellow); clip-path: polygon(50% 0, 61% 35%, 100% 50%, 61% 64%, 50% 100%, 38% 64%, 0 50%, 38% 35%); animation: orange-spark 620ms var(--ease) both; }
@keyframes orange-pop {
  0% { opacity: 0; transform: translateY(8px) scale(0.2) rotate(-18deg); }
  28% { opacity: 1; transform: translateY(-5px) scale(1.14) rotate(8deg); }
  48% { transform: translateY(1px) scale(0.92, 1.04) rotate(-4deg); }
  68% { opacity: 1; transform: translateY(-9px) scale(1.04) rotate(3deg); }
  100% { opacity: 0; transform: translateY(-26px) scale(0.72) rotate(-8deg); }
}
@keyframes orange-blink { 0%, 34%, 100% { transform: scaleY(1); } 44% { transform: scaleY(0.12); } }
@keyframes orange-spark { 0% { opacity: 0; transform: translate(-50%, -50%) scale(0); } 24% { opacity: 1; } 100% { opacity: 0; transform: translate(calc(-50% + var(--sx)), calc(-50% + var(--sy))) scale(0.2); } }

.ripple-target { position: relative; isolation: isolate; overflow: hidden; }
.tap-ripple { position: absolute; z-index: 0; border-radius: 50%; background: rgba(255, 118, 87, 0.28); transform: translate(-50%, -50%) scale(0); pointer-events: none; animation: tap-ripple 640ms var(--ease) both; }
.touch-target { -webkit-tap-highlight-color: transparent; }
.touch-target.is-pressed { transform: scale(0.975) !important; transition-duration: 110ms !important; }
@keyframes tap-ripple { to { opacity: 0; transform: translate(-50%, -50%) scale(1); } }

[data-theme="playful"] .site-header { border-bottom-color: transparent; background: color-mix(in srgb, var(--page) 86%, transparent); }
[data-theme="playful"] .brand-mark--playful { position: relative; display: grid; width: 40px; height: 40px; place-items: center; overflow: hidden; border-radius: 50%; background: var(--accent); }
[data-theme="playful"] .brand-mark--playful i { width: 22px; height: 22px; border-radius: 50%; background: var(--orange); box-shadow: 9px -7px 0 -6px var(--yellow); }
[data-theme="playful"] .brand-name { font-size: 18px; font-weight: 800; letter-spacing: -0.04em; }
[data-theme="playful"] .brand-descriptor { font-size: 9px; }
[data-theme="playful"] .nav { margin-right: 28px; }
[data-theme="playful"] .nav-list { gap: 24px; }
[data-theme="playful"] .nav-list a { font-size: 12px; font-weight: 550; }
[data-theme="playful"] .github-link { display: inline-flex; align-items: center; gap: 9px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; font-family: var(--font-mono); font-size: 10px; transition: background 180ms ease, color 180ms ease, transform 180ms var(--ease); }
[data-theme="playful"] .github-link:hover { background: var(--ink); color: var(--page); transform: translateY(-2px); }
[data-theme="playful"] .menu-toggle { border-color: transparent; border-radius: 50%; background: rgba(41, 36, 79, 0.06); }
[data-theme="playful"] .nav { background: color-mix(in srgb, var(--page) 96%, transparent); }

[data-theme="playful"] .hero { position: relative; grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr); min-height: 760px; gap: clamp(44px, 6vw, 90px); padding-block: clamp(74px, 8vw, 116px); }
[data-theme="playful"] .hero-title { font-size: clamp(62px, 6.8vw, 102px); font-weight: 800; letter-spacing: -0.075em; line-height: 0.94; }
.hero-line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero-line:nth-child(1) { --line-delay: 120ms; }
.hero-line:nth-child(2) { --line-delay: 230ms; }
.hero-line:nth-child(3) { --line-delay: 340ms; }
.hero-line > span { display: block; animation: hero-line-in 900ms var(--spring) var(--line-delay, 0ms) both; }
.hero-line > .hero-title-accent { display: inline-flex; align-items: center; gap: 20px; width: max-content; }
[data-theme="playful"] .hero-title em { position: relative; isolation: isolate; color: var(--orange); font-style: normal; }
[data-theme="playful"] .hero-title em::after { content: ""; position: absolute; right: 0; bottom: 0.04em; left: 0; z-index: -1; height: 0.09em; border-radius: 999px; background: var(--yellow); transform: scaleX(0); transform-origin: left; animation: hero-underline 900ms var(--ease) 950ms forwards; }
.hero-title-spark { position: relative; width: 30px; height: 30px; background: var(--accent); clip-path: polygon(50% 0, 61% 35%, 100% 50%, 61% 64%, 50% 100%, 38% 64%, 0 50%, 38% 35%); animation: hero-spark 4.8s ease-in-out 1.1s infinite; }
[data-theme="playful"] .hero-eyebrow { color: var(--accent); animation: hero-fade-up 700ms var(--ease) 60ms both; }
[data-theme="playful"] .status-dot { background: var(--orange); box-shadow: 0 0 0 4px rgba(255, 118, 87, 0.14); animation: status-pulse 2.4s ease-out 1s infinite; }
[data-theme="playful"] .hero-lede { max-width: 570px; animation: hero-fade-up 750ms var(--ease) 480ms both; }
[data-theme="playful"] .hero-actions { animation: hero-fade-up 800ms var(--spring) 590ms both; }
[data-theme="playful"] .button { box-shadow: 0 7px 0 rgba(41, 36, 79, 0.14); }
[data-theme="playful"] .button:hover { box-shadow: 0 10px 0 rgba(41, 36, 79, 0.12); }
[data-theme="playful"] .button--primary > span { animation: hero-arrow-nudge 2.8s ease-in-out 1.8s infinite; }
[data-theme="playful"] .hero-footnote { display: inline-flex; padding: 9px 14px; border-radius: 999px; background: rgba(246, 206, 70, 0.32); color: var(--ink); font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.04em; animation: hero-fade-up 800ms var(--ease) 700ms both; }
[data-theme="playful"] .hero-footnote > span { color: var(--accent); font-size: 15px; }
.scroll-cue { display: inline-flex; align-items: center; gap: 14px; margin-top: 30px; color: var(--muted); font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.12em; animation: hero-fade-up 800ms var(--ease) 820ms both; }
.scroll-cue i { position: relative; display: block; width: 18px; height: 30px; border: 1px solid var(--line-strong); border-radius: 999px; }
.scroll-cue i::after { content: ""; position: absolute; top: 7px; left: 50%; width: 3px; height: 6px; border-radius: 999px; background: var(--orange); transform: translateX(-50%); animation: scroll-cue-dot 1.8s ease-in-out 1.2s infinite; }
@keyframes hero-line-in { from { opacity: 0; transform: translateY(115%) rotate(2deg); } to { opacity: 1; transform: translateY(0) rotate(0); } }
@keyframes hero-fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes hero-underline { to { transform: scaleX(1); } }
@keyframes hero-spark { 0%, 100% { transform: rotate(0) scale(0.85); } 50% { transform: rotate(45deg) scale(1.12); } }
@keyframes status-pulse { 0% { box-shadow: 0 0 0 4px rgba(255, 118, 87, 0.14); } 70%, 100% { box-shadow: 0 0 0 11px rgba(255, 118, 87, 0); } }
@keyframes hero-arrow-nudge { 0%, 65%, 100% { translate: 0 0; } 78% { translate: 4px -2px; } 90% { translate: 0 0; } }
@keyframes scroll-cue-dot { 0% { opacity: 0; transform: translate(-50%, 0); } 25% { opacity: 1; } 75% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 10px); } }
[data-theme="playful"] .hero-visual { position: relative; min-height: 520px; overflow: hidden; border: 1px solid rgba(81, 70, 229, 0.12); border-radius: 46% 46% 28px 28px; background: #e9e2ff; isolation: isolate; touch-action: pan-y; animation: hero-visual-in 1.1s var(--spring) 120ms both; }
[data-theme="playful"] .hero-visual::before { content: ""; position: absolute; top: 60px; left: 50px; z-index: 1; width: 190px; height: 190px; border-radius: 50%; background: rgba(255, 255, 255, 0.32); filter: blur(42px); pointer-events: none; animation: hero-glow-drift 11s ease-in-out infinite alternate; }
[data-theme="playful"] #ocean-canvas { position: absolute; inset: 0; width: 100%; height: 100%; animation: hero-fade-in 1.2s ease 260ms both; }
[data-theme="playful"] .hero-visual-top { position: absolute; top: 42px; right: 38px; left: 38px; z-index: 2; display: flex; justify-content: space-between; color: rgba(41, 36, 79, 0.62); font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.1em; line-height: 1.7; animation: hero-fade-in 1s ease 700ms both; }
[data-theme="playful"] .hero-visual-top span:last-child { text-align: right; }
[data-theme="playful"] .hero-carousel { position: absolute; top: 142px; right: 28px; left: 28px; z-index: 4; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.72); border-radius: 25px; background: linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.3)); box-shadow: 0 26px 60px rgba(41, 36, 79, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.8); backdrop-filter: blur(22px) saturate(140%); -webkit-backdrop-filter: blur(22px) saturate(140%); transform: rotate(-2deg); animation: hero-carousel-in 1s var(--spring) 420ms both; }
[data-theme="playful"] .hero-carousel::after { content: ""; position: absolute; inset: 0; z-index: 6; border-radius: inherit; background: linear-gradient(115deg, rgba(255, 255, 255, 0.24), transparent 34%, transparent 72%, rgba(255, 255, 255, 0.1)); pointer-events: none; }
.hero-carousel-progress { position: absolute; top: 0; right: 0; left: 0; z-index: 7; height: 3px; background: rgba(81, 70, 229, 0.09); }
.hero-carousel-progress span { display: block; width: 100%; height: 100%; background: linear-gradient(90deg, var(--orange), var(--accent), var(--mint)); transform: scaleX(0); transform-origin: left; }
.hero-carousel-viewport { position: relative; height: 260px; overflow: hidden; touch-action: pan-y; }
.carousel-slide { position: absolute; inset: 0; padding: 23px 25px 20px; opacity: 0; visibility: hidden; pointer-events: none; transform: translateX(24px) scale(0.985); transition: opacity 420ms var(--ease), transform 620ms var(--spring), visibility 0s linear 620ms; }
.carousel-slide.is-active { z-index: 1; opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(0) scale(1); transition-delay: 0s; }
.carousel-slide-inner { position: relative; height: 100%; }
.carousel-slide-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.1em; }
.carousel-slide-heading span:last-child { color: var(--slide-accent); }
.carousel-slide.is-active .carousel-slide-heading { animation: carousel-content-in 520ms var(--ease) 80ms both; }
.carousel-slide.is-active .carousel-slide-copy { animation: carousel-content-in 620ms var(--ease) 150ms both; }
.carousel-slide.is-active .carousel-project-link { animation: carousel-content-in 620ms var(--ease) 220ms both; }
.carousel-slide-copy { position: relative; margin-top: 23px; }
.carousel-slide-copy h2 { max-width: calc(100% - 92px); font-size: 34px; font-weight: 780; letter-spacing: -0.055em; line-height: 1.05; }
.carousel-slide-copy p { max-width: calc(100% - 82px); margin-top: 10px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.carousel-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 13px; }
.carousel-tags span { padding: 4px 8px; border: 1px solid rgba(41, 36, 79, 0.09); border-radius: 999px; background: rgba(255, 255, 255, 0.32); color: var(--muted); font-family: var(--font-mono); font-size: 7px; }
.carousel-project-link { display: inline-flex; align-items: center; gap: 12px; margin-top: 17px; padding: 4px 0; border: 0; border-bottom: 1px solid var(--line-strong); background: transparent; color: var(--ink); font-size: 11px; font-weight: 650; }
.carousel-project-link span { color: var(--slide-accent); font-size: 15px; transition: transform 200ms var(--ease); }
.carousel-project-link:hover span { transform: translate(3px, -3px); }
.carousel-art { position: absolute; top: 53px; right: 23px; width: 76px; height: 76px; border: 1px solid rgba(255, 255, 255, 0.72); border-radius: 20px; background: var(--slide-soft); box-shadow: 0 12px 25px rgba(41, 36, 79, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.8); transform: rotate(7deg); }
.carousel-art i { position: absolute; display: block; }
.carousel-art--orange i { top: 16px; left: 12px; width: 38px; height: 45px; border: 1px solid rgba(41, 36, 79, 0.12); border-radius: 8px; background: rgba(255, 255, 255, 0.76); box-shadow: 4px 6px 12px rgba(41, 36, 79, 0.08); transform: rotate(-13deg); }
.carousel-art--orange i:nth-child(2) { top: 13px; left: 21px; background: rgba(255, 253, 247, 0.9); transform: rotate(-2deg); }
.carousel-art--orange i:nth-child(3) { top: 10px; left: 30px; background: var(--slide-accent); transform: rotate(10deg); }
.carousel-art--tide i:first-child { inset: 17px; border-radius: 50%; background: var(--slide-accent); box-shadow: 0 8px 18px rgba(81, 70, 229, 0.22); }
.carousel-art--tide i:nth-child(2) { inset: 10px; border: 1px solid rgba(81, 70, 229, 0.28); border-radius: 50%; }
.carousel-art--tide i:nth-child(3) { bottom: 13px; left: 27px; width: 22px; height: 4px; border-radius: 999px; background: var(--orange); }
.carousel-art--planet i { inset: 13px 7px; border: 1px solid rgba(41, 36, 79, 0.3); border-radius: 50%; transform: rotate(-25deg); }
.carousel-art--planet i:nth-child(2) { border-color: var(--slide-accent); transform: rotate(38deg); }
.carousel-art--planet i:nth-child(3) { inset: 26px; border: 0; background: radial-gradient(circle at 30% 25%, #ffd0bd, var(--orange) 58%, #d85640); box-shadow: 0 5px 12px rgba(255, 118, 87, 0.26); transform: none; }
.hero-carousel-footer { position: relative; z-index: 7; display: flex; align-items: center; gap: 10px; min-height: 53px; padding: 7px 13px; border-top: 1px solid rgba(255, 255, 255, 0.55); background: rgba(255, 255, 255, 0.16); }
.hero-carousel-nav { display: flex; gap: 6px; }
.carousel-control { display: grid; width: 36px; height: 36px; padding: 0; place-items: center; border: 1px solid rgba(41, 36, 79, 0.12); border-radius: 50%; background: rgba(255, 255, 255, 0.4); color: var(--ink); font-family: var(--font-mono); font-size: 14px; line-height: 1; transition: background 180ms ease, transform 220ms var(--spring), box-shadow 180ms ease; }
.carousel-control:hover { background: rgba(255, 255, 255, 0.82); box-shadow: 0 5px 12px rgba(41, 36, 79, 0.1); transform: translateY(-2px); }
.carousel-control:active { transform: scale(0.92); }
.carousel-control:focus-visible, .carousel-dot:focus-visible, .carousel-project-link:focus-visible { outline-offset: 2px; }
.carousel-control:disabled { opacity: 0.42; cursor: default; transform: none; box-shadow: none; }
.hero-carousel-dots { display: flex; flex: 1; align-items: center; justify-content: center; gap: 1px; }
.carousel-dot { position: relative; width: 27px; height: 34px; padding: 0; border: 0; background: transparent; }
.carousel-dot::after { content: ""; position: absolute; top: 50%; left: 50%; width: 6px; height: 6px; border-radius: 999px; background: rgba(41, 36, 79, 0.24); transform: translate(-50%, -50%); transition: width 260ms var(--spring), background 180ms ease; }
.carousel-dot.is-active::after { width: 19px; background: var(--accent); }
.carousel-icon-play { display: none; font-size: 10px; }
.carousel-playback[data-paused="true"] .carousel-icon-pause { display: none; }
.carousel-playback[data-paused="true"] .carousel-icon-play { display: inline; }
.hero-carousel.is-dragging .carousel-slide.is-active { transform: translateX(var(--drag-x, 0px)) scale(1); transition: none; }
[data-theme="playful"] .hero-sticker { position: absolute; top: 98px; right: 30px; z-index: 3; display: grid; width: 105px; height: 105px; place-items: center; border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 50%; background: var(--yellow); color: var(--ink); font-family: var(--font-mono); font-size: 10px; font-weight: 700; line-height: 1.35; text-align: center; transform: rotate(10deg); box-shadow: 0 12px 24px rgba(41, 36, 79, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.55); animation: hero-sticker-sway 6.8s ease-in-out 1.4s infinite; }
[data-theme="playful"] .hero-float { position: absolute; z-index: 2; border-radius: 50%; }
[data-theme="playful"] .hero-float--one { top: 110px; right: 55px; width: 92px; height: 92px; background: var(--orange); box-shadow: 0 16px 30px rgba(255, 118, 87, 0.2); animation: hero-float-loop 7s ease-in-out -1s infinite; }
[data-theme="playful"] .hero-float--two { right: 90px; bottom: 180px; width: 70px; height: 70px; border: 15px solid var(--accent); animation: hero-orbit-loop 9s ease-in-out -2s infinite; }
.hero-bubble { position: absolute; bottom: -20px; z-index: 2; width: 12px; height: 12px; border: 1px solid rgba(255, 255, 255, 0.72); border-radius: 50%; pointer-events: none; animation: hero-bubble-rise 7s linear infinite; }
.hero-bubble--one { left: 18%; width: 10px; height: 10px; animation-delay: -1s; }
.hero-bubble--two { left: 52%; width: 16px; height: 16px; animation-delay: -4s; animation-duration: 8.5s; }
.hero-bubble--three { left: 78%; width: 8px; height: 8px; animation-delay: -6s; animation-duration: 6.5s; }
[data-theme="playful"] .hero-visual-caption { position: absolute; right: 30px; bottom: 25px; z-index: 2; color: rgba(41, 36, 79, 0.55); font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.1em; animation: hero-fade-in 1s ease 900ms both; }
[data-theme="playful"] .hero-carousel { translate: var(--pointer-x-soft, 0px) calc(var(--hero-parallax, 0px) + var(--pointer-y-soft, 0px)); }
[data-theme="playful"] .hero-sticker,
[data-theme="playful"] .hero-float { translate: var(--pointer-x, 0px) calc(var(--hero-parallax, 0px) + var(--pointer-y, 0px)); }
@keyframes hero-visual-in { from { opacity: 0; transform: translateY(34px) scale(0.94) rotate(-2deg); } to { opacity: 1; transform: translateY(0) scale(1) rotate(0); } }
@keyframes hero-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes hero-glow-drift { from { transform: translate3d(-20px, 0, 0) scale(0.9); } to { transform: translate3d(70px, 40px, 0) scale(1.15); } }
@keyframes hero-carousel-in { from { opacity: 0; transform: translateY(28px) rotate(0deg) scale(0.96); } to { opacity: 1; transform: translateY(0) rotate(-2deg) scale(1); } }
@keyframes carousel-content-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes hero-sticker-sway { 0%, 100% { transform: translateY(0) rotate(10deg) scale(1); } 50% { transform: translateY(-7px) rotate(6deg) scale(1.05); } }
@keyframes hero-float-loop { 0%, 100% { transform: translate3d(0, 0, 0) rotate(0); } 50% { transform: translate3d(12px, -18px, 0) rotate(8deg); } }
@keyframes hero-orbit-loop { 0%, 100% { transform: translate3d(-8px, 8px, 0) rotate(0); } 50% { transform: translate3d(14px, -12px, 0) rotate(45deg); } }
@keyframes hero-bubble-rise { 0% { opacity: 0; transform: translateY(30px) scale(0.6); } 15% { opacity: 0.72; } 85% { opacity: 0.38; } 100% { opacity: 0; transform: translateY(-470px) scale(1.15); } }

.marquee { overflow: hidden; border-block: 1px solid var(--line); background: rgba(255, 253, 247, 0.55); }
.marquee-track { display: flex; align-items: center; width: max-content; padding-block: 16px; animation: marquee 28s linear infinite; }
.marquee-track span { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.11em; white-space: nowrap; }
.marquee-track i { margin-inline: 28px; color: var(--orange); font-size: 16px; font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

.section-block { padding-block: clamp(76px, 9vw, 120px); }
[data-theme="playful"] .section-heading h2 { font-size: clamp(38px, 4.6vw, 62px); font-weight: 750; letter-spacing: -0.06em; }
[data-theme="playful"] .section-kicker { color: var(--accent); }

.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.project-card { overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); transform-style: preserve-3d; transition: transform 260ms var(--ease), box-shadow 260ms var(--ease); }
.project-card:hover { box-shadow: 0 22px 46px rgba(41, 36, 79, 0.12); }
.project-cover { position: relative; height: 260px; overflow: hidden; border-bottom: 1px solid var(--line); }
.cover-label { position: absolute; bottom: 18px; left: 20px; z-index: 4; padding: 6px 9px; border-radius: 999px; background: rgba(255, 253, 247, 0.82); color: var(--ink); font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.08em; backdrop-filter: blur(6px); }
.project-cover--orange { display: grid; place-items: center; background: #e9e2ff; }
.mock-window { width: 76%; overflow: hidden; border: 1px solid rgba(41, 36, 79, 0.18); border-radius: 13px; background: #fffdf7; box-shadow: 12px 15px 0 rgba(81, 70, 229, 0.13); transform: rotate(-4deg); transition: transform 400ms var(--ease); }
.project-card:hover .mock-window { transform: rotate(0) translateY(-5px); }
.mock-bar { display: flex; gap: 5px; padding: 10px; border-bottom: 1px solid var(--line); }
.mock-bar span { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.mock-bar span:nth-child(2) { background: var(--yellow); }
.mock-bar span:nth-child(3) { background: var(--mint); }
.mock-body { display: grid; grid-template-columns: 42px 1fr; min-height: 140px; }
.mock-sidebar { padding: 16px 11px; border-right: 1px solid var(--line); }
.mock-sidebar i { display: block; width: 20px; height: 5px; margin-bottom: 12px; border-radius: 4px; background: rgba(81, 70, 229, 0.18); }
.mock-content { padding: 20px; }
.mock-content b { display: block; width: 56%; height: 10px; border-radius: 5px; background: var(--accent); }
.mock-content > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
.mock-content i { height: 48px; border-radius: 8px; background: #f0ecff; }
.mock-content i:nth-child(2) { background: #ffe1d7; }
.mock-content i:nth-child(3) { background: #fff0b8; }
.project-cover--tide { background: #ffd9c9; }
.tide-clock { position: absolute; top: 32px; left: 50%; z-index: 3; display: flex; align-items: center; flex-direction: column; width: 160px; padding: 20px; border: 1px solid rgba(41, 36, 79, 0.14); border-radius: 18px; background: rgba(255, 253, 247, 0.86); box-shadow: 8px 10px 0 rgba(41, 36, 79, 0.09); transform: translateX(-50%) rotate(3deg); backdrop-filter: blur(6px); }
.tide-clock span { color: var(--muted); font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.1em; }
.tide-clock strong { margin-top: 8px; font-size: 34px; letter-spacing: -0.06em; }
.tide-clock i { width: 46px; height: 5px; margin-top: 12px; border-radius: 999px; background: var(--orange); }
.tide-wave { position: absolute; right: -20%; left: -20%; height: 120px; border-radius: 50%; }
.tide-wave--one { bottom: -58px; background: var(--accent); transform: rotate(-6deg); }
.tide-wave--two { bottom: -78px; background: #7b6df0; transform: rotate(5deg); }
.project-cover--planet { display: grid; place-items: center; background: #201b3d; }
.planet-core { width: 78px; height: 78px; border-radius: 50%; background: radial-gradient(circle at 30% 25%, #ffb199, var(--orange) 42%, #c84d3b); box-shadow: 0 0 50px rgba(255, 118, 87, 0.3); }
.planet-orbit { position: absolute; width: 210px; height: 100px; border: 1px solid rgba(255, 255, 255, 0.26); border-radius: 50%; transform: rotate(-18deg); }
.planet-orbit--two { width: 250px; height: 135px; transform: rotate(28deg); }
.planet-orbit i { position: absolute; top: 8px; left: 32px; width: 14px; height: 14px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 16px rgba(108, 245, 189, 0.6); }
.planet-orbit--two i { top: auto; right: 22px; bottom: 12px; left: auto; background: var(--yellow); }
.project-cover--planet .cover-label { background: rgba(255, 255, 255, 0.12); color: #fff; }
.project-info { padding: 26px; }
.project-meta { display: flex; justify-content: space-between; color: var(--muted); font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.08em; }
.project-info h3 { margin-top: 12px; font-size: 28px; letter-spacing: -0.05em; }
.project-info > p { min-height: 66px; margin-top: 10px; color: var(--muted); font-size: 13px; }
.project-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.project-tags span { padding: 5px 9px; border-radius: 999px; background: rgba(81, 70, 229, 0.07); color: var(--accent); font-family: var(--font-mono); font-size: 8px; }
.project-link { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: 24px; padding: 14px 0 0; border: 0; border-top: 1px solid var(--line); background: transparent; font-size: 12px; font-weight: 650; text-align: left; }
.project-link span { transition: transform 200ms var(--ease); }
.project-link:hover span { transform: translate(3px, -3px); }

[data-theme="playful"] .agents-section { border-top: 1px solid var(--line); }
.agent-feature { display: grid; grid-template-columns: minmax(0, 0.86fr) minmax(480px, 1.14fr); min-height: 410px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 30px; background: #211b3f; color: #fff8ec; box-shadow: 0 26px 64px rgba(33, 27, 63, 0.2); }
.agent-feature-copy { display: flex; align-items: flex-start; justify-content: center; flex-direction: column; padding: clamp(34px, 4.5vw, 58px); }
.agent-feature-copy .section-kicker { color: var(--mint); }
.agent-feature-copy h3 { margin-top: 18px; font-size: clamp(34px, 3.5vw, 50px); font-weight: 760; letter-spacing: -0.06em; line-height: 1.12; }
.agent-feature-copy > p:not(.section-kicker) { max-width: 470px; margin-top: 20px; color: rgba(255, 248, 236, 0.64); font-size: 13px; line-height: 1.85; }
.agent-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 24px; }
.agent-tags span { padding: 5px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--accent); font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.02em; }
.agent-feature .agent-tags span { border-color: rgba(255, 255, 255, 0.14); color: rgba(255, 248, 236, 0.72); }
.agent-flow { position: relative; display: flex; justify-content: space-between; flex-direction: column; min-width: 0; padding: 34px clamp(26px, 3.5vw, 48px); border-left: 1px solid rgba(255, 255, 255, 0.1); background: radial-gradient(circle at 70% 24%, rgba(81, 70, 229, 0.34), transparent 42%), linear-gradient(145deg, rgba(255, 255, 255, 0.04), transparent 58%); }
.agent-flow-top, .agent-flow-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; color: rgba(255, 248, 236, 0.42); font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.1em; }
.agent-flow-top > span:last-child { display: inline-flex; align-items: center; gap: 7px; color: var(--mint); }
.agent-flow-top i { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(108, 245, 189, 0.1); }
.agent-flow-track { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-block: 54px; }
.agent-flow-line { position: absolute; top: 25px; right: 9%; left: 9%; height: 1px; background: linear-gradient(90deg, rgba(108, 245, 189, 0.18), rgba(108, 245, 189, 0.7), rgba(255, 118, 87, 0.2)); }
.agent-flow-node { position: relative; z-index: 1; display: flex; align-items: center; flex-direction: column; min-width: 0; text-align: center; }
.agent-flow-node > span { display: grid; width: 50px; height: 50px; place-items: center; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 16px; background: #2b2450; color: rgba(255, 248, 236, 0.56); font-family: var(--font-mono); font-size: 10px; box-shadow: 0 10px 24px rgba(12, 8, 30, 0.2); }
.agent-flow-node strong { margin-top: 14px; font-size: 13px; font-weight: 650; }
.agent-flow-node small { margin-top: 3px; color: rgba(255, 248, 236, 0.38); font-family: var(--font-mono); font-size: 7px; letter-spacing: 0.06em; }
.agent-flow-node.is-current > span { border-color: var(--orange); background: var(--orange); color: #211b3f; box-shadow: 0 0 0 7px rgba(255, 118, 87, 0.1), 0 14px 28px rgba(12, 8, 30, 0.24); }
.agent-flow-node[data-step="5"] > span { border-color: rgba(108, 245, 189, 0.4); color: var(--mint); }
.agent-flow-footer > span:last-child { color: var(--yellow); }
.agent-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.agent-card { position: relative; min-height: 320px; padding: 30px; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); transform-style: preserve-3d; transition: transform 260ms var(--ease), box-shadow 260ms var(--ease), border-color 200ms ease; }
.agent-card:hover { border-color: rgba(81, 70, 229, 0.32); box-shadow: 0 22px 46px rgba(41, 36, 79, 0.1); }
.agent-card-index { position: absolute; top: 24px; right: 26px; color: rgba(41, 36, 79, 0.28); font-family: var(--font-mono); font-size: 9px; }
.agent-card-icon { position: relative; width: 66px; height: 66px; margin-bottom: 28px; border: 1px solid rgba(81, 70, 229, 0.12); border-radius: 19px; background: #eee7ff; }
.agent-card-icon i { position: absolute; display: block; }
.agent-card-icon--flow::before { content: ""; position: absolute; top: 32px; right: 13px; left: 13px; height: 1px; background: rgba(81, 70, 229, 0.35); }
.agent-card-icon--flow i { top: 26px; width: 13px; height: 13px; border: 3px solid #eee7ff; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1px rgba(81, 70, 229, 0.28); }
.agent-card-icon--flow i:first-child { left: 10px; }
.agent-card-icon--flow i:nth-child(2) { left: 27px; background: var(--orange); }
.agent-card-icon--flow i:nth-child(3) { right: 10px; background: var(--mint); }
.agent-card-icon--skill { background: #ffe3d8; }
.agent-card-icon--skill i { width: 24px; height: 24px; border: 1px solid rgba(41, 36, 79, 0.14); border-radius: 7px; background: rgba(255, 253, 247, 0.82); }
.agent-card-icon--skill i:first-child { top: 12px; left: 12px; transform: rotate(-7deg); }
.agent-card-icon--skill i:nth-child(2) { top: 20px; right: 10px; background: var(--orange); transform: rotate(8deg); }
.agent-card-icon--skill i:nth-child(3) { bottom: 9px; left: 20px; width: 20px; height: 20px; background: var(--yellow); transform: rotate(-3deg); }
.agent-card-icon--eval { display: flex; align-items: flex-end; justify-content: center; gap: 6px; padding: 14px; background: #d8f9eb; }
.agent-card-icon--eval i { position: static; width: 9px; border-radius: 5px 5px 2px 2px; background: var(--accent); }
.agent-card-icon--eval i:first-child { height: 20px; opacity: 0.45; }
.agent-card-icon--eval i:nth-child(2) { height: 34px; background: var(--orange); }
.agent-card-icon--eval i:nth-child(3) { height: 27px; background: var(--success); }
.agent-card h3 { margin-top: 11px; font-size: 26px; letter-spacing: -0.045em; }
.agent-card > p:not(.section-kicker) { margin-top: 12px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.agent-card .agent-tags { margin-top: 22px; }

.games-section { border-block: 1px solid var(--line); background: radial-gradient(circle at 12% 18%, rgba(255, 118, 87, 0.14), transparent 25%), radial-gradient(circle at 88% 82%, rgba(246, 206, 70, 0.2), transparent 26%), linear-gradient(180deg, var(--page) 0%, #eee7ff 16%, #eee7ff 84%, var(--page) 100%); color: var(--ink); }
.games-section .section-kicker { color: var(--accent); }
.games-section .section-description { color: var(--muted); }
.ridge-feature { position: relative; isolation: isolate; display: grid; align-items: end; min-height: clamp(340px, 38vw, 530px); overflow: hidden; border-radius: 24px; background: #20303a; color: white; }
.ridge-cover { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.ridge-feature::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(9, 21, 29, .85), transparent 76%), linear-gradient(0deg, rgba(9, 21, 29, .62), transparent 62%); }
.ridge-copy { padding: clamp(24px, 5vw, 68px); }
.ridge-copy h2 { font-size: clamp(38px, 5vw, 76px); line-height: 1.08; color: white; }
.ridge-copy p { max-width: 34ch; margin: 14px 0 24px; color: #fff; line-height: 1.65; }
.ridge-play { background: #ffe9bb; color: #202823; border-color: transparent; }
@media (max-width: 600px) {
  .ridge-feature { min-height: 410px; }
  .ridge-feature::before { background: linear-gradient(0deg, rgba(9, 21, 29, .94), rgba(9, 21, 29, .65) 42%, transparent 72%); }
}
.game-feature { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr); overflow: hidden; border: 1px solid var(--line); border-radius: 28px; background: rgba(255, 253, 247, 0.82); box-shadow: 0 24px 60px rgba(81, 70, 229, 0.1); }
.game-art { position: relative; min-height: 420px; overflow: hidden; border-right: 1px solid var(--line); background: linear-gradient(160deg, #5146e5, #34295f); }
.game-art > span { position: absolute; bottom: 22px; left: 24px; color: rgba(255, 255, 255, 0.55); font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.12em; }
.game-sun { position: absolute; top: 52px; right: 60px; width: 120px; height: 120px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 70px rgba(255, 118, 87, 0.25); }
.game-orange { position: absolute; width: 44px; height: 44px; border-radius: 50%; background: var(--orange); box-shadow: inset -8px -8px 0 rgba(159, 55, 37, 0.18); }
.game-orange::before { content: ""; position: absolute; top: -7px; left: 23px; width: 13px; height: 8px; border-radius: 100% 0 100% 0; background: var(--mint); transform: rotate(-18deg); }
.game-orange--one { top: 90px; left: 24%; animation: orange-drop 4.2s ease-in-out infinite; }
.game-orange--two { top: 44px; left: 56%; width: 32px; height: 32px; animation: orange-drop 5.4s ease-in-out infinite reverse; }
.game-basket { position: absolute; bottom: 62px; left: 43%; width: 120px; height: 54px; border: 5px solid #f8f5ff; border-top: 0; border-radius: 0 0 50px 50px; transform: perspective(200px) rotateX(12deg); }
.game-basket::before { content: ""; position: absolute; top: -28px; left: -18px; width: 146px; height: 30px; border: 5px solid #f8f5ff; border-radius: 50%; }
@keyframes orange-drop { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(110px) rotate(25deg); } }
.game-feature-copy { display: flex; align-items: flex-start; justify-content: center; flex-direction: column; padding: clamp(34px, 5vw, 62px); }
.game-feature-copy h3 { margin-top: 14px; font-size: clamp(38px, 4vw, 56px); letter-spacing: -0.06em; }
.game-feature-copy > p:not(.section-kicker) { max-width: 460px; margin-top: 16px; color: var(--muted); font-size: 14px; }
.game-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 24px 30px; }
.game-tags span { padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 253, 247, 0.6); color: var(--muted); font-family: var(--font-mono); font-size: 8px; }
.button--light { border-color: var(--accent); background: var(--accent); color: #fff; box-shadow: 0 7px 0 rgba(81, 70, 229, 0.2); }
.game-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.game-card { position: relative; display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 22px; min-height: 190px; padding: 26px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255, 253, 247, 0.68); }
.game-index { position: absolute; top: 18px; right: 20px; color: rgba(41, 36, 79, 0.28); font-family: var(--font-mono); font-size: 9px; }
.game-card h3 { margin-top: 7px; font-size: 24px; letter-spacing: -0.04em; }
.game-card p:not(.section-kicker) { margin-top: 8px; color: var(--muted); font-size: 12px; }
.status-pill { position: absolute; right: 20px; bottom: 18px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 253, 247, 0.7); color: var(--accent); font-family: var(--font-mono); font-size: 7px; letter-spacing: 0.08em; }
.mini-game-art { position: relative; width: 100px; height: 100px; }
.mini-game-art--memory { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; transform: rotate(-5deg); }
.mini-game-art--memory i { border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 10px; background: rgba(130, 104, 255, 0.22); }
.mini-game-art--memory i:nth-child(2) { background: var(--orange); transform: rotate(8deg); }
.mini-game-art--memory i:nth-child(3) { background: var(--yellow); transform: rotate(-8deg); }
.mini-game-art--loop i { position: absolute; inset: 12px; border: 1px solid var(--mint); border-radius: 50%; transform: rotate(30deg) scaleY(0.45); }
.mini-game-art--loop i:nth-child(2) { transform: rotate(90deg) scaleY(0.45); border-color: var(--orange); }
.mini-game-art--loop i:nth-child(3) { transform: rotate(150deg) scaleY(0.45); border-color: #b9a9ff; }

.open-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(36px, 6vw, 80px); }
.open-column-heading { display: grid; grid-template-columns: 34px 1fr; align-items: end; gap: 4px 12px; padding-bottom: 20px; border-bottom: 2px solid var(--ink); }
.open-column-heading > span { grid-row: 1 / span 2; color: var(--orange); font-family: var(--font-mono); font-size: 11px; }
.open-column-heading h3 { font-size: 27px; letter-spacing: -0.04em; }
.open-column-heading p { color: var(--muted); font-size: 11px; }
.open-item { display: grid; grid-template-columns: 28px minmax(0, 1fr) 24px; align-items: start; gap: 16px; padding-block: 24px; border-bottom: 1px solid var(--line); transition: padding 220ms var(--ease), background 220ms ease; }
.open-item:hover { padding-inline: 12px; background: rgba(255, 253, 247, 0.7); }
.open-number { padding-top: 4px; color: var(--muted); font-family: var(--font-mono); font-size: 9px; }
.open-item h4 { font-size: 20px; letter-spacing: -0.035em; }
.open-item p { margin-top: 6px; color: var(--muted); font-size: 12px; }
.open-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.open-tags span { padding: 4px 8px; border-radius: 999px; background: rgba(81, 70, 229, 0.07); color: var(--accent); font-family: var(--font-mono); font-size: 8px; }
.open-arrow { padding-top: 3px; font-size: 18px; transition: transform 200ms var(--ease); }
.open-item:hover .open-arrow { transform: translate(3px, -3px); }
.open-item--placeholder { cursor: default; }
.open-item--placeholder:hover { padding-inline: 0; background: transparent; }
.open-item--placeholder:hover .open-arrow { transform: none; opacity: 0.35; }
.open-tag--wip { background: rgba(255, 118, 87, 0.14); color: var(--orange); }

[data-theme="playful"] .writing-section { border-top: 1px solid var(--line); }
[data-theme="playful"] .article-filters { gap: 10px; }
[data-theme="playful"] .filter-button { border-color: transparent; background: rgba(41, 36, 79, 0.06); }
[data-theme="playful"] .article-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; border-top: 0; }
[data-theme="playful"] .article-item { display: block; min-height: 250px; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); cursor: pointer; transition: transform 260ms var(--ease), background 220ms ease, border-color 220ms ease; }
[data-theme="playful"] .article-item:hover { border-color: rgba(81, 70, 229, 0.4); background: #f4f0ff; transform: translateY(-4px); }
[data-theme="playful"] .article-item > h3 { max-width: 440px; margin-top: 25px; font-size: 25px; line-height: 1.22; }
[data-theme="playful"] .article-item > p { margin-top: 12px; font-size: 13px; }
[data-theme="playful"] .article-category { display: inline-flex; padding: 6px 10px; border-radius: 999px; background: #eee9ff; color: var(--accent); }
[data-theme="playful"] .article-arrow { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; background: var(--yellow); color: var(--ink); font-size: 14px; }
[data-theme="playful"] .article-item:hover .article-arrow { background: var(--orange); color: #fff; }

[data-theme="playful"] .about-section { border-top: 1px solid var(--line); }
[data-theme="playful"] .about-portrait { overflow: visible; transform-style: preserve-3d; }
[data-theme="playful"] .portrait-frame { border-radius: 46% 54% 45% 55% / 55% 42% 58% 45%; background: #ffd7c9; transform: rotate(-3deg); }
[data-theme="playful"] .portrait-frame > span { color: var(--accent); }
[data-theme="playful"] .portrait-frame > i { border-color: rgba(81, 70, 229, 0.32); }
[data-theme="playful"] .portrait-frame > i::before,
[data-theme="playful"] .portrait-frame > i::after { background: rgba(81, 70, 229, 0.32); }
[data-theme="playful"] .portrait-frame > b { position: absolute; top: 16%; right: 17%; width: 54px; height: 54px; border-radius: 50%; background: var(--orange); box-shadow: 0 12px 24px rgba(255, 118, 87, 0.2); }
[data-theme="playful"] .portrait-badge { position: absolute; right: -18px; bottom: 38px; z-index: 2; padding: 10px 15px; border: 1px solid var(--line); border-radius: 999px; background: var(--yellow); font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.06em; transform: rotate(7deg); }
[data-theme="playful"] .about-copy h2 { font-weight: 750; }
[data-theme="playful"] .about-copy .button { margin-top: 30px; }
[data-theme="playful"] .newsletter-section { background: var(--yellow); }
[data-theme="playful"] .newsletter-section .section-kicker,
[data-theme="playful"] .newsletter-section p:not(.section-kicker):not(.form-status) { color: rgba(41, 36, 79, 0.7); }
[data-theme="playful"] .newsletter-form input { border-color: rgba(41, 36, 79, 0.22); background: rgba(255, 253, 247, 0.7); }
[data-theme="playful"] .form-status { color: #236a4b; }
[data-theme="playful"] .footer-brand { font-weight: 750; }

.modal { width: min(720px, calc(100% - 32px)); max-height: calc(100dvh - 40px); padding: 0; overflow: auto; border: 1px solid var(--line); border-radius: 26px; background: var(--surface); color: var(--ink); box-shadow: 0 30px 90px rgba(25, 18, 55, 0.28); }
.modal::backdrop { background: rgba(25, 18, 55, 0.48); backdrop-filter: blur(9px); }
.modal[open] { animation: modal-in 260ms var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.modal-shell { position: relative; padding: clamp(30px, 5vw, 54px); }
.modal-close { position: absolute; top: 18px; right: 18px; z-index: 5; display: grid; width: 38px; height: 38px; padding: 0; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); font-size: 22px; line-height: 1; transition: background 180ms ease, color 180ms ease, transform 180ms ease; }
.modal-close:hover { background: var(--ink); color: var(--page); transform: rotate(8deg); }
.modal-shell h2 { margin-top: 12px; font-size: clamp(36px, 6vw, 58px); letter-spacing: -0.06em; line-height: 1; }
.modal-lede { margin-top: 20px; color: var(--muted); font-size: 15px; line-height: 1.8; }
.project-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; padding-block: 20px; border-block: 1px solid var(--line); }
.project-facts dt { color: var(--muted); font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.08em; }
.project-facts dd { margin-top: 6px; font-size: 12px; }
.modal-shell h3 { margin-top: 26px; font-size: 18px; }
.project-highlights { display: grid; gap: 9px; margin-top: 14px; }
.project-highlights li { position: relative; padding-left: 18px; color: var(--muted); font-size: 13px; }
.project-highlights li::before { content: ""; position: absolute; top: 0.65em; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.modal-shell > .button { margin-top: 30px; }

.game-modal { width: min(780px, calc(100% - 32px)); background: #fffaf1; }
.game-shell { position: relative; padding: clamp(24px, 4vw, 40px); }
.game-modal-heading { padding-right: 50px; }
.game-modal-heading h2 { margin-top: 8px; font-size: clamp(32px, 5vw, 48px); letter-spacing: -0.055em; }
.game-modal-heading > p:last-child { margin-top: 8px; color: var(--muted); font-size: 12px; }
.game-hud { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-block: 22px 14px; }
.game-hud > div { padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, 0.6); }
.game-hud span { display: block; color: var(--muted); font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.09em; }
.game-hud strong { display: block; margin-top: 3px; font-size: 24px; letter-spacing: -0.04em; }
.game-stage { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #eee7ff; }
#game-canvas { display: block; width: 100%; height: auto; touch-action: none; }
.game-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; background: rgba(238, 231, 255, 0.78); text-align: center; backdrop-filter: blur(5px); transition: opacity 220ms ease, visibility 220ms ease; }
.game-overlay.is-hidden { visibility: hidden; opacity: 0; pointer-events: none; }
.game-overlay span { color: var(--accent); font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.12em; }
.game-overlay strong { margin-top: 10px; font-size: clamp(30px, 6vw, 48px); letter-spacing: -0.06em; }
.game-overlay p { margin-top: 8px; color: var(--muted); font-size: 12px; }
.game-controls { display: grid; grid-template-columns: 48px 1fr 48px; gap: 10px; margin-top: 14px; }
.game-controls > button:not(.button) { border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 18px; touch-action: none; }
.game-controls > button:not(.button):active { background: var(--surface-soft); }
.game-status { min-height: 20px; margin-top: 12px; color: var(--muted); font-size: 11px; text-align: center; }

[data-magnetic] { transition: transform 220ms var(--ease), box-shadow 220ms var(--ease); }
.motion-ready .reveal { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease) var(--reveal-delay, 0ms), transform 900ms var(--spring) var(--reveal-delay, 0ms); }
.motion-ready .reveal.is-visible { opacity: 1; transform: translateY(0); }

.nav-radar-button { position: relative; padding: 0; border: 0; background: transparent; color: var(--muted); font-size: 12px; font-weight: 550; transition: color 180ms ease; }
.nav-radar-button::after { content: ""; position: absolute; right: 0; bottom: -8px; left: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 240ms var(--ease); }
.nav-radar-button:hover, .nav-list a.is-active { color: var(--ink); }
.nav-radar-button:hover::after, .nav-list a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-list a.is-active { color: var(--accent); }
.footer-links button { padding: 0; border: 0; background: transparent; color: var(--muted); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.04em; transition: color 180ms ease; }
.footer-links button:hover { color: var(--ink); }
.site-footer { padding-bottom: 112px; }
.hero-bubble--three { display: none; }

.radar-dock { position: fixed; bottom: max(18px, env(safe-area-inset-bottom)); left: 50%; z-index: 90; display: flex; align-items: center; gap: 6px; width: max-content; max-width: calc(100vw - 24px); padding: 7px 8px 7px 14px; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 999px; background: rgba(32, 26, 60, 0.9); box-shadow: 0 18px 50px rgba(25, 18, 55, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.1); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); transform: translateX(-50%); animation: radar-dock-in 720ms var(--spring) 900ms backwards; transition: opacity 200ms ease; }
.radar-dock-label { display: inline-flex; align-items: center; gap: 7px; margin-right: 5px; color: rgba(255, 248, 236, 0.72); font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.1em; white-space: nowrap; }
.radar-dock-label i { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(255, 118, 87, 0.13); }
.radar-dock-link { position: relative; display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, 0.06); transition: background 180ms ease, transform 220ms var(--spring); }
.radar-dock-link > span { display: grid; width: 26px; height: 26px; place-items: center; border-radius: 9px; background: var(--site-color); color: #fff; font-family: var(--font-mono); font-size: 8px; font-weight: 700; letter-spacing: -0.03em; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24); }
.radar-dock-link:hover { background: rgba(255, 255, 255, 0.13); transform: translateY(-4px) scale(1.04); }
.radar-dock-link::after { content: attr(data-tooltip); position: absolute; bottom: calc(100% + 13px); left: 50%; padding: 7px 10px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 9px; background: #211b3f; color: #fff8ec; font-family: var(--font-mono); font-size: 8px; white-space: nowrap; opacity: 0; pointer-events: none; transform: translate(-50%, 5px); transition: opacity 160ms ease, transform 200ms var(--ease); }
.radar-dock-link:hover::after, .radar-dock-link:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
.radar-dock-all { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; margin-left: 3px; padding: 8px 13px; border: 0; border-radius: 999px; background: var(--orange); color: #211b3f; font-size: 10px; font-weight: 750; white-space: nowrap; transition: background 180ms ease, transform 200ms var(--spring); }
.radar-dock-all span { color: rgba(33, 27, 63, 0.58); font-family: var(--font-mono); font-size: 8px; }
.radar-dock-all:hover { background: var(--yellow); transform: translateY(-2px); }
body.radar-open { overflow: hidden; }
body.radar-open .radar-dock { opacity: 0 !important; pointer-events: none; }
body.radar-dock-hidden .radar-dock { opacity: 0 !important; pointer-events: none; }
@keyframes radar-dock-in { from { opacity: 0; transform: translate(-50%, 18px) scale(0.96); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }

.radar-dialog { width: min(1060px, calc(100% - 40px)); max-height: calc(100dvh - 48px); padding: 0; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 30px; background: #211b3f; color: #fff8ec; box-shadow: 0 34px 100px rgba(12, 8, 30, 0.5); }
.radar-dialog::backdrop { background: rgba(20, 15, 40, 0.66); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.radar-dialog[open] { animation: radar-panel-in 320ms var(--ease); }
.radar-shell { max-height: calc(100dvh - 50px); padding: clamp(26px, 4vw, 46px); overflow: auto; scrollbar-color: rgba(255, 255, 255, 0.22) transparent; scrollbar-width: thin; }
.radar-close { position: absolute; top: 20px; right: 20px; z-index: 3; display: grid; width: 40px; height: 40px; padding: 0; place-items: center; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 50%; background: rgba(255, 255, 255, 0.06); color: #fff8ec; font-size: 23px; line-height: 1; transition: background 180ms ease, transform 200ms var(--spring); }
.radar-close:hover { background: var(--orange); color: #211b3f; transform: rotate(8deg); }
.radar-heading { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr); align-items: end; gap: 34px; padding-right: 54px; }
.radar-kicker { color: var(--mint); font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.12em; }
.radar-heading h2 { margin-top: 10px; font-size: clamp(44px, 6vw, 72px); font-weight: 780; letter-spacing: -0.07em; line-height: 0.95; }
.radar-intro { max-width: 390px; color: rgba(255, 248, 236, 0.62); font-size: 12px; line-height: 1.8; }
.radar-search { display: flex; align-items: center; gap: 12px; margin-top: 30px; padding: 0 16px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 16px; background: rgba(255, 255, 255, 0.06); transition: border-color 180ms ease, background 180ms ease; }
.radar-search:focus-within { border-color: rgba(108, 245, 189, 0.6); background: rgba(255, 255, 255, 0.09); }
.radar-search > span { color: var(--mint); font-size: 24px; line-height: 1; }
.radar-search input { min-width: 0; min-height: 56px; flex: 1; border: 0; outline: 0; background: transparent; color: #fff8ec; font-size: 13px; }
.radar-search input::placeholder { color: rgba(255, 248, 236, 0.38); }
.radar-search kbd { padding: 4px 7px; border: 1px solid rgba(255, 255, 255, 0.13); border-radius: 6px; color: rgba(255, 248, 236, 0.42); font-family: var(--font-mono); font-size: 8px; white-space: nowrap; }
.radar-filters { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.radar-filter { min-height: 34px; padding: 7px 12px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 999px; background: transparent; color: rgba(255, 248, 236, 0.62); font-size: 10px; transition: border-color 180ms ease, background 180ms ease, color 180ms ease; }
.radar-filter:hover { border-color: rgba(255, 255, 255, 0.3); color: #fff8ec; }
.radar-filter[aria-pressed="true"] { border-color: #fff8ec; background: #fff8ec; color: #211b3f; }
.radar-results-meta { display: flex; justify-content: space-between; gap: 20px; margin-block: 26px 12px; color: rgba(255, 248, 236, 0.42); font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.08em; }
.radar-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.radar-card { position: relative; min-width: 0; min-height: 220px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 18px; background: rgba(255, 255, 255, 0.045); transition: transform 240ms var(--ease), border-color 200ms ease, background 200ms ease; }
.radar-card:hover { border-color: rgba(255, 118, 87, 0.48); background: rgba(255, 255, 255, 0.075); transform: translateY(-3px); }
.radar-card-link { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 14px; height: 100%; padding: 20px 18px; color: inherit; }
.radar-card-mark { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; background: var(--site-color); color: #fff; font-family: var(--font-mono); font-size: 10px; font-weight: 700; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.radar-card-content { display: flex; min-width: 0; flex-direction: column; }
.radar-card-top { display: flex; justify-content: space-between; gap: 8px; padding-right: 24px; color: rgba(255, 248, 236, 0.38); font-family: var(--font-mono); font-size: 7px; letter-spacing: 0.08em; }
.radar-card-content > strong { margin-top: 13px; overflow: hidden; font-size: 18px; letter-spacing: -0.035em; text-overflow: ellipsis; white-space: nowrap; }
.radar-card-content > small { margin-top: 4px; overflow: hidden; color: rgba(255, 248, 236, 0.4); font-family: var(--font-mono); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.radar-card-description { margin-top: 13px; color: rgba(255, 248, 236, 0.68); font-size: 11px; line-height: 1.7; }
.radar-card-note { margin-top: auto; padding-top: 14px; color: var(--yellow); font-size: 9px; line-height: 1.6; }
.radar-favorite { position: absolute; top: 12px; right: 12px; z-index: 2; display: grid; width: 28px; height: 28px; padding: 0; place-items: center; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 50%; background: #211b3f; color: rgba(255, 248, 236, 0.48); font-size: 13px; transition: color 180ms ease, border-color 180ms ease, transform 180ms var(--spring); }
.radar-favorite:hover { border-color: var(--yellow); color: var(--yellow); transform: scale(1.08); }
.radar-favorite[aria-pressed="true"] { border-color: rgba(246, 206, 70, 0.4); color: var(--yellow); }
.radar-empty { margin-top: 4px; padding: 52px 24px; border: 1px dashed rgba(255, 255, 255, 0.16); border-radius: 18px; text-align: center; }
.radar-empty strong { font-size: 20px; letter-spacing: -0.03em; }
.radar-empty p { margin-top: 8px; color: rgba(255, 248, 236, 0.5); font-size: 11px; }
.radar-footer { display: flex; justify-content: space-between; gap: 20px; margin-top: 24px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.1); color: rgba(255, 248, 236, 0.35); font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.04em; }
@keyframes radar-panel-in { from { opacity: 0; transform: translateY(18px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

@media (max-width: 1100px) {
  [data-theme="playful"] .nav-list { gap: 16px; }
  .nav-radar-button { font-size: 11px; }
  .radar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  [data-theme="playful"] .brand-descriptor { display: none; }
  [data-theme="playful"] .nav-list { gap: 18px; }
  [data-theme="playful"] .site-header { min-height: 74px; }
  [data-theme="playful"] .github-link { margin-left: 14px; }
  .lang-toggle { min-height: 34px; margin-left: 10px; padding: 7px 9px; }
  .radar-dock-label { display: none; }
  .radar-dock { padding-left: 8px; }
  .radar-heading { grid-template-columns: 1fr; gap: 14px; }
  .radar-intro { max-width: 520px; }
  .radar-dialog { width: calc(100% - 28px); }
  .radar-shell { max-height: calc(100dvh - 32px); }
  [data-theme="playful"] .hero { grid-template-columns: 1fr; min-height: auto; padding-block: 68px; }
  [data-theme="playful"] .hero-title { font-size: clamp(58px, 12vw, 92px); }
  [data-theme="playful"] .hero-visual { width: min(100%, 560px); min-height: 440px; }
  [data-theme="playful"] .project-grid { grid-template-columns: 1fr; }
  [data-theme="playful"] .project-card:last-child { grid-column: auto; display: block; }
  [data-theme="playful"] .project-card:last-child .project-cover { height: 260px; min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .game-feature { grid-template-columns: 1fr; }
  .game-art { min-height: 340px; border-right: 0; border-bottom: 1px solid var(--line); }
  .game-grid { grid-template-columns: 1fr; }
  .open-layout { grid-template-columns: 1fr; }
  .agent-feature { grid-template-columns: 1fr; }
  .agent-flow { min-height: 300px; border-top: 1px solid rgba(255, 255, 255, 0.1); border-left: 0; }
  .agent-grid { grid-template-columns: 1fr; }
  .agent-card { min-height: 0; }
  [data-theme="playful"] .article-list { grid-template-columns: 1fr; }
  [data-theme="playful"] .article-item { min-height: auto; }
  [data-theme="playful"] .about-section { grid-template-columns: 1fr; }
  [data-theme="playful"] .newsletter-section { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  [data-theme="playful"] .brand-name { font-size: 16px; }
  [data-theme="playful"] .github-link { padding: 8px 10px; font-size: 9px; }
  [data-theme="playful"] .hero { padding-block: 54px 62px; }
  [data-theme="playful"] .hero-title { font-size: clamp(50px, 15.4vw, 74px); }
  .hero-title-accent { gap: 12px; }
  .hero-title-spark { width: 22px; height: 22px; }
  .scroll-cue { margin-top: 24px; }
  [data-theme="playful"] .hero-visual { min-height: 410px; border-radius: 34px; }
  [data-theme="playful"] .hero-carousel { top: 74px; right: 14px; left: 14px; border-radius: 20px; }
  .hero-carousel-viewport { height: 262px; }
  .carousel-slide { padding: 20px 19px 16px; }
  .carousel-slide-heading { font-size: 7px; }
  .carousel-slide-copy { margin-top: 20px; }
  .carousel-slide-copy h2 { max-width: calc(100% - 65px); font-size: 28px; }
  .carousel-slide-copy p { max-width: calc(100% - 64px); margin-top: 8px; font-size: 11px; line-height: 1.65; }
  .carousel-tags { margin-top: 11px; }
  .carousel-tags span { padding: 3px 7px; font-size: 6px; }
  .carousel-project-link { margin-top: 13px; font-size: 10px; }
  .carousel-art { top: 48px; right: 17px; width: 61px; height: 61px; border-radius: 16px; transform: scale(0.82) rotate(7deg); transform-origin: top right; }
  .hero-carousel-footer { min-height: 50px; padding: 6px 9px; }
  .hero-carousel-nav { gap: 4px; }
  .carousel-control { width: 35px; height: 35px; }
  [data-theme="playful"] .hero-float--one { top: auto; bottom: 25px; left: 23px; right: auto; width: 58px; height: 58px; }
  [data-theme="playful"] .hero-float--two { display: none; }
  [data-theme="playful"] .hero-sticker { top: 52px; right: 16px; width: 70px; height: 70px; font-size: 7px; }
  [data-theme="playful"] .hero-visual-caption { right: auto; bottom: 13px; left: 18px; font-size: 7px; }
  [data-theme="playful"] .hero-visual-top { top: 28px; right: 24px; left: 24px; }
  .section-block { padding-block: 68px; }
  [data-theme="playful"] .section-heading h2 { font-size: 38px; }
  .project-cover { height: 230px; }
  [data-theme="playful"] .project-card:last-child .project-cover { height: 230px; }
  .project-info { padding: 23px; }
  .project-info > p { min-height: auto; }
  .game-art { min-height: 300px; }
  .agent-feature-copy { padding: 30px 24px 34px; }
  .agent-feature-copy h3 { font-size: 34px; }
  .agent-flow { min-height: 280px; padding: 26px 20px; }
  .agent-flow-track { gap: 4px; margin-block: 44px; }
  .agent-flow-node > span { width: 44px; height: 44px; border-radius: 14px; }
  .agent-flow-line { top: 22px; }
  .agent-flow-node strong { font-size: 12px; }
  .agent-flow-footer { align-items: flex-start; flex-direction: column; gap: 6px; }
  .agent-card { padding: 25px; }
  .game-feature-copy { padding: 30px 24px; }
  .game-card { grid-template-columns: 80px 1fr; gap: 16px; padding: 22px; }
  .mini-game-art { width: 78px; height: 78px; }
  .open-item { grid-template-columns: 22px minmax(0, 1fr) 20px; gap: 12px; }
  [data-theme="playful"] .article-item { padding: 23px; }
  [data-theme="playful"] .article-item > h3 { font-size: 21px; }
  [data-theme="playful"] .portrait-badge { right: -6px; }
  .radar-dock { gap: 4px; max-width: calc(100vw - 18px); padding: 6px; overflow-x: auto; scrollbar-width: none; }
  .radar-dock::-webkit-scrollbar { display: none; }
  .radar-dock-link { width: 35px; height: 35px; flex-basis: 35px; }
  .radar-dock-link > span { width: 24px; height: 24px; border-radius: 8px; font-size: 7px; }
  .radar-dock-link::after { display: none; }
  .radar-dock-all { min-height: 35px; padding: 7px 10px; font-size: 9px; }
  .radar-dialog { inset: auto 0 0; width: 100%; max-width: 100%; max-height: 92dvh; margin: 0; border-right: 0; border-bottom: 0; border-left: 0; border-radius: 28px 28px 0 0; }
  .radar-shell { max-height: 92dvh; padding: 28px 20px max(24px, env(safe-area-inset-bottom)); }
  .radar-close { top: 16px; right: 16px; width: 36px; height: 36px; }
  .radar-heading { padding-right: 42px; }
  .radar-heading h2 { font-size: 44px; }
  .radar-search { margin-top: 22px; }
  .radar-search kbd { display: none; }
  .radar-grid { grid-template-columns: 1fr; }
  .radar-card { min-height: 0; }
  .radar-footer { align-items: flex-start; flex-direction: column; gap: 6px; }
  .project-facts { grid-template-columns: 1fr; }
  .game-hud > div { padding: 10px 12px; }
  .game-hud strong { font-size: 20px; }
  .game-controls { grid-template-columns: 42px 1fr 42px; }
  .lang-toggle { gap: 3px; padding: 6px 8px; font-size: 9px; }
  [data-theme="playful"] .github-link { margin-left: 8px; }
}

.lang-toggle { display: inline-flex; align-items: center; gap: 5px; min-height: 36px; margin-left: 10px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--surface) 70%, transparent); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.04em; transition: background 180ms ease, border-color 180ms ease, transform 200ms var(--ease); }
.lang-toggle:hover { border-color: var(--accent); transform: translateY(-2px); }
.lang-toggle-code { color: var(--muted); transition: color 180ms ease; }
.lang-toggle-code.is-active { color: var(--ink); font-weight: 700; }
.lang-toggle-divider { color: var(--line-strong); }

@media (pointer: fine) {
  body.cursor-ready,
  body.cursor-ready a,
  body.cursor-ready button,
  body.cursor-ready [data-tilt] { cursor: none; }
  body.in-dialog { cursor: auto; }
  body.in-dialog a,
  body.in-dialog button { cursor: pointer; }
  body.in-dialog .cursor-dot,
  body.in-dialog .cursor-ring { opacity: 0; }
}

@media (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track, .game-orange, .hero-float, .hero-bubble, .hero-title-spark, .status-dot, .button--primary > span, .hero-carousel, .hero-sticker, .hero-visual::before, .scroll-cue i::after, .radar-dock, .radar-dialog[open] { animation: none !important; }
  .hero-carousel { transform: rotate(-2deg); }
  .carousel-slide, .carousel-slide-heading, .carousel-slide-copy, .carousel-project-link { animation: none !important; transition: none !important; }
  .hero-carousel-progress span { transform: scaleX(0) !important; }
  .hero-line > span, .hero-eyebrow, .hero-lede, .hero-actions, .hero-footnote, .scroll-cue, .hero-visual, #ocean-canvas, .hero-visual-top, .hero-visual-caption { opacity: 1 !important; transform: none !important; animation: none !important; }
  .hero-title em::after { transform: scaleX(1); animation: none !important; }
  .hero-bubble { display: none; }
  .project-card, .agent-card, .article-item, .game-card, .radar-card { transition: none; }
  .motion-ready .reveal { opacity: 1; transform: none; }
  .cursor-dot, .cursor-ring, .orange-pop, .tap-ripple { display: none !important; }
  .touch-target.is-pressed { transform: none !important; }
}

.focus-grid, .news-columns { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 28px; }
.focus-grid article, .news-columns article { padding-top: 16px; border-top: 2px solid var(--line); }
.focus-grid h3, .news-columns h3 { margin-bottom: 12px; font-size: 22px; }
.focus-grid p { color: var(--muted); line-height: 1.75; }
.news-columns { grid-template-columns: repeat(2,minmax(0,1fr)); }
.news-columns ul { list-style: none; padding: 0; }
.news-columns li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.news-columns time { font: 13px/1.8 var(--font-mono); color: var(--muted); white-space: nowrap; }
.news-columns a:hover { text-decoration: underline; }
@media(max-width:760px){ .focus-grid,.news-columns { grid-template-columns:1fr; } }
