*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  overscroll-behavior: none;
  touch-action: manipulation;
}

:root {
  --ink: #0b0f17;
  --ink-2: #131c2a;
  --ink-3: #1b2738;
  --crt: #7cdcff;
  --crt-dim: #2b7f9e;
  --crt-glow: rgba(124, 220, 255, 0.45);
  --amber: #ffb060;
  --amber-dim: #b86a2a;
  --amber-glow: rgba(255, 176, 96, 0.45);
  --leaf: #7cc47f;
  --wood: #8a4e28;
  --wood-dark: #4a2614;
  --paper: #f7f4ec;
  --fg: #e6f1ff;
  --red: #e0524a;
  --red-dark: #4a1210;
  --c-bg: #0a0e14;
  --c-fg: var(--fg);
  --c-accent: var(--crt);
  --c-warm: var(--amber);
  --radius: 4px;
  --dur: 150ms;
  --scanlines: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 3px);
  --bevel:
    0 0 0 2px var(--ink),
    0 0 0 4px var(--crt-dim),
    0 0 0 6px var(--ink),
    8px 8px 0 6px rgba(0, 0, 0, 0.45);
}

@font-face {
  font-family: "VT323";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/vt323-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "VT323";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/vt323-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

button,
input,
select,
textarea {
  font: inherit;
}

body {
  font-family: "VT323", ui-monospace, monospace;
  background: var(--c-bg);
  color: var(--c-fg);
  min-height: 100vh;
  overflow-x: hidden;
  font-size: 20px;
  line-height: 1.35;
  display: grid;
  align-content: center;
}

#office {
  position: relative;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  isolation: isolate;
}

#office-bg,
#office-mobile {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.hotspot {
  position: absolute;
  z-index: 4;
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  padding: 0;
  color: inherit;
  transition: transform var(--dur);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  text-decoration: none;
  opacity: 0;
  animation: hotspot-appear 400ms ease-out forwards;
}

.hotspot::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow:
    0 0 0 2px rgba(124, 220, 255, 0.85),
    0 0 18px 4px var(--crt-glow),
    inset 0 0 24px rgba(124, 220, 255, 0.22);
  opacity: 0;
  transition: opacity var(--dur);
  pointer-events: none;
}

.hotspot.egg::before {
  box-shadow:
    0 0 0 2px rgba(255, 176, 96, 0.85),
    0 0 18px 4px var(--amber-glow),
    inset 0 0 24px rgba(255, 176, 96, 0.22);
}

.hotspot:nth-child(2) { animation-delay: 100ms; }
.hotspot:nth-child(3) { animation-delay: 200ms; }
.hotspot:nth-child(4) { animation-delay: 300ms; }
.hotspot:nth-child(5) { animation-delay: 400ms; }
.hotspot:nth-child(6) { animation-delay: 500ms; }
.hotspot:nth-child(7) { animation-delay: 600ms; }
.hotspot:nth-child(8) { animation-delay: 700ms; }
.hotspot:nth-child(9) { animation-delay: 800ms; }
.hotspot:nth-child(10) { animation-delay: 900ms; }

.spot-projects { left: 25%; top: 34%; width: 17%; height: 26%; }
.spot-services { left: 43.6%; top: 18%; width: 12%; height: 26%; }
.spot-contact { left: 65.4%; top: 53.2%; width: 11%; height: 12.2%; }
.spot-about { left: 60.5%; top: 24%; width: 19%; height: 26%; }
.spot-pricing { left: 2%; top: 65%; width: 11%; height: 16%; }
.spot-door { left: 84%; top: 16%; width: 15%; height: 76%; }
.spot-window { left: 1.5%; top: 17.5%; width: 6.2%; height: 43%; }
.spot-coffee { left: 44.2%; top: 52.8%; width: 6.2%; height: 8.5%; }
.spot-plant { left: 11%; top: 42%; width: 9%; height: 24%; }
.spot-drawer { left: 43.55%; top: 69.8%; width: 7.1%; height: 8.1%; border-radius: 2px; }

.spot-drawer::before {
  border-radius: 2px;
}
.spot-logo { display: none; }

.code-screen,
.window-sky,
.steam,
.plant,
.dust {
  position: absolute;
  z-index: 3;
  pointer-events: none;
}

.code-screen {
  left: 28.75%;
  top: 36.806%;
  width: 11.25%;
  height: 15.417%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0.35em 0.6em;
  overflow: hidden;
  background: #29515e;
  border-radius: 6% / 8%;
  box-shadow: 0 0 14px 2px rgba(110, 220, 255, 0.14);
  font-family: "VT323", ui-monospace, monospace;
  line-height: 1.12;
  white-space: pre;
  color: #d4d4d4;
  text-shadow: 0 0 3px rgba(150, 230, 255, 0.35);
}

.code-lines {
  align-self: stretch;
  width: 100%;
  text-align: left;
}

.code-lines div {
  overflow: hidden;
}

.code-lines .caret::after {
  content: "";
  display: inline-block;
  width: 0.5em;
  height: 0.9em;
  vertical-align: -0.1em;
  background: #aeafad;
  animation: caret 0.9s steps(1) infinite;
}

.tk-k { color: #569cd6; }
.tk-c { color: #c586c0; }
.tk-f { color: #dcdcaa; }
.tk-s { color: #ce9178; }
.tk-n { color: #b5cea8; }
.tk-t { color: #4ec9b0; }
.tk-v { color: #9cdcfe; }
.tk-m { color: #6a9955; }

.window-sky {
  left: 2.1875%;
  top: 20.2083%;
  width: 2.8516%;
  height: 38.125%;
  overflow: hidden;
  clip-path: polygon(0 0, 8.22% 0, 100% 4.19%, 100% 45.36%, 94.52% 92.53%, 10.96% 100%, 0 99.45%);
  opacity: 0;
}

html[data-sky="day"] .window-sky,
html[data-sky="evening"] .window-sky,
html[data-sky="night"] .window-sky {
  opacity: 1;
}

html[data-sky="day"] .window-sky {
  background:
    linear-gradient(#8ea6b8, #8ea6b8) 0 100% / 46% 34% no-repeat,
    linear-gradient(#a2b7c6, #a2b7c6) 100% 100% / 48% 52% no-repeat,
    linear-gradient(#b9cad5, #b9cad5) 40% 100% / 30% 22% no-repeat,
    linear-gradient(to bottom, #6fb8ea 0%, #a9dbf5 58%, #f2e6c2 100%);
}

html[data-sky="evening"] .window-sky {
  background:
    linear-gradient(#3e2c45, #3e2c45) 0 100% / 46% 34% no-repeat,
    linear-gradient(#4a3550, #4a3550) 100% 100% / 48% 52% no-repeat,
    linear-gradient(#5a4038, #5a4038) 40% 100% / 30% 22% no-repeat,
    linear-gradient(to bottom, #6c5a9a 0%, #e88a5a 62%, #ffc678 100%);
}

html[data-sky="night"] .window-sky {
  background:
    linear-gradient(#1a2230, #1a2230) 0 100% / 46% 34% no-repeat,
    linear-gradient(#121826, #121826) 100% 100% / 48% 52% no-repeat,
    linear-gradient(#222a3a, #222a3a) 40% 100% / 30% 22% no-repeat,
    linear-gradient(to bottom, #070b16 0%, #121a2e 58%, #1c2740 100%);
}

.bird {
  position: absolute;
  left: 0;
  top: 26%;
  width: 7px;
  height: 2px;
  background: #2b2430;
  animation: bird 17s linear infinite;
}

html[data-sky="night"] .bird {
  display: none;
}

@keyframes bird {
  0% { transform: translate(-10px, 4px); opacity: 0; }
  6% { opacity: 0.9; }
  22% { transform: translate(60px, -4px); opacity: 0; }
  100% { transform: translate(60px, -4px); opacity: 0; }
}

.steam-d {
  left: 46.406%;
  top: 46.389%;
  width: 2.109%;
}

.steam-m {
  display: none;
}

.steam img {
  display: block;
  width: 100%;
  height: auto;
  transform-origin: 50% 100%;
  animation: steam-rise 3.6s ease-in-out infinite;
}

.steam img + img {
  position: absolute;
  left: 0;
  top: 0;
  animation-delay: -1.8s;
}

@keyframes steam-rise {
  0% { transform: translate(0, 8%) scale(0.9, 0.85); opacity: 0; }
  20% { opacity: 0.85; }
  50% { transform: translate(-8%, -6%) scale(1, 1) skewX(-4deg); opacity: 0.7; }
  80% { transform: translate(6%, -16%) scale(1.06, 1.08) skewX(5deg); opacity: 0.3; }
  100% { transform: translate(0, -24%) scale(1.1, 1.12); opacity: 0; }
}

.plant {
  height: auto;
  transform-origin: 52% 100%;
  animation: plant-sway 7s ease-in-out infinite;
}

.plant-d {
  left: 9.5703%;
  top: 41.6667%;
  width: 9.7656%;
}

.plant-m {
  display: none;
}

@keyframes plant-sway {
  0%, 100% { transform: rotate(0deg) skewX(0deg); }
  14% { transform: rotate(1.4deg) skewX(-1.2deg); }
  26% { transform: rotate(-0.4deg) skewX(0.4deg); }
  38% { transform: rotate(0.8deg) skewX(-0.6deg); }
  52% { transform: rotate(0deg) skewX(0deg); }
  68% { transform: rotate(1.8deg) skewX(-1.6deg); }
  80% { transform: rotate(-0.6deg) skewX(0.5deg); }
  90% { transform: rotate(0.3deg) skewX(-0.2deg); }
}

.dust {
  inset: 0;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

.phone-ringer {
  position: absolute;
  z-index: 3;
  display: none;
  pointer-events: none;
  overflow: hidden;
}

.phone-ringer img {
  width: 100%;
  height: auto;
  display: block;
  image-rendering: pixelated;
  transform-origin: 52% 35%;
}

.phone-ringer.ringing img {
  animation: phone-shake 0.12s linear infinite;
}

@keyframes phone-shake {
  0% { transform: rotate(-1.5deg); }
  25% { transform: rotate(1.6deg); }
  50% { transform: rotate(-1.2deg); }
  75% { transform: rotate(1.4deg); }
  100% { transform: rotate(-1.5deg); }
}

.spark {
  position: fixed;
  z-index: 80;
  width: 3px;
  height: 3px;
  background: #fff3b0;
  pointer-events: none;
  animation: spark 420ms ease-out forwards;
}

@keyframes spark {
  to { transform: translate(var(--dx), var(--dy)); opacity: 0; }
}

.scene {
  position: absolute;
  inset: 0;
}

.rug-spot,
.phone-table,
.register-table {
  display: none;
}

.rug-spot {
  padding: 0;
  border: none;
  background: transparent;
  cursor: inherit;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.rug-spot:active,
.rug-spot:focus,
.rug-spot:focus-visible {
  background: transparent;
  outline: none;
}

.rug-spot .rug {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
  pointer-events: none;
}

.poodle {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6%;
  height: 92%;
  pointer-events: none;
  z-index: 2;
}

.poodle[hidden] {
  display: none;
}

.poodle-move {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 58%;
  transform: translateX(-50%);
  transition: transform 2.6s linear;
}

.poodle[data-state="idle"] .poodle-move {
  transform: translateX(calc(-50% - 75vw));
  transition: none;
}

.poodle[data-state="entering"] .poodle-move,
.poodle[data-state="lying"] .poodle-move {
  transform: translateX(-50%);
}

.poodle[data-state="leaving"] .poodle-move {
  transform: translateX(calc(-50% + 75vw));
}

.poodle-walk {
  display: block;
  width: 100%;
  aspect-ratio: 270 / 246;
  background: url("assets/poodle-walk.png?v=3") 0 0 / 400% 100% no-repeat;
  image-rendering: pixelated;
  animation: poodle-walk 0.48s step-end infinite;
}

.poodle-sleep {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
}

@keyframes poodle-walk {
  0% { background-position: 0% 0; }
  25% { background-position: 33.333% 0; }
  50% { background-position: 66.666% 0; }
  75%, 100% { background-position: 100% 0; }
}

.poodle[data-pose="walk"] .poodle-sleep,
.poodle[data-pose="walk"] .zzz,
.poodle[data-pose="sleep"] .poodle-walk {
  display: none;
}

.zzz {
  position: absolute;
  top: -8%;
  right: 8%;
  color: #f4f7ff;
  font-family: "VT323", ui-monospace, monospace;
  font-size: 28px;
  line-height: 1;
  text-shadow: 2px 2px 0 #1a1a1a;
}

.zzz i {
  display: inline-block;
  font-style: normal;
  animation: zzz-rise 1.6s ease-in-out infinite;
}

.zzz i:nth-child(2) { animation-delay: 0.28s; font-size: 0.8em; }
.zzz i:nth-child(3) { animation-delay: 0.56s; font-size: 0.65em; }

@keyframes zzz-rise {
  0% { transform: translateY(6px); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translateY(-16px); opacity: 0; }
}

#office-mobile { display: none; }

@keyframes hotspot-appear {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hotspot:hover,
.hotspot:focus-visible {
  outline: none;
  -webkit-backdrop-filter: brightness(1.2) saturate(1.08);
  backdrop-filter: brightness(1.2) saturate(1.08);
}

.hotspot:hover::before,
.hotspot:focus-visible::before {
  opacity: 1;
}

.hotspot:active {
  transform: scale(0.97);
}

.outline {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: none;
  opacity: 0.25;
  pointer-events: none;
  user-select: none;
  animation: outline-pulse 3.2s ease-in-out var(--gd, 0s) infinite both;
}

.outline-d {
  display: none;
}

.outline.lit {
  animation: none;
  opacity: 0.75;
}

.outline[src*="contact"] {
  animation-name: outline-pulse-contact;
}

.outline[src*="contact"].lit {
  opacity: 0.22;
}

@keyframes outline-pulse {
  0%, 100% { opacity: 0.05; }
  50% { opacity: 0.42; }
}

@keyframes outline-pulse-contact {
  0%, 100% { opacity: 0.03; }
  50% { opacity: 0.12; }
}

.spot-contact::before {
  inset: 0;
}

.tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 16px);
  translate: -50% 0;
  opacity: 0;
  padding: 3px 10px 4px;
  background: var(--ink);
  color: var(--crt);
  font-size: 18px;
  line-height: 1;
  white-space: nowrap;
  text-shadow: 0 0 6px var(--crt-glow);
  box-shadow:
    0 0 0 2px var(--crt),
    0 0 0 4px var(--ink),
    4px 4px 0 2px rgba(0, 0, 0, 0.45);
  pointer-events: none;
  z-index: 5;
  transition: opacity var(--dur);
}

.tip::after {
  content: "";
  position: absolute;
  top: calc(100% + 2px);
  left: 50%;
  translate: -50% 0;
  width: 12px;
  height: 8px;
  background: var(--crt);
  clip-path: polygon(0 0, 12px 0, 12px 2px, 10px 2px, 10px 4px, 8px 4px, 8px 6px, 7px 6px, 7px 8px, 5px 8px, 5px 6px, 4px 6px, 4px 4px, 2px 4px, 2px 2px, 0 2px);
}

.hotspot:hover .tip,
.hotspot:focus-visible .tip {
  opacity: 1;
  animation: tip-bob 1.1s ease-in-out infinite alternate;
}

@keyframes tip-bob {
  from { transform: translateY(0); }
  to { transform: translateY(-5px); }
}

.panel {
  position: fixed;
  inset: 5vh 5vw;
  color: var(--fg);
  background-color: var(--ink);
  background-image:
    var(--scanlines),
    radial-gradient(120% 80% at 50% 0%, rgba(124, 220, 255, 0.09), transparent 60%),
    linear-gradient(180deg, var(--ink-2), var(--ink));
  background-attachment: scroll;
  overscroll-behavior: none;
  border: 0;
  border-radius: 2px;
  padding: 2rem;
  overflow: hidden;
  z-index: 90;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.07),
    inset 0 -2px 0 rgba(0, 0, 0, 0.4),
    var(--bevel),
    0 0 48px rgba(124, 220, 255, 0.2);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.55);
  animation: panel-open 280ms ease-out both;
}

.panel[hidden] {
  display: none;
}

@keyframes panel-open {
  0% { opacity: 0; transform: scale(1, 0.03); }
  55% { opacity: 1; transform: scale(1.02, 1); }
  100% { opacity: 1; transform: scale(1); }
}

.panel h2 {
  margin: 0 2.5rem 0.5rem 0;
  font-size: 32px;
  font-weight: 400;
  letter-spacing: 1px;
  color: var(--crt);
  text-shadow: 0 0 10px var(--crt-glow), 0 2px 0 #000;
}

.panel h2 .typed {
  position: relative;
}

.panel h2 .typed::after {
  content: "";
  position: absolute;
  left: 100%;
  bottom: 0.12em;
  width: 0.45em;
  height: 0.85em;
  background: currentColor;
  animation: caret 0.5s steps(1) infinite;
}

.panel h2 .rest {
  visibility: hidden;
}

@keyframes caret {
  50% { opacity: 0; }
}

.panel .close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 38px;
  height: 38px;
  padding: 0;
  font-size: 20px;
  line-height: 1;
  color: #fff;
  text-shadow: 0 1px 0 var(--red-dark);
  background: radial-gradient(circle at 35% 30%, #ff9a8c 0 12%, var(--red) 14% 58%, #a62f29 60%);
  border: 0;
  border-radius: 50%;
  box-shadow:
    0 0 0 2px var(--ink),
    0 4px 0 2px var(--red-dark),
    0 7px 0 2px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: transform 80ms;
}

.panel .close:hover,
.panel .close:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px var(--ink),
    0 0 0 4px var(--crt),
    0 4px 0 4px var(--red-dark),
    0 7px 0 4px rgba(0, 0, 0, 0.4);
}

.panel .close:active {
  transform: translateY(3px);
  box-shadow:
    0 0 0 2px var(--ink),
    0 1px 0 2px var(--red-dark);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.deck {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

#panel-services .deck {
  gap: 14px;
}

.deck-view {
  overflow: hidden;
  min-width: 0;
}

#panel-services .deck .cards,
#panel-pricing .deck .cards {
  display: flex;
  grid-template-columns: none;
  gap: 0;
  width: 100%;
  margin: 0;
  transition: transform 280ms ease;
}

.deck .card {
  flex: 0 0 100%;
  min-width: 0;
  box-sizing: border-box;
}

.deck .card:hover {
  transform: none;
}

.deck .card::after {
  display: none;
}

.deck-prev,
.deck-next {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  color: var(--crt);
  font-family: inherit;
  font-size: 32px;
  line-height: 1;
  background: #10243a;
  border: 2px solid var(--crt);
  border-radius: 4px;
  box-shadow: 0 3px 0 #063018;
  cursor: pointer;
}

.deck-prev {
  padding: 0 3px 3px 0;
}

.deck-next {
  padding: 0 0 3px 3px;
}

.deck-prev:hover,
.deck-next:hover,
.deck-prev:focus-visible,
.deck-next:focus-visible {
  outline: none;
  background: #163552;
}

.deck-prev:active,
.deck-next:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #063018;
}

.deck-dots {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}

.deck-dots button {
  width: 12px;
  height: 12px;
  padding: 0;
  background: #1a3148;
  border: 2px solid #6d8eaa;
  border-radius: 50%;
  cursor: pointer;
}

.deck-dots button[aria-current="true"] {
  background: var(--crt);
  border-color: #fff;
  box-shadow: 0 0 8px var(--crt-glow);
}

#panel-services {
  inset: auto;
  top: 50%;
  left: 50%;
  width: min(820px, calc(100vw - 48px));
  height: auto;
  max-height: calc(100vh - 48px);
  margin: 0;
  padding: 2.2rem 1.8rem 2rem;
  text-align: center;
  transform: translate(-50%, -50%);
  animation-name: panel-services-open;
}

#panel-services h2 {
  margin: 0 0 0.25rem;
}

#panel-services .card {
  min-height: 220px;
  padding: 36px 28px 32px;
}

#panel-services .card h3 {
  margin: 0 0 16px;
  font-size: 28px;
}

#panel-services .card p {
  font-size: 22px;
  line-height: 1.45;
}

#panel-services > p {
  margin: 0;
}

#panel-pricing {
  inset: auto;
  top: 50%;
  left: 50%;
  width: min(820px, calc(100vw - 48px));
  height: auto;
  max-height: calc(100vh - 24px);
  margin: 0;
  padding: 1.4rem 1.6rem 1.2rem;
  text-align: center;
  transform: translate(-50%, -50%);
  animation-name: panel-services-open;
}

#panel-pricing h2 {
  margin: 0 0 0.35rem;
}

#panel-pricing .cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 6px;
  text-align: left;
}

#panel-pricing .card {
  display: flex;
  flex-direction: column;
  padding: 16px 18px;
}

#panel-pricing .card h3,
#panel-pricing .price {
  margin: 0 0 6px;
  font-size: 26px;
}

#panel-pricing .card p {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.3;
}

#panel-pricing ul {
  margin: 0 0 10px;
  padding-left: 1.2rem;
  font-size: 20px;
  line-height: 1.35;
}

#panel-pricing li {
  margin: 0;
}

#panel-pricing a {
  margin-top: auto;
  font-size: 22px;
}

#panel-contact {
  inset: auto;
  top: 50%;
  left: 50%;
  width: min(560px, calc(100vw - 32px));
  height: auto;
  max-height: calc(100vh - 48px);
  margin: 0;
  padding: 1.25rem 1.4rem 1.15rem;
  text-align: center;
  transform: translate(-50%, -50%);
  animation-name: panel-services-open;
}

#panel-contact h2 {
  margin: 0 0 0.4rem;
}

#panel-contact p {
  margin: 0 0 0.5rem;
}

#panel-contact form {
  margin: 0.35rem auto 0;
  max-width: none;
  width: 100%;
  text-align: left;
}

#panel-contact .pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
}

#panel-contact .pair div {
  display: grid;
  gap: 4px;
}

#panel-contact .term-log {
  margin: 6px 0 0;
  min-height: 2.8em;
  padding: 8px 10px;
  color: var(--crt);
  background: #071018;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.35;
  white-space: pre-wrap;
  box-shadow: inset 0 0 0 2px var(--crt-dim);
}

#panel-contact .term-log[hidden] {
  display: none;
}

#panel-coupon {
  inset: auto;
  top: 50%;
  left: 50%;
  width: min(480px, calc(100vw - 32px));
  height: auto;
  margin: 0;
  padding: 1.6rem 1.6rem 1.4rem;
  text-align: center;
  transform: translate(-50%, -50%);
  animation-name: panel-services-open;
}

#panel-coupon h2 {
  margin: 0 0 0.5rem;
}

#panel-coupon p {
  margin: 0 0 0.75rem;
}

#panel-coupon .coupon-code {
  margin: 0.4rem auto 1rem;
  width: fit-content;
  padding: 8px 18px;
  color: var(--amber);
  font-size: 28px;
  letter-spacing: 0.18em;
  border: 2px dashed var(--amber);
}

#panel-coupon .coupon-go {
  display: block;
  width: 100%;
  margin: 0 auto;
  padding: 16px 12px;
  font-size: 26px;
  letter-spacing: 1px;
}

#panel-clients {
  inset: auto;
  top: 50%;
  left: 50%;
  width: min(720px, calc(100vw - 32px));
  height: auto;
  margin: 0;
  padding: 1.25rem 1.3rem 1.2rem;
  text-align: center;
  transform: translate(-50%, -50%);
  animation-name: panel-services-open;
}

#panel-clients h2 {
  margin: 0 0 0.9rem;
}

#panel-clients .brands {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 6px;
}

#panel-clients img {
  width: 100%;
  height: 72px;
  object-fit: contain;
  background: var(--paper);
  border-radius: 2px;
  padding: 8px 12px;
  box-shadow:
    inset 0 -3px 0 rgba(0, 0, 0, 0.12),
    0 0 0 2px var(--ink),
    0 0 0 4px var(--amber-dim),
    0 0 0 6px var(--ink),
    5px 5px 0 6px rgba(0, 0, 0, 0.4);
  opacity: 0;
  animation: brand-pop 420ms ease-out forwards;
  transition: transform 160ms ease-out;
}

#panel-clients img:hover {
  transform: translateY(-4px);
}

#panel-clients img:nth-child(1) { animation-delay: 40ms; }
#panel-clients img:nth-child(2) { animation-delay: 110ms; }
#panel-clients img:nth-child(3) { animation-delay: 180ms; }
#panel-clients img:nth-child(4) { animation-delay: 250ms; }
#panel-clients img:nth-child(5) { animation-delay: 320ms; }
#panel-clients img:nth-child(6) { animation-delay: 390ms; }

@keyframes brand-pop {
  from {
    opacity: 0;
    translate: 0 10px;
    scale: 0.92;
  }
  to {
    opacity: 1;
    translate: 0 0;
    scale: 1;
  }
}

#panel-about {
  inset: auto;
  top: 50%;
  left: 50%;
  width: min(760px, calc(100vw - 48px));
  height: auto;
  max-height: none;
  margin: 0;
  padding: 3.4rem 6.2rem 3.2rem;
  text-align: center;
  color: #1c1c1c;
  background: #f7f4ec;
  border: 12px solid #9a9690;
  box-shadow:
    inset 0 0 0 2px #d9d4ca,
    0 10px 0 #6f6c67;
  overflow: visible;
  transform: translate(-50%, -50%);
  animation-name: panel-services-open;
}

#panel-about {
  text-shadow: none;
}

#panel-about h2,
#panel-about p {
  color: #1c1c1c;
  text-shadow: none;
}

#panel-about h2 {
  margin: 0 0 0.85rem;
}

#panel-about p {
  margin: 0 auto 0.75rem;
  max-width: 48ch;
  line-height: 1.5;
}

#panel-about p:last-of-type {
  margin-bottom: 0;
}


#panel-about .notes {
  list-style: none;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

#panel-about .note {
  position: absolute;
  padding: 6px 8px 8px;
  color: #1c1c1c;
  font-size: 16px;
  line-height: 1;
  box-shadow: 2px 3px 0 rgba(0, 0, 0, 0.18);
}

#panel-about .note.y { background: #ffe56a; }
#panel-about .note.g { background: #b6e38a; }
#panel-about .note.o { background: #ffb067; }
#panel-about .note.t { background: #7fd6cf; }
#panel-about .note.p { background: #f3a6c8; }

#panel-about .note:nth-child(1) { top: 16px; left: 16px; rotate: -6deg; }
#panel-about .note:nth-child(2) { top: 18px; left: 28%; rotate: 3deg; }
#panel-about .note:nth-child(3) { top: 16px; left: 48%; rotate: 4deg; }
#panel-about .note:nth-child(4) { top: 28%; right: 14px; rotate: 6deg; }
#panel-about .note:nth-child(5) { top: 50%; right: 16px; rotate: -4deg; }
#panel-about .note:nth-child(6) { bottom: 22%; right: 14px; rotate: 5deg; }
#panel-about .note:nth-child(7) { bottom: 16px; right: 14%; rotate: -3deg; }
#panel-about .note:nth-child(8) { bottom: 18px; left: 36%; rotate: 4deg; }
#panel-about .note:nth-child(9) { bottom: 16px; left: 16px; rotate: -5deg; }
#panel-about .note:nth-child(10) { top: 50%; left: 14px; rotate: -6deg; }
#panel-about .note:nth-child(11) { top: 26%; left: 14px; rotate: 4deg; }

#panel-services .cards {
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
  text-align: left;
}

#panel-services .card p {
  margin: 0;
}

@keyframes panel-services-open {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(1, 0.03); }
  55% { opacity: 1; transform: translate(-50%, -50%) scale(1.02, 1); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

#panel-projects {
  inset: auto;
  top: 50%;
  left: 50%;
  display: flex;
  width: min(860px, calc(100vw - 24px));
  height: min(520px, calc(100vh - 24px));
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #008080;
  color: #000;
  border: none;
  border-radius: 0;
  box-shadow:
    inset -1px -1px 0 #000,
    inset 1px 1px 0 #fff,
    inset -2px -2px 0 #808080,
    inset 2px 2px 0 #dfdfdf;
  font-family: Tahoma, "MS Sans Serif", sans-serif;
  font-size: 13px;
  line-height: 1.35;
  text-align: center;
  text-shadow: none;
  transform: translate(-50%, -50%);
  animation-name: panel-projects-open;
}

#panel-projects[hidden] {
  display: none;
}

#panel-projects .desk {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}

#panel-projects .desk-icons {
  position: absolute;
  top: 14px;
  left: 12px;
  z-index: 2;
  display: flex;
  gap: 6px;
  pointer-events: none;
}

#panel-projects .folder,
#panel-projects .ie-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 78px;
  margin: 0;
  padding: 0;
  color: #fff;
  font-family: Tahoma, "MS Sans Serif", sans-serif;
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
  text-shadow: 1px 1px 0 #000;
  background: none;
  border: none;
  user-select: none;
}

#panel-projects .folder {
  pointer-events: auto;
  cursor: pointer;
}

#panel-projects .ie-icon {
  pointer-events: none;
}

#panel-projects .card {
  width: 100%;
  font: inherit;
  cursor: pointer;
}

#panel-projects .ie {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 42px;
  bottom: 46px;
  display: flex;
  flex-direction: column;
  width: min(620px, calc(100% - 72px));
  transform: translateX(-50%);
  background: #c0c0c0;
  color: #000;
  text-align: left;
  box-shadow:
    inset -1px -1px 0 #000,
    inset 1px 1px 0 #fff,
    inset -2px -2px 0 #808080,
    inset 2px 2px 0 #dfdfdf;
}

#panel-projects .ie[hidden] {
  display: none;
}

@media (min-width: 1024px) {
  #panel-projects.browsing .win {
    display: none;
  }

  #panel-projects.browsing .ie {
    top: 112px;
  }
}

#panel-projects .ie-title {
  display: flex;
  align-items: center;
  margin: 3px 3px 0;
  background: linear-gradient(90deg, #000080, #1084d0);
  color: #fff;
  font-weight: 700;
}

#panel-projects .ie-name {
  flex: 1;
  padding: 3px 6px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

#panel-projects .ie-min,
#panel-projects .ie-x {
  flex: none;
  width: 16px;
  height: 14px;
  margin: 2px 2px 2px 0;
  padding: 0;
  color: #000;
  background: #c0c0c0;
  border: none;
  font-family: Tahoma, "MS Sans Serif", sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 12px;
  box-shadow:
    inset -1px -1px 0 #000,
    inset 1px 1px 0 #fff,
    inset -2px -2px 0 #808080,
    inset 2px 2px 0 #dfdfdf;
}

#panel-projects .ie-tools,
#panel-projects .ie-addr {
  display: flex;
  gap: 10px;
  margin: 2px 4px 0;
  font-size: 12px;
}

#panel-projects .ie-addr {
  align-items: center;
  gap: 6px;
}

#panel-projects .ie-url {
  flex: 1;
  padding: 1px 4px;
  background: #fff;
  box-shadow: inset 1px 1px 0 #808080, inset -1px -1px 0 #fff;
}

#panel-projects .ie-view {
  flex: 1;
  min-height: 0;
  margin: 4px;
  overflow: hidden;
  background: #fff;
  box-shadow: inset 1px 1px 0 #808080, inset -1px -1px 0 #fff;
}

#panel-projects .ie-view img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center top;
}

#panel-projects .win {
  width: min(700px, calc(100% - 36px));
  max-height: calc(100% - 46px);
  margin: auto;
  overflow: hidden;
  background: #c0c0c0;
  box-shadow:
    inset -1px -1px 0 #000,
    inset 1px 1px 0 #fff,
    inset -2px -2px 0 #808080,
    inset 2px 2px 0 #dfdfdf;
}

#panel-projects .titlebar {
  display: flex;
  align-items: center;
  margin: 3px;
  background: linear-gradient(90deg, #000080, #1084d0);
}

#panel-projects .taskbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 30px;
  padding: 2px;
  background: #c0c0c0;
  box-shadow: inset 0 1px 0 #fff;
}

#panel-projects .start,
#panel-projects .task,
#panel-projects .tray {
  font-family: Tahoma, "MS Sans Serif", sans-serif;
  font-size: 13px;
  color: #000;
}

#panel-projects .start {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 8px 0 4px;
  font-weight: 700;
  background: #c0c0c0;
  border: none;
  box-shadow:
    inset -1px -1px 0 #000,
    inset 1px 1px 0 #fff,
    inset -2px -2px 0 #808080,
    inset 2px 2px 0 #dfdfdf;
}

#panel-projects .task {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  box-shadow:
    inset 1px 1px 0 #000,
    inset -1px -1px 0 #fff;
}

#panel-projects .tray {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  box-shadow:
    inset 1px 1px 0 #808080,
    inset -1px -1px 0 #fff;
}

#panel-projects h2 {
  flex: 1;
  margin: 0;
  padding: 3px 6px;
  background: none;
  color: #fff;
  font-family: Tahoma, "MS Sans Serif", sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
  text-align: left;
  text-shadow: none;
}

#panel-projects .win > p {
  margin: 8px 12px 0;
  color: #000;
  text-align: center;
}

#panel-projects .close {
  position: static;
  flex: none;
  margin: 2px;
  width: 16px;
  height: 14px;
  padding: 0;
  background: #c0c0c0;
  color: #000;
  border: none;
  border-radius: 0;
  font-family: Tahoma, "MS Sans Serif", sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 12px;
  text-shadow: none;
  transition: none;
  box-shadow:
    inset -1px -1px 0 #000,
    inset 1px 1px 0 #fff,
    inset -2px -2px 0 #808080,
    inset 2px 2px 0 #dfdfdf;
}

#panel-projects .close:hover,
#panel-projects .close:focus-visible {
  background: #c0c0c0;
  color: #000;
}

#panel-projects .close:active {
  transform: none;
  box-shadow:
    inset 1px 1px 0 #000,
    inset -1px -1px 0 #fff;
}

#panel-projects .cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 8px 12px 0;
  text-align: center;
}

#panel-projects .card {
  display: flex;
  flex-direction: column;
  background: #c0c0c0;
  color: #000;
  border: none;
  border-radius: 0;
  padding: 10px;
  box-shadow:
    inset -1px -1px 0 #fff,
    inset 1px 1px 0 #808080,
    inset -2px -2px 0 #dfdfdf,
    inset 2px 2px 0 #000;
}

#panel-projects .card::after {
  box-shadow: 0 0 0 2px #000080, 4px 4px 0 2px rgba(0, 0, 0, 0.35);
}

#panel-projects .card h3 {
  color: #000080;
  font-family: Tahoma, "MS Sans Serif", sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

#panel-projects .card p,
#panel-projects .meta {
  color: #000;
  font-size: 12px;
  text-align: center;
}

#panel-projects .card p:last-of-type {
  margin-top: auto;
  margin-bottom: 8px;
}

#panel-projects a {
  color: #000080;
  font-size: 12px;
}

@keyframes panel-projects-open {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

.card {
  position: relative;
  padding: 14px 12px 12px;
  border-radius: 4px;
  background:
    linear-gradient(var(--card-hue, var(--crt)), var(--card-hue, var(--crt))) top / 100% 4px no-repeat,
    linear-gradient(180deg, var(--ink-3), var(--ink-2));
  box-shadow:
    inset 0 0 0 2px rgba(124, 220, 255, 0.22),
    inset 0 6px 0 rgba(255, 255, 255, 0.04),
    0 4px 0 rgba(0, 0, 0, 0.5);
  transition: transform 160ms ease-out;
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow:
    0 0 0 2px var(--card-hue, var(--crt)),
    0 0 18px var(--crt-glow);
  opacity: 0;
  transition: opacity 160ms ease-out;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-4px);
}

.card:hover::after {
  opacity: 1;
}

.cards .card:nth-child(3n + 1) { --card-hue: var(--amber); }
.cards .card:nth-child(3n + 2) { --card-hue: var(--crt); }
.cards .card:nth-child(3n) { --card-hue: var(--leaf); }

.card h3,
.price {
  margin: 0 0 6px;
  color: var(--card-hue, var(--amber));
  font-size: 22px;
  font-weight: 400;
}

.price {
  display: inline-block;
  align-self: flex-start;
  padding: 0 8px;
  color: var(--amber);
  background: rgba(255, 176, 96, 0.1);
  box-shadow: inset 0 0 0 2px var(--amber-dim);
}

.card p,
.panel p {
  margin: 0 0 8px;
}

.meta {
  color: var(--c-accent);
}

a {
  color: var(--c-accent);
}

form {
  display: grid;
  gap: 6px;
  max-width: 420px;
}

input,
textarea,
select,
form button {
  font-family: inherit;
  font-size: 18px;
  color: var(--fg);
  background: #0d1520;
  border: 0;
  border-radius: 2px;
  padding: 8px;
  box-shadow:
    inset 0 0 0 2px var(--crt-dim),
    inset 3px 3px 0 2px rgba(0, 0, 0, 0.45);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  box-shadow:
    inset 0 0 0 2px var(--crt),
    0 0 12px var(--crt-glow);
}

form button,
.leave-actions button,
#panel-coupon .coupon-go {
  width: fit-content;
  margin-bottom: 4px;
  padding: 6px 16px;
  color: var(--ink);
  text-shadow: none;
  background: var(--crt);
  border: 0;
  border-radius: 2px;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.45),
    0 0 0 2px var(--ink),
    0 4px 0 2px var(--crt-dim),
    0 7px 0 2px rgba(0, 0, 0, 0.4);
  transition: transform 80ms;
}

form button:hover,
form button:focus-visible,
.leave-actions button:hover,
.leave-actions button:focus-visible,
#panel-coupon .coupon-go:hover,
#panel-coupon .coupon-go:focus-visible {
  outline: none;
  background: #a8eaff;
}

form button:active,
.leave-actions button:active,
#panel-coupon .coupon-go:active {
  transform: translateY(3px);
  box-shadow:
    0 0 0 2px var(--ink),
    0 1px 0 2px var(--crt-dim);
}

form button:disabled {
  opacity: 0.6;
}

.hotspot.egg .tip {
  background: #1a1410;
  color: var(--amber);
  text-shadow: 0 0 6px var(--amber-glow);
  box-shadow:
    0 0 0 2px var(--amber),
    0 0 0 4px #1a1410,
    4px 4px 0 2px rgba(0, 0, 0, 0.45);
}

.hotspot.egg .tip::after {
  background: var(--amber);
}

.leave {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: rgba(10, 14, 20, 0.55);
}

.leave[hidden] {
  display: none;
}

.leave-card {
  width: min(440px, calc(100vw - 32px));
  padding: 1.35rem 1.4rem 1.4rem;
  text-align: center;
  color: var(--fg);
  background:
    var(--scanlines),
    linear-gradient(180deg, var(--ink-2), var(--ink));
  border-radius: 2px;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.07),
    var(--bevel),
    0 0 48px rgba(124, 220, 255, 0.25);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.55);
  animation: leave-pop 220ms ease-out;
}

@keyframes leave-pop {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.leave-card h2 {
  margin: 0 0 0.5rem;
  color: var(--crt);
  font-size: 32px;
  font-weight: 400;
  letter-spacing: 1px;
  text-shadow: 0 0 10px var(--crt-glow), 0 2px 0 #000;
}

.leave-card p {
  margin: 0 0 1rem;
  line-height: 1.45;
}

.leave-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.leave-actions button {
  font-size: 20px;
}

.leave-actions button[data-leave="no"] {
  background: var(--amber);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.45),
    0 0 0 2px var(--ink),
    0 4px 0 2px var(--amber-dim),
    0 7px 0 2px rgba(0, 0, 0, 0.4);
}

.leave-actions button[data-leave="no"]:hover,
.leave-actions button[data-leave="no"]:focus-visible {
  background: #ffc98f;
}

.leave-actions button[data-leave="no"]:active {
  box-shadow:
    0 0 0 2px var(--ink),
    0 1px 0 2px var(--amber-dim);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 40;
  background: var(--scanlines), #1a1410;
  color: var(--amber);
  border-radius: 2px;
  text-shadow: 0 0 6px var(--amber-glow);
  box-shadow:
    0 0 0 2px #1a1410,
    0 0 0 4px var(--amber),
    0 0 0 6px #1a1410,
    6px 6px 0 6px rgba(0, 0, 0, 0.4);
  padding: 10px 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms, transform 200ms;
  transform: translateX(-50%) translateY(20px);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

#classic {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

#classic h1 {
  font-size: 32px;
  font-weight: 400;
  color: var(--c-accent);
}

@media (max-width: 1023px) {
  html,
  body {
    height: 100%;
    overflow: hidden;
    background: #e7b07a;
  }

  body {
    display: block;
  }

  .panel,
  #panel-services,
  #panel-pricing,
  #panel-contact,
  #panel-about,
  #panel-clients,
  #panel-projects,
  #panel-coupon,
  .leave-card {
    width: min(95vw, 680px);
    max-height: 95dvh;
    overflow: hidden;
    overscroll-behavior: none;
  }

  .panel-body {
    overflow: auto;
    overscroll-behavior: none;
    width: 100%;
    max-height: calc(95dvh - 1.4rem);
  }

  .deck {
    width: 100%;
    grid-template-columns: 22px minmax(0, 1fr) 22px;
    gap: 2px;
  }

  .deck-prev,
  .deck-next {
    width: 22px;
    height: 22px;
    font-size: 16px;
    box-shadow: 0 2px 0 #063018;
  }

  .deck-prev {
    padding: 0 2px 2px 0;
  }

  .deck-next {
    padding: 0 0 2px 2px;
  }

  #panel-services .deck {
    grid-template-columns: 26px minmax(0, 1fr) 26px;
    gap: 10px;
  }

  #panel-services .deck-prev,
  #panel-services .deck-next {
    width: 26px;
    height: 26px;
  }

  #panel-services .card,
  #panel-pricing .card {
    min-height: 0;
    padding: 22px 14px 20px;
  }

  #panel-pricing {
    padding: 1rem 0.55rem 0.85rem;
  }

  #panel-pricing .deck {
    grid-template-columns: minmax(0, 1fr);
    position: relative;
    gap: 8px 0;
  }

  #panel-pricing .deck-view {
    grid-column: 1;
  }

  #panel-pricing .deck-prev,
  #panel-pricing .deck-next {
    position: absolute;
    top: 46%;
    width: 20px;
    height: 20px;
    font-size: 15px;
    z-index: 2;
  }

  #panel-pricing .deck-prev {
    left: 2px;
  }

  #panel-pricing .deck-next {
    right: 2px;
  }

  #panel-pricing .card {
    padding: 18px 28px 16px;
  }

  #panel-services .card h3,
  #panel-pricing .card h3 {
    font-size: 22px;
    margin-bottom: 10px;
  }

  .panel h2,
  #panel-services h2,
  #panel-pricing h2,
  #panel-contact h2,
  #panel-clients h2,
  #panel-about h2,
  #panel-coupon h2 {
    font-size: 22px;
    line-height: 1.2;
    padding: 0 40px;
  }

  #panel-services h2 {
    white-space: nowrap;
  }

  #panel-projects h2 {
    padding: 3px 6px;
  }

  .panel .close {
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
  }

  #panel-projects .cards {
    grid-template-columns: 1fr;
  }

  .deck .cards {
    display: flex;
  }

  #panel-clients .brands {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  #panel-clients img {
    height: 56px;
  }

  #panel-pricing .card p,
  #panel-pricing ul,
  #panel-services .card p {
    font-size: 18px;
    line-height: 1.4;
  }

  #panel-projects {
    height: auto;
    max-height: 95dvh;
  }

  #panel-projects .desk {
    height: auto;
    min-height: 0;
  }

  #panel-projects .desk-icons {
    position: static;
    margin: 8px 0 0 8px;
  }

  #panel-projects .ie {
    width: calc(100% - 16px);
    top: 78px;
    bottom: 36px;
    max-height: none;
  }

  #panel-projects .ie-name {
    min-width: 0;
  }

  #panel-projects .ie-tools,
  #panel-projects .ie-addr {
    font-size: 11px;
  }

  #panel-projects .ie-url {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #panel-projects .ie-view img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: top center;
  }

  #panel-projects .win {
    width: calc(100% - 12px);
    flex: none;
    min-height: 0;
    margin: 8px auto 38px;
    max-height: calc(95dvh - 130px);
    overflow: auto;
  }

  #panel-about {
    padding: 2.4rem 0.9rem 1rem;
    overflow: auto;
  }

  #panel-about .notes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 1rem 0 0;
  }

  #panel-about .note:nth-child(1) { grid-area: 1 / 1; }
  #panel-about .note:nth-child(2) { grid-area: 1 / 2; }
  #panel-about .note:nth-child(3) { grid-area: 1 / 3; }
  #panel-about .note:nth-child(4) { grid-area: 2 / 1; }
  #panel-about .note:nth-child(6) { grid-area: 2 / 2; }
  #panel-about .note:nth-child(7) { grid-area: 2 / 3; }
  #panel-about .note:nth-child(8) { grid-area: 3 / 1; }
  #panel-about .note:nth-child(5) { grid-area: 3 / 2; }
  #panel-about .note:nth-child(9) { grid-area: 3 / 3; }
  #panel-about .note:nth-child(10) { grid-area: 4 / 1; }
  #panel-about .note:nth-child(11) { grid-area: 4 / 2; }

  #panel-about .note:nth-child(n) {
    position: static;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    rotate: none;
    padding: 7px 4px 8px;
    font-size: 15px;
    text-align: center;
  }

  #panel-contact {
    overflow: hidden;
    max-height: none;
    padding: 0.7rem 0.75rem 0.6rem;
  }

  #panel-contact h2 {
    margin: 0 0 0.15rem;
  }

  #panel-contact p {
    margin: 0 0 0.2rem;
    font-size: 15px;
    line-height: 1.15;
  }

  #panel-contact form {
    gap: 4px;
    margin-top: 0.15rem;
  }

  #panel-contact .pair {
    grid-template-columns: 1fr 1fr;
    gap: 4px 8px;
  }

  #panel-contact input,
  #panel-contact textarea,
  #panel-contact select,
  #panel-contact form button {
    font-size: 15px;
    padding: 5px 6px;
  }

  #panel-contact textarea {
    min-height: 0;
    height: 3.2em;
  }

  .toast {
    white-space: nowrap;
    width: max-content;
    max-width: calc(100vw - 16px);
    font-size: 16px;
    text-align: center;
    bottom: 16px;
  }

  .hotspot,
  .hotspot:hover,
  .hotspot:focus,
  .hotspot:focus-visible,
  .hotspot:active {
    box-shadow: none;
    outline: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .hotspot::before {
    display: none;
  }

  .hotspot .tip,
  .hotspot:hover .tip,
  .hotspot:focus-visible .tip {
    opacity: 0;
  }
}

@media (min-width: 1024px) {
  html,
  html *,
  html button,
  html button:hover,
  html a,
  html a:hover,
  html .hotspot,
  html .hotspot:hover,
  html .panel .close,
  html .panel .close:hover,
  html form button,
  html form button:hover,
  html .leave-actions button,
  html .leave-actions button:hover,
  html #panel-coupon .coupon-go,
  html #panel-coupon .coupon-go:hover,
  html input,
  html textarea,
  html select,
  html label {
    cursor: url("assets/cursor-plane.png") 3 2, auto;
  }
}

@media (min-width: 1024px) {
  html,
  body {
    height: 100%;
    overflow: hidden;
  }

  body {
    display: block;
  }

  #office {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    max-width: none;
    margin: 0;
    aspect-ratio: auto;
    transform: none;
    background: #3a2414;
    --core-w: max(100vw, 100dvh);
  }

  .scene {
    inset: auto;
    left: 50%;
    top: 50%;
    width: var(--core-w);
    height: calc(var(--core-w) * 9 / 16);
    translate: -50% -50%;
  }

  #office-bg {
    inset: auto;
    left: 0;
    top: -38.8889%;
    width: 100%;
    height: 177.7778%;
    object-fit: fill;
  }

  .phone-ringer-d {
    display: block;
    position: absolute;
    left: 65.8203%;
    top: 53.125%;
    width: 10.3516%;
    height: 11.8056%;
    z-index: 3;
    overflow: hidden;
    pointer-events: none;
    transform-origin: 50% 92%;
  }

  .phone-ringer-d img {
    position: absolute;
    left: -635.849%;
    top: -779.412%;
    width: 966.038%;
    height: 1505.882%;
    max-width: none;
    image-rendering: pixelated;
  }

  .phone-ringer-d.ringing {
    animation: phone-shake-d 0.12s linear infinite;
  }
}

@media (max-width: 1023px) {
  .phone-ringer-d {
    display: none;
  }
}

@keyframes phone-shake-d {
  0%, 100% { transform: translateX(-2px) rotate(-0.9deg); }
  50% { transform: translateX(2px) rotate(0.9deg); }
}

@media (max-width: 1023px) {
  html,
  body {
    height: 100%;
    overflow: hidden;
    background: #e7b07a;
  }

  body {
    display: block;
  }

  #office {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    max-width: none;
    margin: 0;
    aspect-ratio: auto;
    transform: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #b98450;
    container-type: size;
    --scene-w: min(100cqw, calc(100cqh * 573 / 1200));
    --phone-shift: min(calc(var(--scene-w) * 280 / 573), max(0px, calc((100cqw - var(--scene-w)) / 2 + var(--scene-w) * 10 / 573)));
    --register-shift: min(calc(var(--scene-w) * 290 / 573), calc((100cqw - var(--scene-w)) / 2 + var(--scene-w) * 16 / 573));
  }

  .phone-table,
  .phone-ringer {
    display: block;
    position: absolute;
    left: 77.66%;
    top: 48.21%;
    width: 22.34%;
    height: auto;
    pointer-events: none;
  }

  .phone-table {
    clip-path: inset(38% 0 0 0);
  }

  .phone-ringer {
    clip-path: inset(0 0 58% 0);
  }

  .phone-table,
  .phone-ringer,
  .spot-contact,
  .outline[src*="m-contact"] {
    translate: var(--phone-shift) 0;
  }

  .register-table {
    display: block;
    position: absolute;
    left: 0;
    top: 52.388%;
    width: 53.403%;
    height: auto;
    pointer-events: none;
  }

  .register-table,
  .spot-pricing,
  .outline[src*="m-pricing"] {
    translate: calc(-1 * var(--register-shift)) 0;
  }

  .scene {
    position: relative;
    inset: auto;
    flex: 0 0 auto;
    width: var(--scene-w);
    aspect-ratio: 573 / 1340;
    height: auto;
  }

  #office-mobile {
    display: block;
    inset: 0 auto auto -52.356%;
    width: 204.712%;
    object-fit: fill;
  }

  .rug-spot {
    --u: calc(var(--scene-w) / 573);
    --rug-bottom: min(100cqh, calc(var(--u) * 1340));
    --rug-h: max(0px, min(calc(var(--u) * 189), calc(var(--rug-bottom) - var(--u) * 966)));
    display: block;
    position: absolute;
    left: 50%;
    top: max(calc(var(--u) * 978), calc(var(--rug-bottom) - var(--rug-h) - var(--u) * 56));
    z-index: 4;
    width: auto;
    height: var(--rug-h);
    translate: -50% 0;
  }

  .rug-spot .rug {
    width: auto;
    height: 100%;
    image-rendering: pixelated;
  }

  #office-bg {
    display: none;
  }

  .spot-door {
    display: none;
  }

  .spot-logo {
    display: block;
    left: 22.34%;
    top: 7.76%;
    width: 55.32%;
    height: 3.43%;
  }

  .spot-window { left: 1.05%; top: 12.39%; width: 10.47%; height: 25.97%; }
  .spot-services { left: 37.35%; top: 13.13%; width: 25.65%; height: 12.91%; }
  .spot-about { left: 84.82%; top: 14.78%; width: 15.18%; height: 19.85%; }
  .spot-plant { left: 11.52%; top: 34.93%; width: 17.45%; height: 16.42%; }
  .spot-projects { left: 30.72%; top: 27.46%; width: 32.81%; height: 12.39%; }
  .spot-coffee { left: 67.36%; top: 33.73%; width: 8.38%; height: 5.97%; }
  .spot-contact { left: 77.84%; top: 47.69%; width: 22.16%; height: 15.97%; }
  .spot-pricing { left: 2.79%; top: 52.09%; width: 46.42%; height: 12.09%; }
  .spot-drawer {
    left: 57.5%;
    top: 44.65%;
    width: 13%;
    height: 6.7%;
  }

  .code-screen {
    left: 40.14%;
    top: 29.03%;
    width: 19.72%;
    height: 7.01%;
  }

  .window-sky {
    left: 2.6178%;
    top: 13.6567%;
    width: 5.0611%;
    height: 23.0597%;
    clip-path: polygon(0 0, 10.34% 0, 100% 3.24%, 100% 19.09%, 96.55% 24.27%, 96.55% 74.11%, 93.1% 74.43%, 93.1% 94.17%, 65.52% 96.44%, 17.24% 99.03%, 10.34% 100%, 0 99.68%);
  }

  .steam-d {
    display: none;
  }

  .steam-m {
    display: block;
    left: 69.46%;
    top: 32.84%;
    width: 3.49%;
  }

  .plant-d {
    display: none;
  }

  .plant-m {
    display: block;
    left: 10.8202%;
    top: 34.7761%;
    width: 18.1501%;
    transform-origin: 49% 100%;
  }

  .outline-d {
    display: none;
  }

  .outline-m {
    display: block;
  }
}

@media (max-width: 1023px) and (orientation: landscape) and (hover: none) {
  html {
    overflow: hidden;
  }

  body {
    position: fixed;
    top: 0;
    left: 100%;
    width: 100dvh;
    height: 100vw;
    transform: rotate(90deg);
    transform-origin: top left;
  }

  #office {
    width: 100%;
    height: 100%;
  }

  .panel,
  #panel-services,
  #panel-pricing,
  #panel-contact,
  #panel-about,
  #panel-clients,
  #panel-projects,
  #panel-coupon,
  .leave-card {
    width: min(95%, 680px);
    max-height: 95%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .phone-ringer.ringing img,
  .phone-ringer-d.ringing {
    animation: none !important;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
