/* Night Street: dusk over a shophouse row. One neon accent (teal), warm lamp light. */
:root {
  --night: #0c0a1f;
  --night-2: #151133;
  --board: #19142f;
  --ink: #f7f0e4;
  --muted: #cfc5da;       /* 11.9:1 on --night */
  --dim: #a99fbb;         /* 7.4:1 on --night */
  --lamp: #ffc46b;
  --lamp-deep: #f59e3d;
  --neon: #35f2d0;        /* 13.6:1 on --night */
  --neon-soft: rgba(53, 242, 208, 0.45);
  --rose: #e2728a;
  --line: rgba(247, 240, 228, 0.14);
  --display: "Bricolage Grotesque", "Avenir Next Condensed", "Arial Narrow", system-ui, sans-serif;
  --ui: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gut: clamp(16px, 4vw, 48px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--night); color: var(--ink);
  font: 16px/1.55 var(--ui); overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--lamp); color: #1b1300; padding: 10px 14px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--neon); outline-offset: 3px; border-radius: 6px; }

/* ---------- sky + canvas ---------- */
.sky {
  position: fixed; inset: 0; z-index: -3;
  background:
    radial-gradient(1.5px 1.5px at 12% 14%, #fff8 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 8%, #fff9 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 47% 18%, #fff6 50%, transparent 51%),
    radial-gradient(1px 1px at 66% 6%, #fff8 50%, transparent 51%),
    radial-gradient(1px 1px at 81% 15%, #fff7 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 92% 9%, #fff6 50%, transparent 51%),
    radial-gradient(120% 60% at 70% 72%, rgba(255, 170, 96, 0.55), transparent 60%),
    linear-gradient(180deg, #0f0c29 0%, #231b4f 26%, #4a2f6d 44%, #9a4f78 58%, #e0806c 69%, #f4ab62 75%, #3c2650 84%, #100c25 100%);
}
#gl { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; display: block; transition: opacity .2s linear; }
.no-gl #gl { display: none; }
.no-gl .sky::after {
  /* A flat shophouse silhouette so the hero is still a street without WebGL. */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 38vh;
  background:
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(255, 196, 107, .35) 18px 42px, transparent 42px 64px) 0 55% / 100% 26% no-repeat,
    linear-gradient(180deg, #221a3f, #0c0a1f);
  clip-path: polygon(0 20%, 8% 20%, 8% 8%, 16% 8%, 16% 20%, 30% 20%, 30% 4%, 38% 4%, 38% 20%, 52% 20%, 52% 10%, 64% 10%, 64% 20%, 78% 20%, 78% 2%, 86% 2%, 86% 20%, 100% 20%, 100% 100%, 0 100%);
}

/* ---------- header ---------- */
.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px var(--gut);
  background: linear-gradient(180deg, rgba(12, 10, 31, .82), rgba(12, 10, 31, 0));
}
.brand { text-decoration: none; display: inline-flex; }
.neon {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 6px 12px 7px; border-radius: 7px;
  border: 1.5px solid rgba(53, 242, 208, .7);
  background: rgba(10, 8, 28, .72);
  box-shadow: 0 0 10px rgba(53, 242, 208, .35), inset 0 0 12px rgba(53, 242, 208, .16);
  font-family: var(--display); line-height: 1;
}
.neon-a {
  font-weight: 700; font-size: 18px; letter-spacing: .01em; color: #e6fffa;
  text-shadow: 0 0 3px #35f2d0, 0 0 10px #35f2d0, 0 0 22px rgba(53, 242, 208, .55);
}
.neon-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--lamp); box-shadow: 0 0 8px var(--lamp); }
.neon-b {
  font-weight: 600; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: #ffe3b3;
  text-shadow: 0 0 6px rgba(255, 196, 107, .8), 0 0 16px rgba(245, 158, 61, .5);
}
.neon, .neon-a { animation: flicker 1.6s .25s both; }
@keyframes flicker {
  0% { opacity: .15; } 6% { opacity: 1; } 9% { opacity: .35; } 13% { opacity: 1; }
  24% { opacity: .55; } 27% { opacity: 1; } 100% { opacity: 1; }
}
.nav { display: flex; align-items: center; gap: clamp(10px, 2vw, 22px); }
.nav-link { text-decoration: none; color: var(--muted); font-size: 14px; }
.nav-link:hover { color: var(--ink); }
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  background: var(--lamp); color: #1d1300; font-weight: 650; font-size: 14px;
  padding: 9px 15px; border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(255, 196, 107, .4), 0 6px 22px rgba(245, 158, 61, .28);
  transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255, 196, 107, .6), 0 8px 28px rgba(245, 158, 61, .45); }
.btn-lg { font-size: 17px; padding: 14px 22px; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 108px var(--gut) 88px;
}
.hero::before {
  /* scrim so copy stays AA over the street */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(12, 10, 31, .9) 0%, rgba(12, 10, 31, .72) 34%, rgba(12, 10, 31, 0) 62%);
}
.hero-copy { max-width: 600px; position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px;
  font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--lamp);
}
.lamp { width: 8px; height: 8px; border-radius: 50%; background: var(--lamp); box-shadow: 0 0 10px 2px rgba(255, 196, 107, .7); }
h1 {
  font-family: var(--display); font-weight: 780; font-variation-settings: "opsz" 96;
  font-size: clamp(40px, 5.6vw, 80px); line-height: .98; letter-spacing: -.025em;
  margin: 0 0 20px; text-wrap: balance;
}
h1 em { font-style: normal; color: var(--lamp); text-shadow: 0 0 28px rgba(245, 158, 61, .35); }
.lede { margin: 0 0 28px; max-width: 34em; font-size: clamp(16px, 1.3vw, 18px); color: var(--muted); }

/* signboard search */
.board {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 8px 10px 8px 8px; border-radius: 12px;
  background: linear-gradient(180deg, #221b40, #17122d);
  border: 1px solid rgba(255, 196, 107, .5);
  box-shadow: 0 0 0 4px rgba(25, 20, 47, .9), 0 0 0 5px rgba(255, 196, 107, .22), 0 18px 50px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 236, 200, .12);
  transition: border-color .2s, box-shadow .2s;
}
.board::before {
  /* warm lamp wash on the board, like a sign lit from above */
  content: ""; position: absolute; left: 14%; right: 14%; top: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 214, 150, .9), transparent);
}
.board:focus-within {
  border-color: var(--neon);
  box-shadow: 0 0 0 4px rgba(25, 20, 47, .9), 0 0 0 5px rgba(53, 242, 208, .45), 0 0 34px rgba(53, 242, 208, .28), 0 18px 50px rgba(0, 0, 0, .45);
}
.board-plate {
  flex: none; font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: .16em; text-transform: uppercase;
  color: #1d1300; background: var(--lamp); padding: 9px 11px; border-radius: 7px;
}
#q {
  flex: 1; min-width: 0; background: transparent; border: 0; outline: none;
  color: var(--ink); font: 500 clamp(16px, 1.4vw, 19px)/1.2 var(--ui); padding: 10px 2px;
}
#q::placeholder { color: var(--dim); }
.kbd {
  flex: none; font: 600 12px/1 var(--ui); color: var(--muted);
  border: 1px solid var(--line); border-radius: 6px; padding: 6px 7px; background: rgba(255, 255, 255, .04);
}
.under { margin-top: 14px; }
.hints { display: flex; flex-wrap: wrap; gap: 8px; }
.hints::before { content: "Try"; color: var(--dim); font-size: 13.5px; align-self: center; margin-right: 2px; }
.chip {
  font: 500 13.5px/1 var(--ui); color: var(--ink); cursor: pointer;
  background: rgba(25, 20, 47, .78); border: 1px solid rgba(53, 242, 208, .35); border-radius: 999px; padding: 8px 12px;
  transition: border-color .15s, box-shadow .15s, color .15s;
}
.chip:hover { border-color: var(--neon); box-shadow: 0 0 14px rgba(53, 242, 208, .3); color: #e6fffa; }

.results {
  list-style: none; margin: 0; padding: 6px; max-height: min(52vh, 440px); overflow: auto;
  background: rgba(17, 13, 38, .94); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5); backdrop-filter: blur(8px);
}
.opt a {
  display: grid; grid-template-columns: 76px 1fr auto; gap: 12px; align-items: center;
  padding: 8px; border-radius: 9px; text-decoration: none;
}
.opt[aria-selected="true"] a, .opt a:hover { background: rgba(53, 242, 208, .09); box-shadow: inset 0 0 0 1px rgba(53, 242, 208, .5); }
.opt-thumb { width: 76px; height: 48px; object-fit: cover; border-radius: 5px; }
.opt-icon {
  width: 76px; height: 48px; display: grid; place-items: center; border-radius: 5px;
  font: 700 14px/1 var(--display); letter-spacing: .06em; color: var(--lamp);
  background: repeating-linear-gradient(90deg, #231b44 0 6px, #1c1638 6px 12px); border: 1px solid rgba(255, 196, 107, .35);
}
.opt-body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.opt-kind { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.opt-kind.live { color: var(--neon); }
.opt-kind.svc { color: var(--lamp); }
.opt-title { font-weight: 650; font-size: 15px; }
.opt-line { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.opt-go { font-size: 13px; color: var(--neon); white-space: nowrap; }
.empty { padding: 14px 16px; border-radius: 12px; background: rgba(17, 13, 38, .94); border: 1px solid var(--line); color: var(--muted); }
.empty a { color: var(--neon); }

.cue {
  position: absolute; left: var(--gut); bottom: 26px; margin: 0; display: flex; align-items: center; gap: 12px;
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim);
}
.cue-line { width: 44px; height: 1px; background: linear-gradient(90deg, var(--lamp), transparent); }

/* ---------- the walk (scroll moment) ---------- */
.walk { display: none; }
.gl-ok .walk { display: block; height: 340vh; position: relative; }
.rm .walk { display: none !important; }
.walk-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: flex-end; justify-content: center; padding: 0 var(--gut) 28px; pointer-events: none; }
.hud {
  display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 6px 14px;
  width: min(560px, 100%); padding: 12px 16px; border-radius: 12px;
  background: rgba(12, 10, 31, .78); border: 1px solid rgba(53, 242, 208, .35); backdrop-filter: blur(6px);
}
.hud-plate { font: 700 11px/1 var(--display); letter-spacing: .18em; text-transform: uppercase; background: var(--lamp); color: #1d1300; padding: 6px 8px; border-radius: 5px; }
.hud-n { font: 600 13px/1 var(--ui); color: var(--neon); font-variant-numeric: tabular-nums; }
.hud-t { font: 700 17px/1.1 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hud-bar { grid-column: 1 / -1; height: 2px; background: rgba(255, 255, 255, .1); border-radius: 2px; overflow: hidden; }
.hud-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--lamp), var(--neon)); }

/* ---------- gallery ---------- */
.work {
  position: relative; padding: 110px var(--gut) 80px;
  background: linear-gradient(180deg, rgba(12, 10, 31, 0) 0, var(--night) 140px, var(--night) 100%);
}
.work-head { max-width: 760px; margin: 0 0 40px; }
h2 { font-family: var(--display); font-weight: 760; font-size: clamp(30px, 3.6vw, 50px); line-height: 1.02; letter-spacing: -.02em; margin: 0 0 14px; }
.work-note { color: var(--muted); margin: 0; max-width: 40em; }
.grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 22px;
}
.card {
  position: relative; display: flex; flex-direction: column; height: 100%; text-decoration: none;
  background: linear-gradient(180deg, #1a1535, #120e29); border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.card:hover, .card:focus-visible { transform: translateY(-3px); border-color: rgba(53, 242, 208, .55); box-shadow: 0 0 0 1px rgba(53, 242, 208, .25), 0 18px 40px rgba(0, 0, 0, .45), 0 0 30px rgba(53, 242, 208, .12); }
/* the fascia: each card starts as the shop's sign */
.fascia {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 14px; background: #150f2c; border-bottom: 1px solid rgba(255, 196, 107, .28);
}
.fascia h3 {
  margin: 0; font: 720 19px/1.1 var(--display); letter-spacing: .01em; color: #e6fffa;
  text-shadow: 0 0 6px rgba(53, 242, 208, .55), 0 0 18px rgba(53, 242, 208, .25);
}
.fascia .no { flex: none; font: 600 12px/1 var(--ui); color: var(--lamp); font-variant-numeric: tabular-nums; }
.card figure { margin: 0; aspect-ratio: 16 / 10; overflow: hidden; background: #0f0b22; }
.card figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover figure img { transform: scale(1.03); }
.card-body { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.kind { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.kind.live { color: var(--neon); }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.go { margin-top: auto; padding-top: 6px; font-size: 13.5px; color: var(--neon); }

/* sign -> card resolve (only when JS + motion allowed) */
.anim .grid li { transition: opacity .5s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.anim .grid li .card { transition: clip-path .75s cubic-bezier(.2, .7, .2, 1), transform .25s, border-color .25s, box-shadow .25s; }
.anim .grid li.pre { opacity: 0; transform: translateY(28px) scale(.96); }
.anim .grid li.pre .card, .anim .grid li.sign .card { clip-path: inset(0 0 calc(100% - 46px) 0 round 12px); }
.anim .grid li.sign { opacity: 1; transform: none; }
.anim .grid li.sign .fascia h3 { text-shadow: 0 0 8px #35f2d0, 0 0 26px rgba(53, 242, 208, .7); }
.anim .grid li.in .card { clip-path: inset(0 0 0 0 round 12px); }

/* ---------- footer ---------- */
.foot { background: var(--night); padding: 40px var(--gut) 48px; border-top: 1px solid var(--line); }
.foot-cta { max-width: 760px; margin-bottom: 40px; }
.foot-cta h2 { margin-bottom: 22px; }
.services { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 16px; }
.services li { padding: 16px; border: 1px solid var(--line); border-radius: 10px; display: flex; flex-direction: column; gap: 6px; }
.services b { font-family: var(--display); font-size: 17px; }
.services span { color: var(--muted); font-size: 14px; }
.foot-meta { color: var(--dim); font-size: 14px; margin: 0; }

/* ---------- hover tag over the 3D street ---------- */
.tag {
  position: fixed; z-index: 15; pointer-events: none; transform: translate(14px, 14px);
  background: rgba(12, 10, 31, .92); border: 1px solid rgba(53, 242, 208, .6); border-radius: 8px;
  padding: 7px 10px; font-size: 13px; white-space: nowrap; box-shadow: 0 0 18px rgba(53, 242, 208, .2);
}
.tag b { font-family: var(--display); font-size: 15px; margin-right: 6px; }
.tag span { color: var(--neon); }

/* ---------- phone ---------- */
@media (max-width: 700px) {
  .nav-link { display: none; }
  .neon-a { font-size: 16px; }
  .neon-b { font-size: 11px; }
  .btn { padding: 8px 12px; font-size: 13px; }
  .hero { justify-content: flex-start; padding-top: 88px; padding-bottom: 42vh; }
  .hero::before { background: linear-gradient(180deg, rgba(12, 10, 31, .92) 0%, rgba(12, 10, 31, .8) 52%, rgba(12, 10, 31, 0) 70%); }
  .lede { margin-bottom: 20px; }
  .kbd { display: none; }
  .opt a { grid-template-columns: 60px 1fr; }
  .opt-thumb, .opt-icon { width: 60px; height: 40px; }
  .opt-go { display: none; }
  .cue { display: none; }
  .hud { grid-template-columns: auto 1fr; }
  .hud-n { grid-column: 2; justify-self: end; grid-row: 1; }
  .hud-t { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
