/* A-Town Magic — styles */
@font-face { font-family: "Pixelify"; src: url("fonts/pixelify-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Pixelify"; src: url("fonts/pixelify-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/poppins-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/poppins-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Silkscreen"; src: url("fonts/silkscreen-latin-400-normal.woff2") format("woff2"); font-display: swap; }

:root {
  --char: #262626; --char-2: #2f2925; --cream: #FBF8F2; --cream-2: #F3ECE0;
  --tan: #D9B48F; --tan-d: #B88B62; --tan-dd: #8a6444; --orange: #E8A33D; --yellow: #F5C044;
  --px: 4px;
  --pixel: "Pixelify", "Silkscreen", monospace; --body: "Poppins", system-ui, sans-serif; --tiny: "Silkscreen", monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--char); font-family: var(--body); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, canvas { display: block; }
canvas { image-rendering: pixelated; image-rendering: crisp-edges; }
a { color: inherit; }
.wrap { width: min(1100px, 100% - 40px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* pixel box: stepped corners + hard shadow */
.pbox { background: var(--cream); border: var(--px) solid var(--char); box-shadow: 6px 6px 0 var(--tan-d); position: relative; }

/* ---------- header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 14px 22px; transition: background .25s, box-shadow .25s; }
.site-header.scrolled { background: rgba(38, 38, 38, .94); box-shadow: 0 4px 0 var(--tan-d); }
.logo img { height: 46px; width: auto; }
.nav { display: flex; gap: 6px; }
.nav a { white-space: nowrap; font-family: var(--pixel); font-size: 18px; color: var(--cream); text-decoration: none; padding: 4px 12px; border: 3px solid transparent; }
.nav a:hover, .nav a:focus-visible { border-color: var(--tan); background: rgba(0,0,0,.25); outline: none; }

/* ---------- hero room ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 420px; overflow: hidden; background: #2f2925; }
#stage { position: absolute; }
#room { width: 100%; height: 100%; }
.hot { position: absolute; background: none; border: 3px dashed transparent; cursor: pointer; padding: 0; text-decoration: none; }
.hot span { position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%) translateY(4px); white-space: nowrap; font-family: var(--pixel); font-size: 16px; background: var(--char); color: var(--cream); border: 3px solid var(--tan); padding: 2px 10px; opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; }
.hot:hover, .hot:focus-visible { border-color: rgba(251, 248, 242, .85); outline: none; }
.hot:hover span, .hot:focus-visible span { opacity: 1; transform: translateX(-50%) translateY(0); }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); font-family: var(--tiny); font-size: 12px; color: var(--cream); text-decoration: none; text-align: center; letter-spacing: 1px; animation: bob 1.2s steps(2) infinite; text-shadow: 2px 2px 0 #000; }
.swipe { display: none; position: sticky; left: 50%; top: 70px; width: max-content; transform: translateX(-50%); font-family: var(--tiny); font-size: 11px; color: var(--cream); background: rgba(0,0,0,.45); padding: 3px 8px; z-index: 2; pointer-events: none; }
.scroll-cue b { display: block; font-size: 22px; line-height: 1; }
@keyframes bob { 50% { transform: translate(-50%, 6px); } }

/* ---------- avatar guide ---------- */
.guide { position: fixed; left: 18px; bottom: 16px; z-index: 40; display: flex; align-items: flex-end; gap: 10px; pointer-events: none; }
.guide > * { pointer-events: auto; }
#avatar { width: 80px; height: 112px; cursor: pointer; filter: drop-shadow(4px 4px 0 rgba(0,0,0,.25)); }
.bubble { max-width: 300px; margin-bottom: 64px; padding: 12px 34px 12px 14px; font-size: 14px; line-height: 1.45; background: var(--cream); border: var(--px) solid var(--char); box-shadow: 5px 5px 0 var(--tan-d); position: relative; transition: opacity .2s, transform .2s; }
.bubble::before { content: ""; position: absolute; left: -16px; bottom: 14px; width: 12px; height: 12px; background: var(--cream); border-left: var(--px) solid var(--char); border-bottom: var(--px) solid var(--char); transform: skewY(-35deg); }
.bubble strong { font-family: var(--pixel); font-size: 18px; display: block; margin-bottom: 2px; }
.bubble .x { position: absolute; top: 4px; right: 6px; border: 0; background: none; font-family: var(--pixel); font-size: 18px; cursor: pointer; color: var(--tan-dd); }
.bubble.hidden { opacity: 0; transform: translateY(8px); pointer-events: none; }
.bubble p { margin: 0; }

/* ---------- skyline view ---------- */
.view { position: relative; padding: 110px 0 0; text-align: center; color: var(--char);
  background: linear-gradient(#F7E6CB 0 20%, #F3D5AC 20% 40%, #EFC08A 40% 60%, #E8A86E 60% 80%, #DD8D58 80%); }
.view h2 { font-family: var(--pixel); font-weight: 700; font-size: clamp(34px, 6vw, 64px); margin: 0; line-height: 1.05; }
.view p { margin: 10px auto 0; font-size: 17px; max-width: 520px; }
#skyline { width: 100%; height: auto; aspect-ratio: 320 / 90; margin-top: 40px; }

/* ---------- sections ---------- */
section.block { padding: 90px 0; scroll-margin-top: 70px; }
.eyebrow { font-family: var(--tiny); font-size: 13px; letter-spacing: 1px; color: var(--tan-dd); margin: 0 0 6px; }
h2.title { font-family: var(--pixel); font-weight: 700; font-size: clamp(30px, 4.5vw, 46px); line-height: 1.1; margin: 0 0 14px; }
.lead { font-size: 18px; max-width: 640px; margin: 0 0 40px; }

#projects { background: var(--char); color: var(--cream); }
#projects .eyebrow { color: var(--tan); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.card { background: var(--cream); color: var(--char); border: var(--px) solid var(--cream); box-shadow: 6px 6px 0 var(--tan-d); display: flex; flex-direction: column; transition: transform .15s steps(2), box-shadow .15s steps(2); }
.card:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--orange); }
.ph { position: relative; display: grid; place-items: center; text-align: center; color: var(--tan-dd); font-family: var(--tiny); font-size: 11px; letter-spacing: .5px; padding: 10px;
  background: repeating-linear-gradient(45deg, var(--cream-2) 0 8px, #e9dfcf 8px 16px); border-bottom: var(--px) solid var(--char); aspect-ratio: 3 / 2; }
.card .body { padding: 16px 18px 20px; flex: 1; display: flex; flex-direction: column; }
.card h3 { font-family: var(--pixel); font-size: 22px; margin: 0 0 6px; line-height: 1.15; }
.card p { margin: 0 0 14px; font-size: 14.5px; }
.tags { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-family: var(--tiny); font-size: 10.5px; padding: 3px 8px; border: 2px solid var(--char); background: var(--cream); }
.tag.status { background: var(--yellow); }

#about .grid { display: grid; grid-template-columns: 340px 1fr; gap: 56px; align-items: start; }
.photo { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; image-rendering: pixelated; border: var(--px) solid var(--char); box-shadow: 8px 8px 0 var(--tan); transform: rotate(-2deg); background: var(--cream-2); }
#about p { font-size: 17px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 26px; padding: 0; list-style: none; }
.chips li { font-family: var(--pixel); font-size: 17px; padding: 4px 12px; border: 3px solid var(--char); background: #fff; box-shadow: 3px 3px 0 var(--tan); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.fact { padding: 14px 16px; border: 3px dashed var(--tan-d); }
.fact b { display: block; font-family: var(--pixel); font-size: 22px; line-height: 1.1; }
.fact span { font-size: 14px; }

#hire { padding-top: 10px; }
.hire { padding: 34px 36px; background: var(--cream-2); border: var(--px) solid var(--char); box-shadow: 8px 8px 0 var(--tan-d); display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; }
.hire h2 { font-family: var(--pixel); font-size: clamp(26px, 3.4vw, 36px); margin: 0 0 10px; line-height: 1.15; }
.hire p { margin: 0 0 12px; }
.hire ul { margin: 0; padding: 0; list-style: none; }
.hire li { padding: 8px 0 8px 28px; position: relative; border-bottom: 2px dotted var(--tan); }
.hire li::before { content: "★"; position: absolute; left: 2px; color: var(--orange); }
.btn { display: inline-block; font-family: var(--pixel); font-size: 19px; text-decoration: none; color: var(--char); background: var(--yellow); border: var(--px) solid var(--char); box-shadow: 4px 4px 0 var(--char); padding: 8px 18px; cursor: pointer; transition: transform .1s steps(2), box-shadow .1s steps(2); }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--char); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--char); }
.btn.ghost { background: transparent; }

#contact { background: var(--tan); }
#contact .grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 50px; align-items: start; }
form.pbox { padding: 26px; }
label { display: block; font-family: var(--pixel); font-size: 17px; margin: 0 0 4px; }
input, select, textarea { width: 100%; font: inherit; font-size: 15px; padding: 10px 12px; background: #fff; border: 3px solid var(--char); border-radius: 0; margin-bottom: 16px; color: var(--char); }
input:focus, select:focus, textarea:focus { outline: none; box-shadow: 4px 4px 0 var(--orange); }
textarea { min-height: 130px; resize: vertical; }
.hp { display: none; }
.socials { display: flex; gap: 14px; margin-top: 22px; }
.socials a { width: 52px; height: 52px; display: grid; place-items: center; background: var(--char); border: 3px solid var(--char); box-shadow: 4px 4px 0 var(--cream); transition: transform .1s steps(2); }
.socials a:hover { transform: translate(-2px, -2px); }
.socials svg { width: 28px; height: 28px; shape-rendering: crispEdges; }

/* ---------- footer ---------- */
footer { background: var(--char); color: var(--cream); padding: 46px 0 120px; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
footer img { height: 40px; width: auto; }
footer small { font-size: 13px; opacity: .75; }
.coin { font-family: var(--tiny); font-size: 11px; color: var(--tan-d); text-decoration: none; letter-spacing: 1px; }
.coin:hover { color: var(--yellow); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  #about .grid, #contact .grid, .hire { grid-template-columns: 1fr; }
  .photo { max-width: 320px; }
  .hire { padding: 26px 22px; }
}
@media (max-width: 640px) {
  .nav { gap: 0; }
  .nav a { font-size: 14px; padding: 3px 6px; }
  .logo img { height: 30px; }
  .hero.pan { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
  .hero.pan::-webkit-scrollbar { display: none; }
  .scroll-cue { position: fixed; display: none; }
  .swipe { display: block !important; }
  .site-header { padding: 10px 12px; }
  .hero { height: auto; min-height: 0; }
  .guide { left: 8px; bottom: 8px; }
  #avatar { width: 60px; height: 84px; }
  .bubble { max-width: calc(100vw - 100px); font-size: 13px; margin-bottom: 44px; }
  .hot span { font-size: 13px; }
  section.block { padding: 64px 0; }
  .view { padding-top: 80px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }
