/* Approved media station and illustrated portfolio. See PORTFOLIO_DESIGN.md. */
:root {
  --studio-muted: #665e53;
  --studio-paper: #e9dfcf;
  --studio-ease: cubic-bezier(.22,.61,.36,1);
  --sans: 'Noto Sans SC', 'PingFang SC', system-ui, sans-serif;
  --sans-cjk: 'Noto Sans SC', 'PingFang SC', system-ui, sans-serif;
}
.station { scroll-margin-top: 112px; }
.station .signal__head { align-items: baseline; margin-bottom: 0; }
.station .signal__title { font-size: clamp(24px,2.1vw,32px); letter-spacing: .02em; }
.station-label,.station-foot,.channel-kind,.gallery-kicker,.project-no,.art-index,.gallery-foot { font-family: var(--mono); }
.station-label { font-size: 10px; color: var(--studio-muted); letter-spacing: .08em; white-space: nowrap; }
.station-list { list-style: none; }
.station-list li { border-bottom: 1px solid var(--line); }
.channel { display: grid; grid-template-columns: 32px minmax(0,1fr) 20px; align-items: center; gap: 16px; min-height: 76px; padding: 12px 4px; color: var(--ink); transition: background-color 180ms var(--studio-ease); }
.channel:hover { background-color: rgba(192,57,43,.06); }
.channel:active { background-color: rgba(192,57,43,.11); }
.channel:visited { color: var(--ink); }
.channel-icon svg { width: 26px; height: 26px; }
.channel-text { min-width: 0; }
.channel-text strong { display: block; font-size: 16px; font-weight: 600; }
.channel-text > span { display: block; margin-top: 4px; font-size: 12px; color: var(--studio-muted); overflow-wrap: anywhere; }
.channel-kind { display: none; font-size: 9px; color: var(--studio-muted); letter-spacing: .04em; }
.channel-arrow svg { width: 16px; height: 16px; transition: transform 180ms var(--studio-ease); }
.channel:hover .channel-arrow svg { transform: translate(2px,-2px); }
.station-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 16px; font-size: 10px; color: var(--studio-muted); }
.station-foot a { color: var(--accent); min-height: 44px; display: inline-flex; align-items: center; }
.station-foot > span { display: inline-flex; align-items: center; }
.project-gallery { position: relative; padding: 32px 24px 48px; scroll-margin-top: 100px; }
.gallery-head { display: flex; flex-direction: column; gap: 24px; padding-bottom: 32px; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.gallery-kicker { font-size: 11px; letter-spacing: .13em; color: var(--accent); margin-bottom: 16px; }
.gallery-kicker span { margin-inline-start: 16px; color: var(--studio-muted); }
.gallery-head h2 { font-family: var(--serif-cjk); font-size: clamp(28px,3vw,44px); font-weight: 500; line-height: 1.4; letter-spacing: -.035em; text-wrap: balance; }
.gallery-aside { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.gallery-aside p { font-size: 14px; color: var(--studio-muted); line-height: 1.7; }
.project-grid { display: grid; grid-template-columns: minmax(0,1fr); gap: 40px 32px; }
.project-item { min-width: 0; }
.project-link { display: block; color: var(--ink); }
.project-link:visited { color: var(--ink); }
.project-link:active .project-art { opacity: .9; }
.project-art { position: relative; aspect-ratio: 3/2; overflow: hidden; background: var(--studio-paper); isolation: isolate; }
.project-art img { width: 100%; height: 100%; object-fit: cover; }
.project-art img,.project-art > .art-motion { transition: transform 650ms var(--studio-ease); }
.project-link:hover .project-art img,.project-link:hover .project-art > .art-motion { transform: scale(1.025); }
.art-index { position: absolute; top: 20px; left: 20px; font-size: 9px; letter-spacing: .08em; color: var(--ink-soft); z-index: 3; }
.art-action { display: inline-flex; align-items: center; gap: 12px; position: absolute; bottom: 20px; right: 20px; padding: 8px 12px; background: var(--paper); color: var(--ink); font-size: 11px; z-index: 3; opacity: 0; transform: translateY(8px); transition: transform 200ms var(--studio-ease),opacity 200ms var(--studio-ease); }
.art-action svg { width: 12px; height: 12px; }
.project-link:hover .art-action,.project-link:focus-visible .art-action { opacity: 1; transform: translateY(0); }
.art-corner { position: absolute; width: 16px; height: 16px; z-index: 3; opacity: 0; transition: opacity 200ms var(--studio-ease); }
.art-corner-tl { inset: 12px auto auto 12px; border-top: 1px solid var(--accent); border-left: 1px solid var(--accent); }
.art-corner-br { inset: auto 12px 12px auto; border-bottom: 1px solid var(--accent); border-right: 1px solid var(--accent); }
.project-link:hover .art-corner,.project-link:focus-visible .art-corner { opacity: 1; }
.art-motion { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.art-motion text { font-family: var(--sans-cjk); font-size: 16px; font-weight: 500; fill: #514437; }
.art-motion .scene-mono,.art-motion .scene-mono text { font-family: var(--mono); }
.art-motion g.scene-mono text { fill: #f5edde; font-size: 8px; }
.art-motion g.scene-mono text:first-child { font-size: 13px; }
.art-motion .loop { animation-duration: 8s; animation-timing-function: var(--studio-ease); animation-iteration-count: infinite; animation-fill-mode: both; animation-play-state: paused; }
.project-item.is-playing .loop { animation-play-state: running; }
.art-motion .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation-name: scene-draw; }
.art-motion .appear { animation-name: scene-appear; }
.art-motion .pop,.art-motion .scene-caption { animation-name: scene-pop; }
.school-wash { opacity: .06; }
.school-a { animation-delay: 0s; }
.school-b { animation-delay: .65s; }
.school-c { animation-delay: 1.3s; }
.review-band { animation-name: review-sweep; }
.review-a { animation-delay: .5s; }
.review-b { animation-delay: 1.3s; }
.review-c { animation-delay: 2.1s; }
.review-result { animation-delay: 2.6s; }
.wiki-a { animation-delay: 0s; }
.wiki-b { animation-delay: .6s; }
.wiki-c { animation-delay: 1.2s; }
.node-pulse { animation-name: node-pulse; transform-box: fill-box; transform-origin: center; }
.wiki-traveler { animation-name: wiki-travel; }
.skill-module { animation-name: module-pick; }
.socket-ring { animation-name: scene-appear; animation-delay: 1.8s; }
.skill-wire { animation-delay: 1s; }
.skill-one { animation-delay: .3s; }
.skill-two { animation-delay: 1.1s; }
.skill-three { animation-delay: 2s; }
.memo-input { animation-name: memo-input; }
.art-motion .voice-bar { animation-name: voice-wave; animation-duration: 800ms; animation-delay: calc(var(--bar) * -110ms); transform-origin: center; transform-box: fill-box; }
.memo-route { animation-delay: 1.4s; }
.memo-calendar { animation-name: memo-calendar; }
.memo-event { animation-name: memo-event; }
.memo-check { animation-name: memo-check; }
.art-motion .scene-caption.memo-check { animation-name: memo-check; }
.agent-input { animation-delay: 0s; }
.agent-think { animation-delay: .8s; }
.agent-output { animation-delay: 1.6s; }
.agent-packet { animation-name: agent-travel; }
.dsh-a { animation-delay: .4s; }
.dsh-b { animation-delay: 1.2s; }
.dsh-c { animation-delay: 2s; }
.dsh-line { animation-name: terminal-line; }
.dsh-led { animation-name: scene-appear; }
.dsh-progress { animation-delay: .4s; }
.dsh-ready { animation-delay: 2.2s; }
.rulenav-scan { animation-name: review-sweep; animation-delay: .45s; }
.rulenav-route { animation-delay: .15s; }
.rulenav-clause-a { animation-delay: .9s; }
.rulenav-clause-b { animation-delay: 1.35s; }
.rulenav-clause-c { animation-delay: 1.8s; }
.rulenav-node-a { animation-delay: .1s; }
.rulenav-node-b { animation-delay: 1.15s; }
.rulenav-node-c { animation-delay: 2.2s; }
.rulenav-packet { animation-name: rulenav-travel; }
.rulenav-input-label { animation-delay: .25s; }
.rulenav-rule-label { animation-delay: 1.35s; }
.rulenav-result { animation-delay: 2.55s; }
.project-caption { display: grid; grid-template-columns: 24px minmax(0,1fr) 24px; gap: 8px; padding-block: 20px 0; }
.project-no { padding-top: 4px; font-size: 10px; color: var(--studio-muted); }
.project-caption h3 { font-size: 19px; font-weight: 600; line-height: 1.5; text-wrap: balance; overflow-wrap: anywhere; transition: color 180ms var(--studio-ease); }
.project-caption p { font-size: 14px; line-height: 1.75; color: var(--studio-muted); margin-top: 8px; }
.project-arrow svg { width: 20px; height: 20px; margin-top: 4px; transition: transform 200ms var(--studio-ease); }
.project-link:hover h3 { color: var(--accent); }
.project-link:hover .project-arrow svg { transform: translate(2px,-2px); }
.gallery-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); margin-top: 48px; padding-top: 16px; font-size: 10px; color: var(--studio-muted); letter-spacing: .04em; }
.gallery-foot a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); }
.gallery-foot > span { display: inline-flex; align-items: center; }
.gallery-foot a:hover { color: var(--accent); }
.cbar__val--mail { overflow-wrap: anywhere; }
.station a:focus-visible,.project-link:focus-visible,.gallery-foot a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
@keyframes scene-draw { 0%,6% { stroke-dashoffset: 1; opacity: 0; } 12% { opacity: 1; } 40%,77% { stroke-dashoffset: 0; opacity: 1; } 92%,100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes scene-appear { 0%,14%,96%,100% { opacity: 0; } 27%,75% { opacity: 1; } }
@keyframes scene-pop { 0%,12%,98%,100% { opacity: 0; transform: translateY(9px); } 25%,75% { opacity: 1; transform: translateY(0); } 89% { opacity: 0; transform: translateY(-4px); } }
@keyframes review-sweep { 0% { transform: translateY(0); opacity: 0; } 8% { opacity: .16; } 48% { transform: translateY(178px); opacity: .16; } 57%,100% { transform: translateY(190px); opacity: 0; } }
@keyframes node-pulse { 0%,10%,90%,100% { opacity: 0; transform: scale(.5); } 25%,60% { opacity: 1; transform: scale(1); } 75% { opacity: .35; transform: scale(1.8); } }
@keyframes wiki-travel { 0%,4% { transform: translate(174px,96px); opacity: 0; } 8% { transform: translate(174px,96px); opacity: 1; } 25% { transform: translate(225px,51px); } 43% { transform: translate(310px,50px); } 59% { transform: translate(394px,70px); } 74% { transform: translate(447px,108px); opacity: 1; } 88%,100% { transform: translate(440px,161px); opacity: 0; } }
@keyframes module-pick { 0%,10%,95%,100% { transform: translateY(0); opacity: 0; } 30%,45% { transform: translateY(-22px); opacity: .9; } 65%,78% { transform: translateY(22px); opacity: .6; } }
@keyframes memo-input { 0%,5%,90%,100% { opacity: 0; transform: translate(-14px,0); } 15%,60% { opacity: 1; transform: translate(0,0); } 75% { opacity: 0; transform: translate(15px,0); } }
@keyframes voice-wave { 0%,100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
@keyframes memo-calendar { 0%,16%,98%,100% { opacity: 0; transform: translate(18px,8px); } 32%,80% { opacity: 1; transform: translate(0,0); } 94% { opacity: 0; transform: translate(0,-6px); } }
@keyframes memo-event { 0%,40%,100% { opacity: 0; } 52%,88% { opacity: 1; } }
@keyframes memo-check { 0%,49%,100% { opacity: 0; transform: translateY(6px); } 61%,85% { opacity: 1; transform: translateY(0); } 95% { opacity: 0; transform: translateY(0); } }
@keyframes agent-travel { 0% { transform: translate(147px,268px); opacity: 0; } 8% { opacity: 1; } 18% { transform: translate(181px,240px); } 30% { transform: translate(285px,240px); } 40% { transform: translate(285px,172px); } 53% { transform: translate(322px,146px); } 65% { transform: translate(359px,159px); } 74% { transform: translate(359px,244px); } 84% { transform: translate(442px,285px); opacity: 1; } 98%,100% { transform: translate(442px,326px); opacity: 0; } }
@keyframes terminal-line { 0%,10%,97%,100% { opacity: 0; transform: translateY(3px); } 22%,77% { opacity: 1; transform: translateY(0); } }
@keyframes rulenav-travel { 0%,4% { transform: translate(112px,248px); opacity: 0; } 8% { opacity: 1; } 34% { transform: translate(241px,188px); } 55% { transform: translate(304px,188px); } 80% { transform: translate(447px,207px); opacity: 1; } 96%,100% { transform: translate(447px,207px); opacity: 0; } }
@media (min-width: 640px) {
  .project-gallery { padding: 32px 48px 64px; }
  .project-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 48px 32px; }
  .project-caption { grid-template-columns: 24px minmax(0,1fr) 24px; }
  .gallery-head { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .gallery-aside { align-items: flex-end; }
  .gallery-aside p { max-width: 220px; text-align: end; }
}
@media (min-width: 1024px) {
  .project-gallery { padding: 0 clamp(104px,8.8vw,164px) 80px; }
  .project-grid { grid-template-columns: repeat(3,minmax(0,1fr)); column-gap: 24px; row-gap: 48px; }
  .project-caption { grid-template-columns: 24px minmax(0,1fr) 20px; padding-top: 20px; }
  .project-caption h3 { font-size: 20px; }
  .channel { grid-template-columns: 32px minmax(0,1fr) auto 20px; }
  .channel-kind { display: block; }
  .gallery-head { margin-bottom: 40px; }
  .gallery-aside p { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .art-motion .loop { animation: none; }
  .art-motion { display: none; }
  .project-link:hover .project-art img { transform: none; }
  .project-link *,.channel *,.art-action { transition: none; }
}
