:root {
  --paper: #fff4df;
  --press-ink: #161411;
  --cobalt: #2045ed;
  --gutter: clamp(20px, 3.35vw, 76px);
  --mast-height: clamp(60px, 5vw, 80px);
  --rail-height: clamp(58px, 5vw, 80px);
  scrollbar-color: #7d7467 var(--paper);
}
body { color: var(--press-ink); background: var(--paper); }
.studio-mast, .studio-poster, .footer { font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif; }
.studio-mast, .studio-poster { background: var(--paper) url("images/studio/paper-grain.png") repeat; }
.skip-link { position: fixed; top: -5em; left: 12px; z-index: 50; padding: 8px 16px; background: white; color: #101010; }
.skip-link:focus { top: 8px; }
.studio-mast :focus-visible, .studio-poster :focus-visible, .footer :focus-visible { outline: 3px solid var(--cobalt); outline-offset: 5px; }
.studio-mast {
  position: relative;
  z-index: 5;
  min-height: var(--mast-height);
  padding: 8px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.mast-identity, .mast-actions { display: flex; align-items: center; }
.mast-identity { gap: 12px; }
.mast-identity div { display: grid; gap: 3px; }
.mast-identity b { font: 850 13px/1 Arial, sans-serif; letter-spacing: .035em; }
.mast-identity div > span { font: 600 9px/1.1 ui-monospace, Menlo, monospace; letter-spacing: .12em; }
.studio-flower {
  width: 28px;
  aspect-ratio: 1;
  display: inline-block;
  background: var(--cobalt);
  clip-path: polygon(33% 0,67% 0,67% 16%,84% 16%,84% 33%,100% 33%,100% 67%,84% 67%,84% 84%,67% 84%,67% 100%,33% 100%,33% 84%,16% 84%,16% 67%,0 67%,0 33%,16% 33%,16% 16%,33% 16%);
}
.studio-flower::after { content: ""; display: block; width: 29%; height: 29%; margin: 36%; background: var(--paper); }
.mast-actions { gap: 8px; }
.mast-contact, .studio-menu summary {
  min-height: 44px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 2px solid var(--press-ink);
  text-decoration: none;
}
.mast-contact { gap: 14px; padding: 8px 17px; background: var(--press-ink); color: var(--paper); font-weight: 800; font-size: clamp(13px, 1.03vw, 18px); }
.mast-contact span { font: bold 1.3em/1 Arial,sans-serif; }
.studio-menu { position: relative; }
.studio-menu summary { width: 44px; list-style: none; cursor: pointer; }
.studio-menu summary::-webkit-details-marker { display: none; }
.menu-lines { position: relative; width: 19px; height: 9px; }
.menu-lines::before, .menu-lines::after { content: ""; position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; }
.menu-lines::before { top: 0; }
.menu-lines::after { bottom: 0; }
.studio-menu[open] .menu-lines::before { top: 3px; transform: rotate(45deg); }
.studio-menu[open] .menu-lines::after { bottom: 4px; transform: rotate(-45deg); }
.studio-menu nav {
  position: absolute; right: 0; top: calc(100% + 7px); width: 240px; padding: 4px 14px;
  border: 2px solid var(--press-ink); background: var(--paper) url("images/studio/paper-grain.png"); box-shadow: 5px 5px var(--press-ink);
}
.studio-menu nav a { display: flex; justify-content: space-between; align-items: center; min-height: 46px; gap: 18px; font-size: .94rem; font-weight: 800; text-decoration: none; }
.studio-menu nav a + a { border-top: 1px solid #b5a998; }
.studio-menu nav a:hover, .poster-nav a:hover { color: var(--cobalt); }
.mast-contact:hover { background: var(--cobalt); }
.studio-poster { --spot: #2045ed; --hue: 0deg; position: relative; }
.studio-poster[data-ink="pink"] { --spot: #d92381; --hue: 91deg; }
.studio-poster[data-ink="orange"] { --spot: #db5908; --hue: 153deg; }
.poster-scene {
  position: relative;
  isolation: isolate;
  container-type: size;
  overflow: hidden;
  height: clamp(480px, calc(100svh - var(--mast-height) - var(--rail-height)), 53.5vw);
  min-height: 39vw;
}
.poster-heading {
  position: absolute;
  z-index: 1;
  top: 1.5%;
  left: var(--gutter);
  width: 74%;
  width: min(74%, 147cqh);
  pointer-events: none;
}
.poster-heading h1 { margin: 0; line-height: 0; width: 100%; }
.poster-heading h1 img { width: 100%; height: auto; }
.poster-intro {
  white-space: nowrap;
  text-wrap: nowrap;
  margin: clamp(14px, 1.65vw, 32px) 0 0 3px;
  color: var(--press-ink);
  font-size: clamp(18px, 1.64vw, 32px);
  font-weight: 900;
  line-height: 1.55;
  letter-spacing: -.045em;
}
.poster-terrain {
  position: absolute; z-index: 0; bottom: -1px; left: 0;
  width: 100%; max-width: none; height: 47%;
  pointer-events: none; filter: hue-rotate(var(--hue)); user-select: none;
}
.mascot-stage {
  position: absolute; z-index: 2; width: 27%; width: min(27%, 46cqh); left: 37%; bottom: 4.5%;
  aspect-ratio: 740/589; pointer-events: none;
  transform: translate(var(--look-x, 0px), var(--look-y, 0px));
  transition: transform .32s ease-out;
}
.ink-runner {
  position: relative;
  width: 100%; height: 100%; display: block; padding: 0; border: 0; color: var(--press-ink);
  background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent;
  pointer-events: auto; touch-action: manipulation; transform-origin: 55% 90%;
}
.ink-runner:disabled { cursor: default; }
.ink-runner img { height: auto; width: 100%; user-select: none; -webkit-user-drag: none; }
.ink-runner:focus-visible { outline-offset: 4px; border-radius: 42%; }
.ink-runner:not(:disabled):hover img { transform: rotate(-2deg); }
.ink-runner img { transition: transform .2s ease; }
.mascot-shadow {
  position: absolute; width: 52%; height: 3%; bottom: -1%; left: 16%;
  background: var(--press-ink) url("images/studio/paper-grain.png");
  transform: rotate(-9deg) skewX(-35deg); border-radius: 50%;
}
.mascot-shadow::before {
  content: ""; position: absolute; background: inherit; width: 74%; height: 30%; bottom: -45%; left: -6%; border-radius: 55%;
}
.jump-note {
  position: absolute; bottom: 9%; left: -3%; padding: .25em .46em;
  border: 1.5px solid currentColor; background: var(--paper);
  font: bold italic clamp(9px, .85vw, 16px)/1 ui-monospace, Menlo, monospace;
  letter-spacing: .04em; transform: rotate(-11deg);
}
.ink-runner:disabled .jump-note { display: none; }
.app-portal {
  position: absolute; z-index: 3; top: 34%; right: 5.8%; display: flex;
  flex-direction: column; align-items: flex-start; color: var(--press-ink); text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.portal-bubble {
  position: relative; display: flex; align-items: flex-start; flex-direction: column; gap: 5px;
  border: max(2px, .18vw) solid var(--press-ink); border-radius: 5px;
  padding: clamp(9px,.85vw,16px) clamp(12px,1.15vw,24px);
  background: var(--paper) url("images/studio/paper-grain.png"); box-shadow: 3px 3px 0 var(--press-ink);
  transform: rotate(-3deg); transform-origin: 15% 100%; transition: transform .18s ease-out;
}
.portal-bubble::before, .portal-bubble::after {
  content: ""; position: absolute; left: 5%; top: 100%; width: 24px; height: 24px;
  clip-path: polygon(18% 0%, 100% 0%, 0% 100%); background: var(--press-ink);
}
.portal-bubble::after { width: 17px; height: 18px; margin-left: 2px; margin-top: -2px; background: var(--paper); }
.portal-overline { font: 800 clamp(8px, .65vw, 12px)/1 ui-monospace, Menlo, monospace; letter-spacing: .11em; color: #38352c; }
.portal-bubble strong { font-size: clamp(18px, 1.6vw, 32px); font-weight: 900; line-height: 1.25; letter-spacing: -.07em; white-space: nowrap; }
.portal-bubble strong span { margin-left: 6px; font-family: Arial,sans-serif; }
.portal-marker { position: relative; display: block; margin: clamp(18px, 1.9vw, 34px) 0 0 -12%; width: clamp(55px, 5.4vw, 105px); aspect-ratio: 1; transform: rotate(-3deg); }
.portal-marker i {
  display: block; width: 100%; height: 100%; border: 3px solid var(--spot); border-radius: 3px;
  background: repeating-conic-gradient(var(--spot) 0 25%, var(--paper) 0 50%) 0 0/40% 40%; box-shadow: 2px 2px 0 var(--paper);
}
.portal-marker b, .portal-marker b::before, .portal-marker b::after {
  display: block; position: absolute; content: ""; width: 25%; height: 5%; background: var(--spot); border-radius: 3px;
}
.portal-marker b { left: 105%; top: 8%; transform: rotate(-30deg); }
.portal-marker b::before { width: 100%; height: 100%; top: -240%; left: -22%; transform: rotate(-24deg); }
.portal-marker b::after { width: 86%; height: 100%; top: 265%; left: -2%; transform: rotate(31deg); }
.portal-marker img { position: absolute; left: 65%; top: 55%; width: 75%; height: auto; transition: transform .18s ease; }
.app-portal:hover .portal-bubble, .app-portal:focus-visible .portal-bubble { transform: translate(2px,-4px) rotate(0); }
.app-portal:hover .portal-marker img { transform: translate(-5px,-6px) rotate(-7deg); }
.pixel-trail {
  position: absolute; z-index: 1; left: 61.3%; top: 60%; width: 20%; height: 17%;
  color: var(--spot); pointer-events: none;
}
.pixel-trail i {
  position: absolute; width: clamp(11px, 1.8vw, 36px); aspect-ratio: 1;
  background: currentColor; clip-path: polygon(0 0,33% 0,33% 33%,67% 33%,67% 0,100% 0,100% 33%,67% 33%,67% 67%,100% 67%,100% 100%,67% 100%,67% 67%,33% 67%,33% 100%,0 100%,0 67%,33% 67%,33% 33%,0 33%);
}
.pixel-trail i:nth-child(1) { left: 0; top: 93%; width: .7vw; }
.pixel-trail i:nth-child(2) { left: 13%; top: 72%; width: 1.2vw; }
.pixel-trail i:nth-child(3) { left: 37%; top: 47%; }
.pixel-trail i:nth-child(4) { left: 62%; top: 24%; }
.pixel-trail i:nth-child(5) { right: 0; top: 0; }
.ink-fx { position: absolute; z-index: 4; inset: 0; overflow: hidden; pointer-events: none; }
.ink-fx i { position: absolute; background: var(--spot); }
.poster-rail {
  position: relative; display: flex; min-height: var(--rail-height); align-items: center;
  justify-content: space-between; gap: 20px; padding: 6px var(--gutter); border-bottom: 2px solid var(--press-ink);
}
.poster-nav, .poster-controls, .ink-palette { display: flex; align-items: center; }
.poster-nav { gap: clamp(16px, 3vw, 62px); }
.poster-nav a {
  display: inline-flex; align-items: center; gap: 7px; min-height: 44px; color: var(--press-ink);
  text-decoration: none; font-size: clamp(14px, 1.3vw, 24px); font-weight: 900; white-space: nowrap;
}
.poster-nav a span { font-family: Arial,sans-serif; font-size: .88em; color: var(--spot); transition: transform .15s ease; }
.poster-nav a:hover span { transform: translateY(3px); }
.ink-label { font: 700 10px/1 ui-monospace, Menlo,monospace; letter-spacing: .12em; margin-right: 9px; }
.ink-palette button { display: grid; place-items: center; width: 31px; height: 44px; background: none; border: 0; cursor: pointer; }
.ink-palette button::after { content: ""; width: 21px; height: 21px; background: var(--chip); }
.ink-palette button[aria-pressed="true"]::after { outline: 1.5px solid var(--press-ink); outline-offset: 2px; }
.ink-palette [data-color="blue"] { --chip: #2445f8; }
.ink-palette [data-color="pink"] { --chip: #ff4293; }
.ink-palette [data-color="orange"] { --chip: #ff7b09; }
.poster-controls[hidden] { display: none; }
.footer { background: var(--press-ink); color: var(--paper); border: 0; padding: 36px var(--gutter); }
.footer .shell { width: 100%; max-width: none; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; color: inherit; }
.footer-brand { font: 900 italic clamp(24px,3vw,50px)/1 Arial,sans-serif; letter-spacing: -.065em; text-decoration: none; }
.footer-brand span { font: normal .6em/1 ui-monospace,Menlo,monospace; }
.footer-inner a, .footer-links a { color: var(--paper); }
.footer .footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-links a:hover { text-decoration: underline; }
@media (min-aspect-ratio: 2/1) and (min-width: 761px) {
  .poster-heading { width: min(70%, 147cqh); }
  .mascot-stage { width: min(24%, 46cqh); left: 38.5%; }
  .poster-intro { font-size: clamp(16px, 1.4vw, 28px); }
}
@media (max-width: 760px) {
  :root { --gutter: clamp(18px, 4.5vw, 34px); --mast-height: 58px; --rail-height: 60px; }
  .mast-identity { gap: 7px; }
  .mast-identity b { font-size: 10px; }
  .mast-identity div > span { font-size: 7px; }
  .studio-flower { width: 23px; }
  .mast-contact { min-height: 38px; gap: 5px; padding: 7px 10px; font-size: 12px; }
  .studio-menu summary { width: 38px; min-height: 38px; }
  .mast-actions { gap: 5px; }
  .poster-scene { height: clamp(476px, 104vw, 710px); min-height: 0; }
  .poster-heading { left: var(--gutter); width: calc(100% - 2 * var(--gutter)); top: 2%; }
  .poster-intro { margin: 13px 0 0 1px; font-size: clamp(16px, 3.4vw, 22px); line-height: 1.48; }
  .mascot-stage { width: 45%; left: 14%; bottom: 9%; }
  .jump-note { font-size: 10px; left: -4%; }
  .poster-terrain { left: -26%; width: 126%; height: 30%; }
  .app-portal { top: 49%; right: 5.75%; }
  .portal-bubble { gap: 4px; padding: 7px 9px; box-shadow: 2px 2px var(--press-ink); }
  .portal-overline { font-size: 8px; }
  .portal-bubble strong { font-size: clamp(14px,3.3vw,21px); }
  .portal-marker { width: clamp(37px, 7vw, 55px); margin-top: 18px; margin-left: 10%; }
  .pixel-trail { left: 55%; top: 71%; width: 15%; height: 7%; }
  .pixel-trail i { width: 2.2vw; }
  .pixel-trail i:nth-child(1) { width: 1vw; }
  .pixel-trail i:nth-child(2) { width: 1.5vw; }
  .poster-nav { gap: clamp(10px, 3vw, 25px); }
  .poster-nav a { gap: 3px; font-size: clamp(12px, 2.9vw, 17px); }
  .poster-rail { gap: 7px; padding-block: 0; }
  .ink-label { display: none; }
  .ink-palette button { width: 24px; }
  .ink-palette button::after { width: 15px; height: 15px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 360px) {
  .mast-identity div > span { letter-spacing: .04em; }
  .mast-contact { font-size: 11px; }
  .poster-nav { gap: 8px; }
  .poster-nav a { font-size: 11px; }
  .poster-rail { padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .studio-poster *, .studio-mast * { transition: none !important; }
  .mascot-stage { transform: none; }
}
.contact-form[hidden], .form-message[hidden] { display: none; }
#contactError { color: #962b22; font-weight: 700; margin-top: 12px; }
