/* Editorial V5 colors and type, applied to the original Creative Quest stages. */
@font-face {
  font-family: 'DM Sans';
  src: url('assets/fonts/dm-sans.ttf') format('truetype');
  font-weight: 400 900;
  font-display: swap;
}
:root {
  color-scheme: light;
  --bg: #FCFBF8;
  --ink: #252A2D;
  --steel-deep: #6883BA;
  --steel: #A1B4E4;
  --paper-panel: #F1ECE8;
  --steel-ink: #557B98;
  --soba-orange: #a34b21;
  --hero-berry: #B55382;
  --steel-pale: #E5E9F6;
  --muted: #515C62;
  --line: #B1B8CC;
  --type-editorial: Arial, Helvetica, sans-serif;
  --type-serif: Georgia, 'Times New Roman', serif;
  --type-retro: 'Courier New', monospace;
}

html { scroll-padding-top: 96px; }

body {
  background: var(--bg);
  color: var(--ink);
  cursor: auto;
  font-family: var(--type-editorial);
  overflow-x: clip;
}

.scroll-anchor { display: block; }
.work-scroll-scene { display: contents; }
.scroll-layer { position: relative; display: flow-root; }
.scroll-layer > [data-section="work"] { margin-bottom: 72px; }
@media (min-width: 701px) {
  .scroll-layer > [data-section="work"] { margin-bottom: clamp(110px, 10vw, 136px); }
}
.has-scroll-layers .scroll-layer {
  position: sticky;
  top: var(--layer-top);
  z-index: 1;
  background: var(--bg);
}
.scroll-depth :is(.hero-reel img, .hero-reel video, .project-image img, .project-image video, .photo-portal .photo-cover img) {
  scale: 1.044;
  translate: 0 var(--scroll-depth, 0px);
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide-word { transition: none !important; }
  .type-line-split:is(:hover, :focus-visible) .hero-slide-word { transform: none; }
}

.eyebrow, .section-label, .hero-sub span, .filter, .chip, .action,
.section-title p, .poster-placeholder, .photo-portal > span, .photo-tile > span,
.photo-tabs a, .photo-fallback, .source-album, .modal-head, .modal-nav,
.modal-head button, .modal-nav button, .modal > a, #case-fallback, footer {
  font-family: var(--type-editorial);
}
a[href], button:not(:disabled) { cursor: pointer; }

button:focus-visible, a:focus-visible {
  outline-color: var(--steel-ink);
}

.top {
  position: sticky;
  z-index: 16;
  top: 0;
  width: 100%;
  display: grid;
  grid-template-columns: clamp(110px, 17vw, 252px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(12px, 3vw, 48px);
  min-height: 76px;
  margin: 0;
  padding: 5px max(3vw, calc((100% - 1320px) / 2)) 8px;
  background: var(--bg);
  border-color: #C9CAC6;
}
.top:has(.shiba-shortcut) {
  min-height: 95px;
  grid-template-columns: clamp(110px, 17vw, 252px) minmax(0, 1fr) auto;
}
.shiba-shortcut {
  position: relative;
  display: grid;
  justify-items: end;
  align-self: end;
}
.mobile-soba-prompt, .shiba-menu-toggle { display: none; }
.mobile-game-link, .game-touch-label { display: none; }
footer a:hover { color: var(--steel-ink); }
footer { position: relative; }
.footer-soba {
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  translate: -50% 0;
  z-index: 2;
  width: 46px;
  height: 30px;
  overflow: hidden;
  pointer-events: none;
}
.footer-soba::before {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  background: url('assets/shiba-peek.svg') bottom / contain no-repeat;
  image-rendering: pixelated;
}
@media (prefers-reduced-motion: no-preference) {
  .footer-soba::before { animation: footer-peek 1.85s ease-in-out infinite; }
}
@keyframes footer-peek {
  0%, 30%, 100% { transform: translateY(103%); }
  51%, 74% { transform: translateY(8%); }
}
#shiba-prompt {
  margin: auto;
  padding: 24px;
  max-width: calc(100vw - 38px);
  border: 2px solid var(--steel-ink);
  box-shadow: 4px 4px var(--steel-deep);
  color: var(--ink);
  background: var(--bg);
  text-align: center;
}
#shiba-prompt::backdrop { background: #19253766; }
#shiba-prompt h2 { margin: 0 0 16px; font: 700 17px/1.25 var(--type-retro); }
#shiba-prompt form > div { display: flex; gap: 12px; justify-content: center; }
#shiba-prompt button { min-width: 70px; min-height: 44px; }
footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
}
footer a { min-width: 0; }
.footer-navigation a { display:inline-flex; align-items:center; justify-content:center; gap:.3em; }
.footer-navigation { text-align:center; display: grid; justify-items: center; gap: 8px; }
footer .footer-navigation a { justify-self: center; text-align: center; }
footer > a:last-child { justify-self: end; text-align: right; overflow-wrap: anywhere; }
footer a[href^="mailto:"]:last-child { text-decoration: underline; text-underline-offset: .2em; }

.identity {
  display: grid;
  position: relative;
  place-items: center start;
  flex: 0 1 335px;
  min-width: 0;
  min-height: 51px;
  padding: 0 4px 0 0;
  text-align: left;
  color: var(--ink);
  background: transparent;
  border: 0;
}

.identity .identity-short, .identity .identity-full {
  grid-area: 1 / 1;
  color: var(--ink);
  transition: opacity 150ms ease, transform 180ms steps(4);
}

.identity .identity-short {
  white-space: nowrap;
}

.wordmark-pixels {
  display: block;
  width: clamp(110px, 13.3vw, 196px);
  height: auto;
  image-rendering: pixelated;
}

.identity .identity-full {
  position: relative;
  font: 750 clamp(14px, 2.1vw, 29px)/.96 Arial, Helvetica, sans-serif;
  letter-spacing: -.065em;
  opacity: 0;
  transform: translateX(-7px);
  white-space: normal;
}
.hero-sub .identity-hero {
  flex: 0 1 auto;
  min-height: 32px;
  padding: 0 4px 0 0;
}
.hero-sub .identity-hero .identity-short {
  font: 700 clamp(11px, 2.8vw, 14px)/1.25 var(--type-editorial);
  letter-spacing: normal;
  white-space: normal;
}
.hero-sub .wordmark-pixels { width: auto; height: 27px; }

.identity-full::before, .identity-full::after {
  position: absolute;
  inset: 0;
  content: attr(data-text);
  color: var(--steel-deep);
  opacity: 0;
  pointer-events: none;
}
.identity-hero .identity-full::before, .identity-hero .identity-full::after {
  content: '';
  background: var(--steel-deep);
  mask: url('assets/wordmark-georgia-pixel.png') center / contain no-repeat;
}

.identity:is(:focus-visible, [aria-pressed=true]) .identity-short {
  opacity: 0;
  transform: translateX(8px);
}

.identity:is(:focus-visible, [aria-pressed=true]) .identity-full {
  opacity: 1;
  transform: none;
}

.identity:is(:focus-visible, [aria-pressed=true]) .identity-full::before {
  animation: id-slice 440ms steps(2);
}

.identity:is(:focus-visible, [aria-pressed=true]) .identity-full::after {
  animation: id-slice 330ms reverse steps(2);
}

@media (hover: hover) {
  .identity:hover .identity-short { opacity: 0; transform: translateX(8px); }
  .identity:hover .identity-full { opacity: 1; transform: none; }
  .identity:hover .identity-full::before { animation: id-slice 440ms steps(2); }
  .identity:hover .identity-full::after { animation: id-slice 330ms reverse steps(2); }
}

@keyframes id-slice {
  0%, 100% { opacity: 0; }
  20% { opacity: 1; clip-path: inset(9% 0 65%); transform: translateX(7px); }
  50% { opacity: .9; clip-path: inset(59% 0 12%); transform: translateX(-6px); }
}

.top .guidebar {
  position: static;
  min-width: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: clamp(8px, 2vw, 28px);
  padding: 0;
  min-height: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.guide-track {
  top: 34px;
  width: 90%;
  height: 16px;
  overflow: visible;
  border: 0;
  background: none;
}
.guide-track path {
  fill: none;
  stroke: var(--steel-deep);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 4 6;
}

.guide-route a { color: var(--steel-ink); }
.guide-route a:is(.active, :hover, :focus-visible) { color: white; background: var(--steel-ink); }
.guide-route a:is(.active, :hover, :focus-visible)::before { background: var(--paper-panel); }
@media (min-width: 701px) {
  .guide-route a {
    --guide-label-offset: 5px;
    color: #18191B;
    font: italic 750 clamp(13px, calc(1.3vw - 1px), 17px)/1.18 var(--type-editorial);
    letter-spacing: .025em;
    top: var(--guide-label-offset);
  }
  .guide-route.home-route [data-station="home"] { transition: opacity .25s ease, visibility 0s .25s; }
  .guide-route.home-route.start-retired [data-station="home"] { opacity: 0; visibility: hidden; }
  .guide-route a::before { top: calc(-8px - var(--guide-label-offset)); }
  .guide-route a:is(.active, :hover, :focus-visible) { color: #18191B; background: var(--steel-pale); }
  .guide-route a:is(:hover, :focus-visible)::before { background: var(--hero-berry); }
}
#guide-dog:focus-visible { outline-offset: 1px; }
#guide-dog:not(.guide-moved) { transition: none; }

.eyebrow, .section-label { color: var(--steel-ink); }
.dot { background: var(--steel-deep); box-shadow: none; }
.hero h1 {
  font-family: 'DM Sans', var(--type-editorial);
  font-weight: 500;
  line-height: .92;
  letter-spacing: -.05em;
}
.hero-reel {
  min-width: 0;
}
@media (min-width: 901px) {
  .hero { grid-template-columns: minmax(0, .83fr) minmax(0, 1.17fr); }
}
.role-mobile { display: none; }
.shiba-zone {
  display: grid;
  grid-template-rows: 0fr;
  width: min(1320px, 94%);
  margin-inline: auto;
  scroll-margin-top: 12px;
}
@media (min-width: 701px) {
  .shiba-zone { width: min(94%, clamp(500px, calc((100svh - 244px) * 1.77778), 1160px)); }
}
.shiba-zone.is-open {
  grid-template-rows: 1fr;
  transition: grid-template-rows .24s cubic-bezier(.2, .72, .3, 1);
}
.shiba-stage { min-height: 0; overflow: clip; visibility: hidden; }
.shiba-zone.is-open .shiba-stage { visibility: visible; }
.shiba-zone .game {
  max-width: none;
  margin-top: 14px;
  box-shadow: none;
}
.shiba-zone .game:focus-visible { outline-offset: -4px; }
.start-platform, .secret-crystal, .season-cube {
  position: absolute;
  transform: translate(-50%, -50%);
  padding: 0;
  border: 0;
  background: transparent;
  pointer-events: auto;
}
.start-platform {
  left: 50%;
  top: 84%;
  width: 35%;
  height: 35%;
  clip-path: polygon(50% 0, 100% 43%, 100% 55%, 50% 100%, 0 55%, 0 43%);
}
.start-platform:focus-visible { background: #455f7842; }
.secret-crystal { left: 82.3%; top: 16.7%; width: 9%; height: 20%; }
.season-cube { left: 10%; top: 18.5%; width: 12%; height: 24%; }
.shiba-peek {
  position: absolute;
  pointer-events: auto;
  inset: auto 12px 100% auto;
  width: 72px;
  height: 46px;
  overflow: hidden;
  display: grid;
  grid-template-rows: 100% 0%;
}
.shiba-peek svg {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  image-rendering: pixelated;
}
.shiba-avatar { transform: translateY(9px); transition: transform .15s ease; }
.shiba-wave {
  opacity: 0;
}
.shiba-wave-arm { transform-origin: 0 0; transform: rotate(29deg); }
.shiba-shortcut:focus-within .shiba-avatar {
  transform: translateY(0);
  animation: shiba-hop .28s ease-out both;
}
.shiba-shortcut:focus-within .shiba-paw-right { opacity: 0; }
.shiba-shortcut:focus-within .shiba-wave { opacity: 1; }
.shiba-shortcut:focus-within .shiba-wave-arm { animation: shiba-wave .62s steps(5) infinite; }
@media (hover: hover) {
  .shiba-shortcut:hover .shiba-avatar {
    transform: translateY(0);
    animation: shiba-hop .28s ease-out both;
  }
  .shiba-shortcut:hover .shiba-paw-right { opacity: 0; }
  .shiba-shortcut:hover .shiba-wave { opacity: 1; }
  .shiba-shortcut:hover .shiba-wave-arm { animation: shiba-wave .62s steps(5) infinite; }
}
@keyframes shiba-wave {
  0%, 100% { transform: rotate(54deg); }
  50% { transform: rotate(6deg); }
}
@keyframes shiba-hop {
  0% { transform: translateY(9px); }
  60% { transform: translateY(-4px); }
  100% { transform: translateY(0); }
}
.motion-off .shiba-shortcut :is(.shiba-wave-arm, .shiba-avatar) { animation: none; transition: none; }
#shiba-toggle {
  border: 1px solid var(--steel-deep);
  background: var(--steel-pale);
  color: var(--ink);
  padding: 8px 11px;
  font: 700 12px/1.1 var(--type-retro);
  min-height: 34px;
  text-align: center;
}
#shiba-toggle:hover { background: #fff; }
#shiba-toggle[aria-expanded="true"] { background: var(--steel-ink); color: white; }
.game-previews {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
}
.world { container-type: inline-size; }
.world .soba-foreground { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.world-ui { z-index: 2; }
.stop-action:not([hidden]) {
  display: block;
  margin: 8px auto 0;
  padding: 9px 14px;
  border: 1px solid var(--steel);
  background: var(--steel-pale);
  color: var(--ink);
  font: 700 12px/1.2 var(--type-retro);
  text-transform: uppercase;
}
.stop-action:is(:hover, :focus-visible) { background: white; text-decoration: underline; }
.world-ui .waypoint.selected::after {
  content: '';
  position: absolute;
  inset: 70% -5% auto;
  height: 9cqw;
}
.world-ui .waypoint {
  width: 8.75%;
  height: 17.8%;
  transform: translateX(-50%);
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}
.waypoint-label {
  font: 700 clamp(14px, 1.5cqw, 18px)/1.1 var(--type-retro);
  position: absolute;
  left: 50%;
  top: 62%;
  transform: translate(-50%, -100%);
  padding: 5px 7px;
  border: 2px solid #1B2038;
  box-shadow: 2px 2px #1B2038;
  background: #E7E9E5;
  color: var(--ink);
  pointer-events: none;
}
.world-ui .waypoint:is(:hover, :focus-visible, .selected) .waypoint-label {
  background: var(--steel);
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .waypoint-label { transition: top .15s ease-out; }
  .world-ui .waypoint:hover .waypoint-label { top: 77%; }
}
.game-preview {
  position: absolute;
  left: var(--preview-x);
  bottom: var(--preview-y);
  transform: translateX(-50%);
  width: min(230px, 29%);
  padding: 5px;
  margin: 0;
  border: 2px solid #1b2038;
  box-shadow: 3px 3px #1b2038;
  background: var(--bg);
  color: var(--ink);
  pointer-events: auto;
}
.game-preview[data-preview="reel"] { --preview-x: 23%; --preview-y: 66%; width: min(210px, 27%); }
.game-preview[data-preview="work"] { --preview-x: 42%; --preview-y: 79%; }
.game-preview[data-preview="photo"] { --preview-x: 66%; --preview-y: 77%; width: min(210px, 28%); }
.game-preview[data-preview="about"] { --preview-x: 84%; --preview-y: 51%; width: min(152px, 25%); }
.game-preview[data-preview="start"] {
  --preview-x: 50%;
  --preview-y: 34%;
  width: min(196px, 28%);
}
.game-preview[data-preview="start"].intro-portrait { animation: soba-intro var(--soba-intro-duration) both; }
@keyframes soba-intro { 70% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .game-preview[data-preview="start"].intro-portrait { animation: none; }
}
.game-preview-label {
  display: block;
  padding: 3px 2px 5px;
  font: 700 11px/1 var(--type-retro);
  text-transform: uppercase;
  text-align: center;
}
.game-preview { transform-origin: center bottom; transition: transform .16s ease, background-color .16s, border-color .16s; }
@media (hover: hover) {
  .game-preview:hover { transform: translateX(-50%) scale(1.055); background-color: var(--steel-pale); border-color: var(--hero-berry); color: var(--hero-berry); }
}
.game-preview:focus-visible, .game-preview:active { transform: translateX(-50%) scale(1.055); background-color: var(--steel-pale); border-color: var(--hero-berry); color: var(--hero-berry); }
a.game-preview:is(:hover, :focus-visible) .game-preview-label { text-decoration: underline; }
.game-preview:focus-visible { outline-offset: 1px; }
.game-preview-reel {
  display: block;
  width: 100%;
  max-height: clamp(85px, 10vw, 132px);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #304C63;
}
.game-preview-window { display: block; overflow: hidden; }
.game-preview-strip { display: flex; width: max-content; animation: preview-reel var(--pass-time) linear infinite; }
.game-preview-band { display: flex; gap: 4px; padding-right: 4px; }
@keyframes preview-reel { to { transform: translateX(-50%); } }
.game-preview-band img, .game-preview[data-preview="about"] img, .soba-photo-card img {
  display: block;
  width: 100%;
  height: 42px;
  object-fit: cover;
  background: var(--steel-pale);
}
.game-preview-band img { width: 70px; }
.game-preview[data-preview="about"] img { height: clamp(72px, 8vw, 100px); object-position: center 38%; }
.soba-photo-card img { height: clamp(94px, 9vw, 128px); object-position: center 42%; }
.soba-photo-card figcaption { padding: 6px 1px 2px; font: 700 11px/1 var(--type-retro); text-align: center; }
.bio-soba { position: relative; }
.bio-soba summary { display: inline-block; list-style: none; cursor: pointer; }
.bio-soba summary::-webkit-details-marker { display: none; }
.bio-soba summary:focus-visible { outline: 2px solid var(--steel-ink); outline-offset: 3px; }
.bio-soba-card {
  position: absolute;
  z-index: 2;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: 172px;
  max-width: 100%;
  margin: 0;
  padding: 5px;
  border: 2px solid #1b2038;
  box-shadow: 3px 3px #1b2038;
  background: var(--bg);
  color: var(--ink);
  pointer-events: none;
}
.type-inner em, .profile h2 em {
  font-family: var(--type-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.08em;
}
.photo-strip {
  --strip-height: clamp(112px, 15vw, 218px);
  position: relative;
  padding: 0 0 clamp(24px, 3vw, 44px);
}
.photo-strip-window { min-height: 0; overflow: auto hidden; cursor: grab; touch-action: pan-y pinch-zoom; user-select: none; }
.photo-strip.is-moving .photo-strip-window { overflow: hidden; }
.photo-strip-window.is-dragging { cursor: grabbing; }
.photo-strip-track { display: flex; height: var(--strip-height); width: max-content; }
.photo-strip-band { display: flex; flex: none; height: 100%; gap: 5px; padding-right: 5px; }
.photo-strip-band[hidden] { display: none; }
.photo-strip-band img {
  display: block;
  flex: none;
  width: auto;
  min-width: 48px;
  max-width: none;
  height: 100%;
  object-fit: cover;
  background: var(--steel-pale);
}
@media (max-width: 700px) {
  .project-meta > span[aria-hidden="true"] { display: none; }
  .scroll-layer:has(+ .strip-layer) > .hero { margin-bottom: 18px; }
  .photo-strip { --strip-height: clamp(65px, 21vw, 142px); }
}

.type-line:last-child, .type-inner b { color: var(--hero-berry); }
.type-line-accent { color: var(--steel-ink); }
.hero-slide-word { display: inline-block; transition: transform .3s cubic-bezier(.22,.68,.25,1); }
.type-line-split:is(:hover, :focus-visible) .hero-slide-word {
  transform: translateX(clamp(7px, 1.35vw, 23px));
}
.hero-fun { display: inline-block; position: relative; }
.hero-fun > em { display: inline-block; position: relative; z-index: 1; }
.hero-fun-glitch, .hero-fun-glitch::before, .hero-fun-glitch::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-fun-glitch::before, .hero-fun-glitch::after {
  content: attr(data-text);
  opacity: 0;
}
.hero-fun-glitch::before { color: var(--steel-deep); }
.hero-fun-glitch::after { color: var(--steel-ink); }
.type-line-fun:is(:hover, :focus-visible) .hero-fun-glitch::before { animation: id-slice 480ms steps(2) .08s; }
.type-line-fun:is(:hover, :focus-visible) .hero-fun-glitch::after { animation: id-slice 360ms steps(2) .17s reverse; }
.hero-shiba {
  position: absolute;
  left: 100%;
  bottom: .02em;
  width: .98em;
  height: .75em;
  transform: translateX(.22em);
  pointer-events: none;
}
.hero-shiba-walk, .hero-shiba-sit { position: absolute; inset: 0; opacity: 0; }
.hero-shiba-walk { background: url('assets/shiba.svg?v=19') center bottom / contain no-repeat; image-rendering: pixelated; }
.hero-shiba-sit svg { width: 100%; height: 100%; display: block; }
.hero-shiba-tail { transform-origin: 34px 28px; }
.type-line-fun:is(:hover, :focus-visible) .hero-shiba { animation: hero-shiba-exit .68s linear both; }
.type-line-fun:is(:hover, :focus-visible) .hero-shiba-walk { animation: hero-shiba-stride .68s steps(1) both; }
.type-line-fun:is(:hover, :focus-visible) .hero-shiba-sit { animation: hero-shiba-settle .1s .62s both; }
.type-line-fun:is(:hover, :focus-visible) .hero-shiba-tail { animation: hero-shiba-wag .4s .72s steps(2) infinite; }
@keyframes hero-shiba-exit {
  from { transform: translateX(-.52em); }
  to { transform: translateX(.22em); }
}
@keyframes hero-shiba-stride {
  0% { opacity: 0; }
  10%, 44% { opacity: 1; transform: translateY(0); background-image: url('assets/shiba.svg?v=19'); }
  25%, 60% { opacity: 1; transform: translateY(-3px); background-image: url('assets/shiba-stride.svg'); }
  78% { opacity: 1; transform: translateY(0); }
  95%, 100% { opacity: 0; }
}
@keyframes hero-shiba-settle {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes hero-shiba-wag {
  0%, 100% { transform: rotate(-15deg); }
  50% { transform: rotate(15deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-fun:is(:hover, :focus-visible) .hero-shiba-sit { opacity: 1; }
}
.motion-off .hero-fun:is(:hover, :focus-visible) :is(.hero-shiba, .hero-shiba-walk, .hero-shiba-sit, .hero-shiba-tail) {
  animation: none;
}
.motion-off .hero-fun:is(:hover, :focus-visible) .hero-shiba-sit { opacity: 1; }
.action {
  background: var(--steel-pale);
  box-shadow: 4px 4px var(--steel-deep);
}
.action:hover { box-shadow: 6px 6px var(--steel-deep); }
.profile-contact > .action:is(:hover,:focus-visible) { transform: scale(1.045); }
.gallery-back { display: block; margin: 18px auto 0; }
.gallery-back, .profile-contact > .action {
  background: var(--steel-ink);
  border-color: var(--steel-ink);
  color: white;
}
.profile-contact > .action:is(:hover, :focus-visible) { background: var(--soba-orange); border-color: var(--soba-orange); }
.photo-album .section-label { gap: 12px; flex-wrap: wrap; }
.photo-album .section-label h2, .photo-portal > span { color: var(--steel-deep); }
.photo-album .gallery-back-top { margin-left: auto; color: var(--steel-ink); font-size: 11px; }
.gallery-back-top:is(:hover, :focus-visible) { text-decoration: underline; }

.inline-galleries .photo-album { margin-bottom: 20px; }
.game {
  border-color: var(--steel-deep);
  background: #304C63;
  box-shadow: 7px 7px var(--steel-deep);
}
.game button:focus-visible, .modal button:focus-visible { outline-color: #B5CFE1; }
.game-minimize {
  display: grid;
  place-content: center;
  width: 33px;
  height: 28px;
  padding: 0;
  border: 1px solid #8ba7ba;
  background: transparent;
  color: var(--bg);
  font: 400 22px/1 var(--type-editorial);
}
.game-minimize:hover { background: #496980; }
.game-intro {
  flex: 1;
  min-width: 0;
  font: 700 clamp(13px, 1.27vw, 18px)/1.3 var(--type-retro);
}
.game-tagline { color: var(--cyan); }
.boring-nav { position: relative; z-index: 4; max-width: 42%; margin-right: 10px; }
.boring-nav summary {
  display: block;
  padding: 9px 14px;
  border: 1px solid #8ba7ba;
  background: var(--steel-pale);
  color: var(--ink);
  font: 700 clamp(10px, 1.05vw, 13px)/1.3 var(--type-retro);
  text-align: center;
  cursor: pointer;
}
.boring-nav summary::-webkit-details-marker { display: none; }
.boring-nav summary:is(:hover, :focus-visible), .boring-nav[open] summary { background: white; }
.boring-nav nav {
  position: absolute;
  right: 0;
  top: calc(100% + 3px);
  min-width: 100%;
  padding: 5px;
  border: 1px solid #8ba7ba;
  background: var(--bg);
  box-shadow: 3px 4px #1B2038;
}
.boring-nav nav a { display: block; padding: 9px 12px; color: var(--ink); }
.boring-nav nav a:is(:hover, :focus-visible) { background: var(--steel-pale); }
.game:focus-visible { outline: 3px solid var(--steel-ink); outline-offset: 6px; }
.game-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 14px;
  padding: 0 5px 9px;
}
#game-message, .game-secret-hint { color: #e3edf4; font: 700 14px/1.3 var(--type-retro); }
#game-message { margin-left: auto; text-align: right; }
.game-secret-hint { align-self: center; margin-left: 4px; }
.game .game-keys {
  align-items: stretch;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: 0;
}
.game .game-key-group {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-right: 5px;
  color: var(--cyan);
  font-size: 15px;
}
.game .game-keys button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: auto;
  min-height: 34px;
  min-width: 31px;
  border: 1px solid #728ca8;
  background: #152439;
  color: #F3F1EC;
  padding: 3px 7px;
  font-size: 15px;
}
.game .game-keys button:hover { background: #385879; }
.game .game-keys #game-enter { background: #DCE5EB; color: var(--ink); }
.game-keys kbd {
  min-width: 17px;
  padding: 1px 3px;
  border: 1px solid #b5cfe1;
  border-bottom-width: 2px;
  border-radius: 2px;
  color: #F3F1EC;
  font: 700 14px/1.2 'Courier New', monospace;
  text-align: center;
}
.reel-screen { border: 0; box-shadow: none; }
.big-play {
  background: var(--steel-pale);
  opacity: 0;
  transition: opacity .16s ease;
}
.reel-screen:focus-visible .big-play,
.hero:has(.hero-sub [data-reel]:focus-visible) .big-play { opacity: 1; }
@media (hover: hover) {
  .reel-screen:hover .big-play,
  .hero:has(.hero-sub [data-reel]:hover) .big-play { opacity: 1; }
}
.reel-note, .profile-copy {
  background: var(--paper-panel);
  border-color: var(--line);
}
.reel-note h2 span, .section-title h2 span, .section-title h1 span {
  color: var(--steel-deep);
}
.section-title h2, .archive-title h1, .reel-note h2 {
  font-weight: 800;
  letter-spacing: -.075em;
}
.section-title h2:has(.section-cursor), .archive-title h1:has(.section-cursor) {
  width: fit-content;
}
.section-title h2 .heading-word, .section-title h1 .heading-word { color: inherit; }
.heading-word:hover + .section-cursor {
  animation: cursor-blink .55s step-end infinite;
}
@media (prefers-reduced-motion: no-preference) {
  .heading-word[data-typewriter] { display: inline-block; }
  .heading-word[data-typewriter="pending"] { clip-path: inset(0 100% 0 0); }
  .heading-word:is([data-typewriter="pending"], [data-typewriter="typing"]) + .section-cursor { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .heading-word[data-typewriter] { clip-path: none !important; }
  .heading-word:hover + .section-cursor { animation: none; }
}
@keyframes cursor-blink { 55% { opacity: 0; } }
[data-section="photo"] .section-title h2, .photo-page .archive-title h1 {
  font-size: clamp(32px, 7.8vw, 106px);
  line-height: .95;
}
.filter button, .photo-tabs a {
  background: var(--paper-panel);
  border-color: var(--line);
}
.filter button.active, .photo-tabs a:hover, .photo-tabs a[aria-current="page"] {
  background: var(--steel-ink);
  border-color: var(--steel-ink);
  color: white;
}
.photo-tabs small, .photo-album h2 small { color: var(--steel-ink); }
.photo-tabs a:hover small, .photo-tabs a[aria-current="page"] small { color: white; }
.project-open, .photo-portal, .photo-tile {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: var(--ink);
}
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 1;
    translate: 0 0;
    transition: opacity .42s ease-out, translate .42s ease-out;
  }
  [data-reveal="pending"]:not(:focus-within) {
    opacity: 0;
    translate: 0 9px;
  }
  [data-reveal]:focus-within { transition: none; }
  .photo-portal:nth-child(2) { --photo-entrance-delay: 90ms; }
  .photo-portal:nth-child(3) { --photo-entrance-delay: 180ms; }
  .photo-portal[data-reveal="shown"]:not(:focus-visible) {
    animation: photo-entrance .62s cubic-bezier(.2,.65,.25,1) var(--photo-entrance-delay, 0ms) both;
  }
}
@keyframes photo-entrance {
  from { opacity: 0; translate: 0 14px; }
  to { opacity: 1; translate: 0 0; }
}
.project-open::before { content: none; }
.project-open:hover, .project-open:focus-visible, .photo-portal:hover, .photo-tile:hover { transform: none; }
.project-open:hover .project-brand, .project-open:focus-visible .project-brand {
  text-decoration: underline;
  text-decoration-thickness: .07em;
  text-underline-offset: .16em;
}
.project-meta, .photo-portal > span { padding-inline: 0; }
.project-meta > span, .photo-portal small { color: var(--muted); }
.project-meta > div { min-width: 0; flex: 1; }
.project-name { display: flex; align-items: baseline; gap: .35em; white-space: nowrap; }
.project-name > span { flex: none; }
.project-meta .project-brand, .project-meta .project-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.project-meta .project-brand {
  margin: 0;
  flex: 0 1 auto;
  max-width: 67%;
  font: 800 clamp(14px, 1.65vw, 24px)/1.13 var(--type-editorial);
  letter-spacing: -.037em;
  text-transform: uppercase;
}
.project-meta .project-title {
  flex: 0 1 auto;
  color: var(--steel-ink);
  font: italic 400 clamp(13px, 1.18vw, 18px)/1.2 var(--type-serif);
  letter-spacing: -.02em;
}
.project-meta .project-kind {
  margin-top: 5px;
  color: var(--muted);
  font: 600 11px/1.25 var(--type-editorial);
  letter-spacing: .015em;
  text-transform: uppercase;
}
.poster-placeholder { color: var(--cream); }
.film-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 25px; }
.film-actions:has([data-more-projects]) { justify-content: center; }
.film-actions:has([data-more-projects][hidden]) { display: none; }
.film-actions .archive-link { margin-top: 0; }
.photo-portal > span { align-items: center; gap: 8px; }
.photo-portal small { font-size: 12px; text-align: right; }
.photo-portal .photo-cover img { transition: transform .3s ease; }
.photo-portal > span { transition: color .15s; }
.photo-portal:is(:hover, :focus-visible) .photo-cover img { transform: scale(1.065); }
.photo-portal:is(:hover, :focus-visible) > span { color: var(--steel-ink); }
.photo-portal:is(:hover, :focus-visible) small { text-decoration: underline; text-underline-offset: .2em; }
.photo-album h2 { color: var(--ink); }
.photo-album h2 small { font: 12px var(--type-editorial); margin-left: .4em; }
.photo-grid {
  --tile-gap: 16px;
  display: block;
  columns: 3;
  column-gap: var(--tile-gap);
}
.photo-grid .photo-tile {
  display: inline-block;
  vertical-align: top;
  width: 100%;
  margin-bottom: var(--tile-gap);
  break-inside: avoid;
}
@media (max-width: 900px) {
  .photo-grid { columns: 2; --tile-gap: 10px; }
}
.photo-tile { position: relative; align-self: start; }
.photo-tile:focus-visible { scroll-margin-top: 12px; }
.photo-tile .photo-cover { aspect-ratio: auto; background: var(--paper-panel); }
.photo-tile .photo-cover img { position: relative; width: 100%; height: auto; display: block; }
.photo-tile .photo-cover img[hidden] + span { position: relative; min-height: 120px; }
.photo-tile .photo-caption {
  position: absolute;
  z-index: 2;
  bottom: 6px;
  left: 6px;
  max-width: calc(100% - 12px);
  padding: 4px 6px;
  color: white;
  background: #17171abf;
  font: 400 12px/1.2 var(--type-editorial);
  opacity: 0;
  transition: opacity .16s;
}
.photo-tile:is(:hover, :focus-visible) .photo-caption { opacity: 1; }
.profile { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); }
.profile-copy .about-name {
  font-size: clamp(19px, 2.3vw, 34px);
  line-height: 1.06;
  text-align: center;
}
.profile-art {
  position: relative;
  display: block;
  align-self: center;
  justify-self: center;
  width: min(100%, 530px);
  min-height: 0;
  padding: 0;
  border: 0;
  background: none;
}
.profile-art:has(.portrait-quest-trigger) { cursor: pointer; }
.tv-frame { display: block; width: 100%; height: auto; }
.vhs-screen {
  position: absolute;
  isolation: isolate;
  inset: 10.7% 11.2% 27.25%;
  overflow: hidden;
  border-radius: 15% / 13%;
  background: #08080a;
  clip-path: shape(
    from 15% 3%,
    curve to 85% 3% with 33% -1% / 67% -1%,
    curve to 98% 16% with 94% 4% / 97% 8%,
    curve to 98% 84% with 100% 36% / 100% 64%,
    curve to 85% 97% with 97% 92% / 94% 96%,
    curve to 15% 97% with 65% 101% / 35% 101%,
    curve to 2% 84% with 6% 96% / 3% 92%,
    curve to 2% 16% with 0% 64% / 0% 36%,
    curve to 15% 3% with 3% 8% / 6% 4%,
    close
  );
}
.profile-portrait { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 78%; }
.profile-portrait[src$="portrait-retro-video.jpg"] { filter: brightness(.94); }
.profile-guide-portrait {
  position: absolute;
  inset: 0;
  object-position: 50% 40%;
  filter: sepia(.19) saturate(.77) contrast(.94) brightness(.93);
  opacity: 0;
  transition: opacity .15s ease-out;
}
.guide-tv-caption {
  position: absolute;
  z-index: 2;
  inset: auto 5% 8%;
  color: #FFE078;
  font: 700 clamp(12px, 1.4vw, 20px)/1.15 var(--type-editorial);
  text-align: center;
  text-shadow: 0 1px 2px #161510, 1px 1px #161510;
  opacity: 0;
  transition: opacity .15s ease-out;
  pointer-events: none;
}
.about:has(.bio-soba[open], .bio-soba summary:focus-visible) :is(.profile-guide-portrait, .guide-tv-caption) { opacity: 1; }
.about:has(.profile-guide-portrait):has(.bio-soba[open], .bio-soba summary:focus-visible) .portrait-note { opacity: 0; }
.vhs-screen::before, .vhs-screen::after {
  content: '';
  position: absolute;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}
.vhs-screen::before {
  inset: -8%;
  background: repeating-linear-gradient(0deg, transparent 0 2px, #1f2c3866 2px 3px), url('assets/vhs-noise.png') repeat;
  mix-blend-mode: overlay;
}
.vhs-screen::after {
  inset: 0 -3% auto;
  height: 20%;
  background:
    repeating-linear-gradient(0deg, transparent 0 3px, #fff6d685 3px 4px, #a6c9f944 4px 5px),
    url('assets/vhs-noise.png'),
    linear-gradient(0deg, transparent, #a8c1e375 40%, #d9bcaa67 61%, transparent);
  mask-image: linear-gradient(0deg, transparent, black 36% 65%, transparent);
  mix-blend-mode: screen;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .profile-art:hover .vhs-screen::before { animation: tape-grain .18s steps(1) infinite; }
  .profile-art:hover .vhs-screen::after { animation: tape-tracking .61s linear infinite; }
  .about:has(.bio-soba summary:hover) .vhs-screen::before { animation: tape-grain .18s steps(1) infinite; }
  .about:has(.bio-soba summary:hover) .vhs-screen::after { animation: tape-tracking .61s linear infinite; }
}
@media (hover: hover) {
  .about:has(.bio-soba summary:hover) :is(.profile-guide-portrait, .guide-tv-caption) { opacity: 1; }
  .about:has(.profile-guide-portrait):has(.bio-soba summary:hover) .portrait-note { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .profile-guide-portrait, .guide-tv-caption { transition: none; }
}
@keyframes tape-grain {
  0%, 100% { transform: translate(0, 0); opacity: .9; }
  25% { transform: translate(3%, -4%); opacity: .68; }
  50% { transform: translate(-4%, 1%); opacity: 1; }
  75% { transform: translate(1%, 3%); opacity: .75; }
}
@keyframes tape-tracking {
  0% { transform: translateY(-120%); opacity: 0; }
  15% { opacity: .28; }
  45% { transform: translate(-1%, 198%); opacity: .22; }
  68% { transform: translate(1%, 390%); opacity: .58; }
  84%, 100% { transform: translateY(552%); opacity: 0; }
}
@keyframes tape-picture {
  0%, 32%, 76%, 100% { translate: 0 0; }
  18% { translate: -2px 0; }
  63% { translate: 2px 1px; }
}
.portrait-quest-trigger {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 6;
  padding: 0;
  border: 0;
  background: transparent;
  touch-action: manipulation;
}
.portrait-quest-trigger:focus-visible { outline-offset: -3px; }
.portrait-camera { position: absolute; inset: 0; transform-origin: 46.5% 72%; }
.portrait-film {
  position: absolute;
  width: 100%;
  aspect-ratio: 1;
  /* Place the original embedded caption just beyond the bottom of the glass. */
  bottom: 0;
  transform: translateY(12%);
  filter: brightness(.94);
}
.portrait-film .profile-portrait { filter: none; }
.portrait-expression { position: absolute; left: 36.666667%; top: 60.666667%; width: 18.222222%; height: 19.333333%; opacity: 0; pointer-events: none; }
.portrait-ride { position: absolute; opacity: 0; pointer-events: none; }
.portrait-ride {
  inset: 0 -3%;
  z-index: 4;
  overflow: hidden;
  background: #08080a;
}
.portrait-ride::before {
  content: '';
  position: absolute;
  inset: -7%;
  opacity: .92;
  background:
    repeating-linear-gradient(0deg, #0003 0 1px, transparent 1px 3px),
    url('assets/tv-snow.png') 0 0 / 149px 127px repeat;
}
.portrait-error {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: .23em;
  padding-inline: 10%;
  opacity: 0;
  background: #07110bf5;
  color: #a3dbaf;
  text-shadow: 0 0 .14em #5e986b;
  font: 500 clamp(9px, 3.9cqw, 15px)/1.26 "Courier New", monospace;
  white-space: nowrap;
}
.portrait-ride { container-type: inline-size; }
.portrait-error strong { margin-top: .35em; color: #c5f9ce; }
.portrait-error i { font-style: normal; }
.portrait-playing .portrait-error { animation: portrait-error var(--portrait-quest-time) steps(1, end) both; }
.portrait-playing .portrait-error > * { animation: terminal-line .22s steps(12, end) both; animation-delay: 4.84s; }
.portrait-playing .portrait-error > :nth-child(2) { animation-delay: 5.10s; }
.portrait-playing .portrait-error > :nth-child(3) { animation-delay: 5.40s; }
.portrait-playing .portrait-error > :nth-child(4) { animation-delay: 5.76s; }
.portrait-playing .portrait-error > :nth-child(5) { animation-delay: 6.06s; }
@keyframes terminal-line { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes portrait-error {
  0%, 100% { opacity: 0; }
  64% { opacity: 1; }
  92% { opacity: 0; }
}
.ride-cast { position: absolute; bottom: 6%; left: -24%; width: 43%; aspect-ratio: .93; transform: translateX(-50%); }
.ride-cast-bob { position: absolute; inset: 0; }
.ride-soba, .ride-knight, .ride-arm, .ride-other-arm { position: absolute; background: center / contain no-repeat; image-rendering: pixelated; }
.ride-soba { left: 0; bottom: 0; width: 100%; height: 65%; background-image: url('assets/shiba.svg'); }
.ride-knight { left: 34%; bottom: 35%; width: 39%; height: 38%; background-image: url('assets/knight-armor.png'); }
.ride-arm { left: 62%; bottom: 51%; width: 31%; height: 22%; background-image: url('assets/knight-wave.png'); transform-origin: 9% 70%; transform: rotate(28deg); }
.ride-other-arm {
  left: 20%; bottom: 45%; width: 25%; height: 18%;
  background-image: url('assets/knight-wave.png');
  transform: scaleX(-1) rotate(31deg);
  filter: brightness(.83);
}
.ride-head { position: absolute; left: 37%; top: 1%; width: 33%; height: 41%; overflow: hidden; clip-path: polygon(18% 10%, 45% 0, 72% 3%, 94% 14%, 97% 45%, 90% 62%, 88% 76%, 70% 91%, 53% 100%, 29% 96%, 17% 83%, 9% 64%, 8% 42%, 10% 21%); }
.ride-head img { position: absolute; width: 197%; height: auto; max-width: none; left: -48%; top: -7%; }
.portrait-playing { --portrait-quest-time: 7.55s; }
.portrait-playing .portrait-camera { animation: portrait-push-in var(--portrait-quest-time) both; }
.portrait-playing .portrait-expression { animation: portrait-open var(--portrait-quest-time) both; }
.portrait-playing .portrait-ride { animation: portrait-ride-scene var(--portrait-quest-time) both; }
.portrait-playing .ride-cast { animation: portrait-rider var(--portrait-quest-time) both; }
.portrait-playing .ride-cast-bob { animation: rider-bob .32s steps(2) infinite; }
.portrait-playing .ride-soba { animation: rider-stride .32s steps(1) infinite; }
.portrait-playing .ride-arm { animation: rider-wave var(--portrait-quest-time) steps(2) both; }

.portrait-playing .portrait-ride::before { animation: portrait-static .21s steps(4, jump-none) infinite; }
.tv-steam {
  position: absolute;
  z-index: 7;
  bottom: 18.9%;
  left: 11%;
  width: 47%;
  height: 50%;
  opacity: 0;
  pointer-events: none;
  background: url('assets/vhs-steam.webp') 0 0 / 4800% 100% no-repeat;
}
.profile-art:has(.portrait-playing) .tv-steam {
  animation: vhs-steam-frames 2.12s steps(47, end) 4.78s both, vhs-steam-opacity 2.12s linear 4.78s both;
}
.tv-sparks { position: absolute; inset: 0; pointer-events: none; z-index: 8; container-type: inline-size; }
.tv-sparks i {
  position: absolute;
  left: var(--slot, 33%);
  top: 81.2%;
  width: 1.1%;
  height: .45%;
  opacity: 0;
  border-radius: 50%;
  background: #fff2b2;
  box-shadow: 0 0 3px 1px #ff862f;
}
.tv-sparks i:nth-child(1) { --dx: -16cqw; --dy: -13cqw; --delay: 5.04s; }
.tv-sparks i:nth-child(2) { --dx: 9cqw; --dy: -19cqw; --delay: 5.09s; }
.tv-sparks i:nth-child(3) { --dx: -7cqw; --dy: -23cqw; --delay: 5.16s; }
.tv-sparks i:nth-child(4) { --slot: 46%; --dx: 16cqw; --dy: -11cqw; --delay: 5.83s; }
.tv-sparks i:nth-child(5) { --slot: 46%; --dx: 5cqw; --dy: -20cqw; --delay: 5.88s; }
.tv-sparks i:nth-child(6) { --slot: 22%; --dx: -14cqw; --dy: -16cqw; --delay: 6.26s; }
.tv-sparks i:nth-child(7) { --slot: 22%; --dx: 7cqw; --dy: -10cqw; --delay: 6.30s; }
@media (prefers-reduced-motion: no-preference) {
  .profile-art:has(.portrait-playing) .tv-sparks i { animation: vhs-spark .46s linear var(--delay) both; }
}
@keyframes vhs-spark {
  0% { opacity: 0; transform: none; }
  8% { opacity: 1; }
  55% { opacity: .95; transform: translate(calc(var(--dx) * .63), var(--dy)) rotate(-60deg); }
  100% { opacity: 0; transform: translate(var(--dx), calc(var(--dy) + 4cqw)) rotate(50deg) scale(.4); }
}
@keyframes vhs-steam-frames { to { background-position: 100% 0; } }
@keyframes vhs-steam-opacity { 0%, 100% { opacity: 0; } 15%, 85% { opacity: 1; } }
@keyframes portrait-static {
  from { translate: -1% -3%; }
  50% { translate: 2% 2%; }
  to { translate: -3% 4%; }
}
@keyframes portrait-open {
  0% { opacity: 0; }
  3%, 25% { opacity: 1; }
  26%, 100% { opacity: 0; }
}
@keyframes portrait-push-in {
  0%, 8% { transform: none; animation-timing-function: cubic-bezier(.55,.08,.78,.38); }
  23%, 25% { transform: translate(3.5%, -12%) scale(16); }
  26%, 100% { transform: none; }
}
@keyframes portrait-ride-scene {
  0%, 18% { opacity: 0; }
  22%, 92% { opacity: 1; transform: none; }
  93.5% { opacity: .18; transform: translateX(-2%); }
  95% { opacity: .88; transform: translateX(1%); }
  96% { opacity: .08; }
  98% { opacity: .55; transform: translateX(0); }
  100% { opacity: 0; }
}
@keyframes portrait-rider { 0%, 21% { left: -24%; } 37%, 48% { left: 48%; } 63%, 100% { left: 128%; } }
@keyframes rider-bob { 50% { translate: 0 -3px; } }
@keyframes rider-stride { 50% { background-image: url('assets/shiba-stride.svg'); } }
@keyframes rider-wave { 0%, 36%, 49%, 100% { transform: rotate(28deg); } 38%, 42%, 46% { transform: rotate(-23deg); } 40%, 44%, 48% { transform: rotate(1deg); } }
@media (prefers-reduced-motion: reduce) {
  .portrait-playing .portrait-ride { animation: portrait-ride-quiet 1.6s both; }
  .profile-art:has(.portrait-playing) .tv-steam, .portrait-playing .portrait-ride::before { animation: none; }
  @keyframes portrait-ride-quiet { 0%, 100% { opacity: 0; } 20%, 80% { opacity: 1; } }
  .portrait-playing { --portrait-quest-time: 1.6s; }
  .portrait-playing .portrait-error > * { animation: none; }
  .portrait-playing .ride-cast { left: 50%; visibility: hidden; }
  .portrait-playing .ride-cast-bob { animation: quiet-rider 1.6s steps(1, end) both; }
  @keyframes quiet-rider { 0% { visibility: visible; } 62%, 100% { visibility: hidden; } }
  .portrait-playing :is(.portrait-camera, .portrait-expression, .ride-cast, .ride-soba, .ride-arm) { animation: none; }
}
.vhs-screen { container-type: inline-size; }
.portrait-note {
  position: absolute;
  z-index: 2;
  inset: auto 3% 3%;
  margin: 0;
  color: #ffdf58;
  font: 700 clamp(12px, 5.4cqw, 21px)/1.12 Arial, sans-serif;
  text-align: center;
  text-wrap: balance;
  text-shadow: -1px 0 #18130c, 1px 0 #18130c, 0 1px 2px #100d09;
  pointer-events: none;
}
.portrait-playing .portrait-note { visibility: hidden; }
.profile-copy {
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 10px;
  border: 0;
  background: transparent;
  width: min(100%, 490px);
  justify-self: center;
  padding: 10px 0;
}
.about-name .heading-pipe {
  display: inline-block;
  width: .08em;
  height: .7em;
  height: 1cap;
  overflow: hidden;
  text-indent: -2em;
  vertical-align: baseline;
  background: currentColor;
}
.heading-pipe { color: var(--steel-deep); font-weight: 400; }
.about-name, .features h2, .clients h2 {
  font-family: var(--type-editorial);
  font-weight: 800;
  letter-spacing: -.075em;
}
.scroll-layer .about { margin-bottom: 28px; }
.features { padding-top: clamp(12px, 1.45vw, 20px); margin-bottom: 22px; }
.about > .section-label a:is(:hover, :focus-visible) {
  background: var(--steel-pale);
  color: var(--ink);
  box-shadow: 0 0 0 4px var(--steel-pale);
  text-decoration: underline;
  text-underline-offset: .18em;
}
.profile-copy:has(> .features) { width: 100%; }
.profile-copy > .features { width: 100%; margin: 20px 0 0; }
@media (min-width: 960px) {
  .about {
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
    grid-template-rows: auto auto 1fr;
    column-gap: 24px;
  }
  .about > .section-label { grid-column: 1 / -1; }
  .about-heading { grid-column: 1; grid-row: 2; margin-top: 0; }
  .about > .profile { display: contents; }
  .about .profile-art { grid-column: 1; grid-row: 3; align-self: start; margin-top: 16px; width: min(100%, clamp(298px, 26vw, 338px)); }
  .about .profile-copy { grid-column: 2; grid-row: 2 / span 2; align-self: start; margin-top: 16px; }
  .about .profile-copy > .chip { margin-bottom: 10px; }
  .about .profile-copy > :is(.about-name, .chip) { justify-self: start; text-align: left; }
  .about .about-name { position: relative; }
  .about .about-name .heading-pipe:first-child { position: absolute; right: calc(100% + .18em); bottom: .14em; }

  .profile-copy:has(> .features) {
    display: grid;
    grid-template-columns: minmax(0, .98fr) minmax(0, 1.02fr);
    align-items: start;
    column-gap: clamp(14px, 1.6vw, 25px);
  }
  .profile-copy:has(> .features) > :is(.about-name, .chip) { grid-column: 1 / -1; }
  .profile-copy:has(> .features) > :is(.bio-lines, p, .profile-contact) { grid-column: 1; }
  .profile-copy:has(> .features) .bio-lines { text-align: left; }
  .profile-copy:has(> .features) .action { justify-self: start; }
  .profile-copy > .features {
    grid-column: 2;
    grid-row: 3 / span 4;
    padding: 0 0 0 clamp(10px, 1.25vw, 18px);
    margin: 0;
    border-left: 1px solid var(--line);
    text-align: left;
  }
  .profile-copy > .features .section-label { justify-content: flex-start; padding: 0; border: 0; }
  .profile-copy > .features .feature-list li { font-size: clamp(11px, .9vw, 13px); padding: 3px 3px 3px 10px; }
}
.features .section-label, .clients .section-label {
  justify-content: center;
  padding: clamp(20px, 2vw, 28px) 0 8px;
  margin-bottom: 10px;
  border-bottom: 0;
}
.features #features-heading { font-size: calc(clamp(12px, .95vw, 14px) + 2px); letter-spacing: -.035em; }
@media (min-width: 960px) { .features #features-heading { font-size: calc(clamp(11px, .9vw, 13px) + 2px); } }
.features .section-label { padding-block: 17px 5px; margin-bottom: 6px; }
.features h2, .clients h2 {
  color: var(--ink);
  font-size: clamp(24px, 3vw, 39px);
  line-height: .95;
  text-transform: uppercase;
}
.profile-copy .chip {
  padding: 0;
  background: transparent;
  color: var(--steel-ink);
  font: 700 13px/1.4 var(--type-editorial);
  letter-spacing: .015em;
  text-transform: uppercase;
}
.profile-copy p { max-width: 54ch; color: var(--muted); }
.bio-lines, .feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.bio-lines {
  display: grid;
  width: min(100%, 56ch);
  margin: 3px auto 0;
  text-align: center;
  font: 400 clamp(12px, .96vw, 14px)/1.4 var(--type-editorial);
  letter-spacing: -.012em;
}
.bio-lines li { border-top: 1px solid #DEDCD6; padding: 4px 0; }
.bio-lines li:last-child { border-bottom: 1px solid #DEDCD6; }
@media (min-width: 701px) {
  .bio-lines li:first-child { border-top: 0; }
  .bio-lines li:last-child { border-bottom: 0; }
  #features-heading .heading-pipe { display: none; }
}
.bio-shiba {
  display: inline-block;
  margin-left: 7px;
  vertical-align: -.19em;
  image-rendering: pixelated;
}
.profile-contact { display: flex; align-items: center; gap: 4px; min-width: 0; max-width: 100%; }
.profile-contact > .action { min-width: 0; padding-inline: clamp(8px, 1vw, 14px); }
.profile-linkedin {
  flex: 0 0 44px;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--steel-ink);
}
.profile-linkedin:is(:hover, :focus-visible) { color: #0a66c2; }
.profile-copy .action {
  box-shadow: none;
  margin-top: 2px;
}
.bio-lines a, .feature-list a {
  color: var(--steel-ink);
  text-decoration: underline;
  text-underline-offset: .18em;
}
.feature-list li {
  padding: 4px 5px 4px 13px;
  position: relative;
  font-size: clamp(12px, .95vw, 14px);
  line-height: 1.28;
}
.feature-list a { font-weight: 400; text-decoration-color: #9EAAB2; text-decoration-thickness: 1px; }
.feature-list li::before {
  content: '+';
  position: absolute;
  left: 0;
  color: var(--steel-deep);
  font-family: var(--type-editorial);
  font-weight: 700;
}
.feature-detail { white-space: pre-wrap; color: var(--muted); font-size: .92em; }
.feature-note { display: block; }
.client-logos {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid #C9CAC6;
  border-left: 1px solid #C9CAC6;
  padding: 0;
  margin: 0;
  list-style: none;
}
.client-logos li {
  min-height: 112px;
  border-right: 1px solid #C9CAC6;
  border-bottom: 1px solid #C9CAC6;
  display: grid;
  place-items: center;
  padding: 15px;
}
.client-logos img {
  display: block;
  width: min(100%, 132px);
  height: 72px;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.modal { --muted: #B6C7D8; }
#reel-dialog {
  width: min(94vw, calc(50vw + 425px), calc((90dvh - 100px) * 16 / 9));
}
.reel-player { background: #080a12; color: white; }
.reel-controls { display: flex; align-items: center; gap: 6px; padding: 4px 8px; }
.reel-controls [hidden], .reel-controls[hidden] { display: none; }
.reel-controls button, .reel-controls select {
  min-height: 32px; padding: 3px 6px; border: 0; background: #172235; color: white;
  font: 600 12px/1 var(--type-editorial); cursor: pointer;
}
.reel-controls [data-fullscreen] { font-size: 20px; }
.reel-controls input { min-width: 0; accent-color: #a9c6e2; }
.reel-controls [data-seek] { flex: 1; width: 0; }
.reel-controls [data-volume] { width: clamp(36px, 7vw, 82px); }
.reel-player:fullscreen { display: flex; flex-direction: column; }
.reel-player:fullscreen .embed { flex: 1; min-height: 0; }
.modal a { color: #B5CFE1; }
#photo-dialog { width: min(1280px, 96vw); }
#photo-dialog #photo-full { max-height: 76dvh; touch-action: pan-y; }
#photo-dialog .modal-nav button { min-width: max-content; }
#photo-caption { text-align: center; }
body:has(#photo-dialog[open]) { overflow: hidden; }

#project-dialog { background: var(--bg); color: var(--ink); }
#project-dialog .case-info {
  position: relative;
  gap: 8px;
  padding: clamp(18px, 4vw, 40px);
}
.case-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--ink);
  background: var(--bg);
  color: var(--ink);
  font: 400 29px/1 var(--type-editorial);
}
.case-close:hover { color: var(--bg); background: var(--ink); }
#project-dialog .case-info h2 {
  max-width: 100%;
  padding-right: 35px;
  color: var(--ink);
  font-size: clamp(28px, 5vw, 58px);
  text-transform: uppercase;
}
#project-dialog .case-info p { margin: 0; color: var(--ink); }
#project-dialog #case-title { font-family: var(--type-serif); font-weight: 400; font-style: italic; font-size: clamp(16px, 2vw, 23px); line-height: 1.15; }
#project-dialog #case-title { color: var(--steel-ink); }
#project-dialog #case-kind { color: var(--muted); }
#project-dialog #case-role { font-weight: 700; }
#case-description {
  font-family: var(--type-retro);
  display: grid;
  gap: .85em;
  max-width: 68ch;
  line-height: 1.55;
}
#case-description p { white-space: pre-line; }
#project-dialog .case-info a { color: var(--steel-ink); }
.case-stills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: 100%; margin-top: 12px; }
.case-stills img { display: block; width: 100%; height: auto; }
#project-dialog .modal-nav {
  padding-inline: clamp(18px, 4vw, 40px);
  border-color: var(--line);
}

@media (max-width: 700px) {
  html { scroll-padding-top: 65px; }
  /* The browser pins Work while the photo strip uses the reserved scroll distance. */
  .has-scroll-layers .work-scroll-scene {
    display: flow-root;
    position: sticky;
    z-index: 1;
    pointer-events: none;
    top: var(--work-scene-top);
    margin-top: calc(-1 * var(--strip-hold, 0px));
  }
  .has-scroll-layers .work-scroll-scene::after {
    content: "";
    display: block;
    height: var(--strip-hold, 0px);
  }
  .has-scroll-layers .work-scroll-scene > .scroll-layer {
    top: var(--work-hold-top);
    pointer-events: auto;
  }
  #case-description { font-size: .78125rem; }
  .profile-copy .about-final-role { display: block; }
  .top, .top:has(.shiba-shortcut) {
    grid-template-columns: 1fr auto;
    min-height: 58px;
    padding: 5px 3vw;
  }
  .top .shiba-shortcut { display: none; }
  .scroll-layer > [data-section="work"] { margin-bottom: 54px; }
  .scroll-layer > [data-section="photo"] { margin-bottom: 41.25px; }
  .project-name { display: grid; gap: 3px; white-space: normal; }
  .project-name > span { display: none; }
  .project-meta .project-brand, .project-meta .project-title {
    max-width: none;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
  }
  .role-mobile { display: inline; }
  .role-desktop, .reel-screen .screen-bottom, .reel-screen .big-play { display: none; }
  .hero .eyebrow { white-space: nowrap; font-size: clamp(7.5px, 2.45vw, 12px); gap: 5px; }
  .hero .eyebrow .dot { width: 6px; height: 6px; flex: none; }
  .photo-tile .photo-caption { opacity: 1; background: #17171a93; font-size: 11px; }
  .shiba-menu-toggle {
    position: relative;
    display: grid;
    place-content: center;
    gap: 4px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--steel-deep);
    color: var(--steel-ink);
    background: var(--steel-pale);
  }
  .shiba-menu-toggle[aria-expanded="true"] { color: white; background: var(--steel-ink); }
  .shiba-menu-toggle span { display: block; width: 19px; height: 2px; background: currentColor; }
  .mobile-soba-prompt {
    display: block;
    position: absolute;
    z-index: 2;
    right: calc(3vw + 51px);
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
  }
  .mobile-soba-prompt::before {
    content: '';
    position: absolute;
    right: 4px;
    bottom: 4px;
    width: 36px;
    height: 27px;
    background: url('assets/shiba.svg?v=19') center / contain no-repeat;
    image-rendering: pixelated;
    pointer-events: none;
  }
  .top .guidebar {
    display: none;
    position: absolute;
    top: 100%;
    right: 3vw;
    width: min(220px, 94vw);
    border: 1px solid var(--steel-deep);
    background: var(--bg);
    box-shadow: 3px 4px var(--steel-deep);
  }
  .top:has(.shiba-menu-toggle[aria-expanded="true"]) .guidebar { display: block; }
  .top .guide-route {
    height: auto;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 8px 8px 54px;
  }
  .top .guide-route [data-station="home"], .top .guide-route a::before, .top .guide-track { display: none; }
  .top .guide-route a {
    display: flex;
    align-items: center;
    min-height: 44px;
    color: #18191B;
    font: italic 750 16px/1.2 var(--type-editorial);
    padding: 0 10px;
  }
  .top .guide-route .mobile-game-link {
    display: flex;
    align-items: center;
    min-height: 44px;
    margin-top: 4px;
    padding: 0 10px;
    border: 0;
    border-top: 1px solid var(--line);
    background: var(--steel-pale);
    color: var(--ink);
    font: 700 13px/1.2 var(--type-editorial);
  }
  .game .boring-nav, .game-secret-hint, .game-desktop-label, .game-key-group > span { display: none; }
  .game-touch-label { display: inline; }
  .game-intro { font-size: clamp(11px, 3.05vw, 16px); }
  .game-tagline { display: block; }
  .game-toolbar { flex-wrap: wrap; }
  .game .game-keys { flex-wrap: wrap; gap: 4px; }
  .game .game-keys button { min-width: 40px; min-height: 40px; }
  .game-keys [data-jump] kbd { display: none; }
  .game-keys kbd { border: 0; font-size: 17px; }
  .world-ui .waypoint { width: max(8.75%, 44px); height: max(17.8%, 44px); }
  .world-ui .waypoint-label { top: 6.2cqw; border-width: 1px; padding: 2px 3px; font-size: clamp(10px, 2.7vw, 13px); }
  .game-preview { border-width: 1px; padding: 2px; box-shadow: 1px 2px #1b2038; }
  .game-preview[data-preview]:not([data-preview="start"]), .game .stop-action:not([hidden]) { display: none; }
  .game-preview-label { padding: 2px; font-size: clamp(6px, 1.7vw, 9px); }
  .season-cube, .secret-crystal { min-width: 44px; min-height: 44px; }
  #guide-dog {
    left: 27px;
    top: 30px;
    transform: translate(-50%, -50%);
    transition: top .22s ease-out;
  }
  .client-logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 700px) and (prefers-reduced-motion: no-preference) {
  .top .identity:not([aria-pressed="true"]) .identity-short { animation: mobile-mark 4s steps(1) infinite; }
  .top .identity:not([aria-pressed="true"]) .identity-full { animation: mobile-name 4s steps(1) infinite; }
  .top .identity:not([aria-pressed="true"]) .identity-full::before { animation: mobile-glitch 4s steps(1) infinite; }
  .heading-word:not([data-typewriter="pending"], [data-typewriter="typing"]) + .section-cursor { animation: mobile-cursor 2s steps(1) infinite; }
  .type-line-fun .hero-shiba { animation: mobile-fun-walk 3.8s linear infinite; }
  .type-line-fun .hero-shiba-walk { animation: mobile-fun-stride 3.8s steps(1) infinite; }
  .type-line-fun .hero-shiba-sit { animation: mobile-fun-sit 3.8s steps(1) infinite; }
  .type-line-fun .hero-shiba-tail { animation: hero-shiba-wag .4s steps(2) infinite; }
  .type-line-fun .hero-fun-glitch::before { animation: mobile-glitch 3.8s steps(1) infinite; }
  .mobile-soba-prompt {
    --patrol-time: 6.4s;
    animation: mobile-menu-trot var(--patrol-time) ease-in-out infinite;
  }
  .mobile-soba-prompt::before {
    animation: mobile-menu-turn var(--patrol-time) steps(1, end) infinite,
               mobile-menu-stride var(--patrol-time) steps(1, end) infinite;
  }
  .vhs-screen::before { animation: mobile-tape-grain 2s steps(1) infinite; }
  .vhs-screen::after { animation: mobile-tape-tracking 2s linear infinite; }
}
@keyframes mobile-mark {
  0%, 100% { opacity: 1; transform: none; }
  47% { opacity: .6; transform: translateX(5px); }
  50%, 97% { opacity: 0; }
  98% { opacity: .65; transform: translateX(-3px); }
}
@keyframes mobile-name {
  0%, 100% { opacity: 0; }
  48% { opacity: .7; transform: translateX(-5px); }
  50% { opacity: 1; transform: none; }
  97% { opacity: 0; transform: translateX(3px); }
}
@keyframes mobile-glitch {
  0%, 46%, 52%, 96%, 100% { opacity: 0; }
  47%, 97% { opacity: .8; clip-path: inset(9% 0 62%); transform: translateX(6px); }
  49%, 98% { opacity: .65; clip-path: inset(56% 0 13%); transform: translateX(-4px); }
}
@keyframes mobile-cursor { 33%, 67% { opacity: 0; } 50%, 84% { opacity: 1; } }
@keyframes mobile-fun-walk { 0%, 48% { transform: translateX(-.48em); } 65%, 100% { transform: translateX(.19em); } }
@keyframes mobile-fun-stride {
  0%, 65%, 100% { opacity: 0; }
  49%, 57% { opacity: 1; background-image: url('assets/shiba.svg?v=19'); }
  53%, 61% { opacity: 1; background-image: url('assets/shiba-stride.svg'); }
}
@keyframes mobile-fun-sit { 0%, 88%, 100% { opacity: 0; } 65% { opacity: 1; } }
@keyframes mobile-menu-trot {
  0%, 75%, 100% { translate: min(-28px, calc(79px - 47vw)) 0; }
  25%, 50% { translate: 0 0; }
}
@keyframes mobile-menu-turn {
  0%, 100% { scale: 1 1; }
  50% { scale: -1 1; }
}
/* Each quarter-cycle is one crossing or one seated pause. */
@keyframes mobile-menu-stride {
  0%, 6.25%, 12.5%, 18.75%, 50%, 56.25%, 62.5%, 68.75%, 100% {
    background-image: url('assets/shiba.svg?v=19');
    transform: none;
  }
  3.125%, 9.375%, 15.625%, 21.875%, 53.125%, 59.375%, 65.625%, 71.875% {
    background-image: url('assets/shiba-stride.svg');
    transform: translateY(-1px);
  }
  75% { background-image: url('assets/shiba-napping.svg'); transform: none; }
  25% {
    background-image: url('assets/shiba-sitting.svg');
    transform: none;
  }
}
@keyframes mobile-tape-grain {
  0%, 100% { opacity: 0; }
  2%, 9% { opacity: .9; transform: translate(-2%, 2%); }
  5%, 12% { opacity: .65; transform: translate(3%, -3%); }
  17% { opacity: 0; }
}
@keyframes mobile-tape-tracking {
  0% { transform: translateY(-110%); opacity: 0; }
  9% { opacity: .32; }
  16% { transform: translate(1%, 400%); opacity: .42; }
  22%, 100% { transform: translateY(560%); opacity: 0; }
}

@media (max-width: 560px) {
  .identity { min-height: 40px; }
  .wordmark-pixels { width: clamp(110px, 29vw, 140px); }
  .identity .identity-full { font-size: 14px; }
  .hero h1 { font-size: clamp(32px, 10.8vw, 57px); }
  .profile { grid-template-columns: 1fr; }
  .about-heading > h2:first-child { font-size: clamp(38px, 10vw, 54px); }
  .profile-copy .about-name { font-size: clamp(18px, 6vw, 26px); }
  .game .game-keys { margin-left: 0; }
  .game .game-keys button { min-height: 38px; }
  .profile-art { width: min(100%, 340px); }
  .client-logos li { padding: 8px; min-height: 78px; }
  .client-logos img { height: 56px; }
  .photo-portal > span { flex-wrap: wrap; }
  #photo-dialog .modal-nav { padding: 8px; }
  #photo-dialog .modal-nav button { font-size: 12px; }
  .case-stills { grid-template-columns: 1fr; }
}


.top .guide-route a:is(.active, [aria-current="location"]) { color: var(--hero-berry); }

.mobile-game-instructions, .game-secret-message { display: none; }
@media (max-width: 700px) {
  .game .game-keys, .game #game-message { display: none; }
  .mobile-game-instructions, .game-secret-message:not(:empty) {
    display: block;
    color: #e6f1fa;
    font: 700 14px/1.4 var(--type-retro);
  }
  .game-secret-message:not(:empty) { padding: 9px 5px 2px; }
  .game .world, .game .world button { touch-action: manipulation; }
}

.hero.reel-home {display:block; width:100%; padding:clamp(16px,2vw,30px) 0 0; margin:0 0 clamp(28px,4vw,62px)}
.reel-home .hero-reel {width:min(1320px,94%);margin-inline:auto}
.reel-home .reel-screen {aspect-ratio:2.39 / 1;display:grid;place-items:center}
.reel-home .reel-screen :is(img,video) {object-fit:cover}
.creative-reel-label {
  position:relative;z-index:2;display:inline-grid;place-items:center;padding:.7em 1.1em;
  color:white;border:2px solid currentColor;background:transparent;
  font:500 clamp(13px,1.22vw,18px)/1 "DM Sans",var(--type-editorial);letter-spacing:.04em;
  text-shadow:0 1px 5px #0009;box-shadow:0 0 2px #0008;transition:background-color .16s,color .16s
}
.reel-screen:is(:focus-visible,:active) .creative-reel-label {
  border-color: white; background: white; color: var(--steel-ink); font-style: italic; text-shadow: none;
}
@media (hover:hover) {
  .reel-screen:hover .creative-reel-label {
    border-color: white; background: white; color: var(--steel-ink); font-style: italic; text-shadow: none;
  }
}
.creative-reel-label .reel-shiba {
  position: absolute;
  bottom: 100%;
  left: 50%;
  width: 46px;
  height: 30px;
  translate: -50% 0;
  background: url('assets/shiba-peek.svg') center bottom / contain no-repeat;
  image-rendering: pixelated;
  pointer-events: none;
  visibility: hidden;
}
.reel-screen:focus-visible .creative-reel-label .reel-shiba { visibility: visible; }
body:has(.reel-screen:focus-visible) .shiba-peek,
body:has(.reel-screen:focus-visible) .mobile-soba-prompt::before { visibility: hidden; }
@media (hover: hover) {
  .creative-reel-label:hover .reel-shiba { visibility: visible; }
  body:has(.creative-reel-label:hover) .shiba-peek,
  body:has(.creative-reel-label:hover) .mobile-soba-prompt::before { visibility: hidden; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .creative-reel-label:hover .reel-shiba { animation: reel-peek .2s ease-out both; }
  @keyframes reel-peek { from { transform: translateY(65%); clip-path: inset(0 0 65%); } }
}
.creative-reel-label > [data-text] { position: relative; }
@media (prefers-reduced-motion: no-preference) {
  .creative-reel-label > [data-text]::before, .creative-reel-label > [data-text]::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    color: var(--hero-berry);
  }
  .creative-reel-label > [data-text]::after { color: var(--steel-deep); }
  .reel-screen:focus-visible .creative-reel-label > [data-text]::before { animation: id-slice 440ms steps(2); }
  .reel-screen:focus-visible .creative-reel-label > [data-text]::after { animation: id-slice 330ms reverse steps(2); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .reel-screen:hover .creative-reel-label > [data-text]::before { animation: id-slice 440ms steps(2); }
  .reel-screen:hover .creative-reel-label > [data-text]::after { animation: id-slice 330ms reverse steps(2); }
}
.reel-home > .eyebrow {width:min(1320px,94%);margin-inline:auto}
.reel-home > .eyebrow {margin-block:clamp(22px,2.4vw,42px) clamp(14px,1.4vw,24px)}
.reel-home .story-row {display:grid;grid-template-columns:max-content minmax(0,1fr);align-items:center;gap:clamp(14px,2vw,36px);width:min(1320px,94%);margin-inline:auto}
.story-row h1 {margin:0}
.story-row .photo-strip {padding:0;min-width:0;mask-image:linear-gradient(to right,transparent,#000 min(20%,110px));-webkit-mask-image:linear-gradient(to right,transparent,#000 min(20%,110px))}
@media(min-width:901px){ .reel-home > .eyebrow {font-size:clamp(9px,.773vw,11.64px)} }
@media(max-width:700px){
  .reel-home > .eyebrow {margin-block:16px 10px}
  .reel-home .story-row {display:block}
  .reel-home .hero-copy {width:100%;margin:0 0 18px}
  .story-row .photo-strip {mask-image:none;-webkit-mask-image:none}
}

.shiba-peek::after {
  content: "";
  min-height: 0;
  background: url("assets/shiba-napping.svg") center bottom / auto max(0px, calc(100% - 2px)) no-repeat;
  image-rendering: pixelated;
}
@media (prefers-reduced-motion: no-preference) {
  body:not(.motion-off) .shiba-shortcut:not(:hover, :focus-within) .shiba-peek { animation: shortcut-pose 4.6s steps(1, end) infinite; }
}
/* Only the active pose gets a row tall enough to paint. */
@keyframes shortcut-pose {
  0%, 100% { grid-template-rows: 100% 0%; }
  54% { grid-template-rows: 0% 100%; }
}

.plain-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: clamp(14px, 3vw, 40px);
}
.plain-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 700;
}
.plain-nav a:is(:hover, :focus-visible) { text-decoration: underline; }
@media (max-width: 700px) {
  .top:has(.plain-nav) { grid-template-columns: 1fr; gap: 0; }
  .plain-nav { justify-content: space-between; }
}
