:root {
  --ink: #050608;
  --bone: #f2efe8;
  --dim: rgba(242, 239, 232, .55);
  --accent: #4fc3ff;
  --display: "Anton", "Impact", sans-serif;
  --logo: "Archivo Black", "Arial Black", sans-serif;          /* the JAYWALKING wordmark keeps its original face */
  --body: "Space Grotesk", system-ui, sans-serif;
  --mono: "Space Mono", ui-monospace, monospace;
}
body.light-ui { --bone: #161616; --dim: rgba(22, 22, 22, .55); --ink: #f2f2f2; }
body.light-ui .pill, body.light-ui .btn.ghost, body.light-ui .name-input { border-color: rgba(22, 22, 22, .45); }
body.light-ui .name-input { background: rgba(255, 255, 255, .55); }
* { box-sizing: border-box; }
html { color-scheme: dark; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--ink); color: var(--bone); font-family: var(--body); -webkit-font-smoothing: antialiased; }
#gl { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
a { color: inherit; text-decoration: none; }
.ui { position: fixed; z-index: 2; pointer-events: none; }
.ui a, .ui button, .ui input { pointer-events: auto; }

/* loader (adidas structure: looping bars -> PRESENTS -> lockup -> crossfade) */
#loader { position: fixed; inset: 0; z-index: 10; background: var(--ink); display: grid; place-items: center; transition: opacity 1.5s ease; }
#loader .bars { position: absolute; display: flex; align-items: flex-end; gap: 6px; transition: opacity .5s; }
#loader .bars img { width: 46px; height: auto; filter: invert(1); animation: markpulse 1.6s ease-in-out infinite; }
#loader .bars .caret { font-family: var(--display); font-size: 30px; line-height: 1; color: var(--bone); }
@keyframes markpulse { 0%, 100% { opacity: .35; transform: translateY(0) } 50% { opacity: 1; transform: translateY(-3px) } }
#loader .stage { position: absolute; display: grid; justify-items: center; gap: 14px; opacity: 0; transform: translateY(6px); transition: opacity 1s ease, transform 1s ease; }
#loader .stage.on { opacity: 1; transform: none; }
#loader .presents img { width: 64px; height: auto; filter: invert(1); }
#loader .word { font-family: var(--logo); font-size: clamp(30px, 5.4vw, 64px); letter-spacing: .03em; line-height: .9; }
#loader .line { font-family: var(--mono); font-size: 11px; letter-spacing: .42em; color: var(--dim); }
#loader .box, .lockup-mini .box { font-family: var(--display); border: 2px solid var(--bone); padding: .28em .55em .22em; letter-spacing: .04em; line-height: 1; }
#loader .box { font-size: clamp(26px, 4.4vw, 52px); }
#loader.done-bars .bars { opacity: 0; }
#loader.out { opacity: 0; pointer-events: none; }
.caret { animation: blink 1s steps(1) infinite; font-style: normal; color: var(--accent); }
@keyframes blink { 50% { opacity: 0 } }

/* header / footer */
.top { top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: max(22px, env(safe-area-inset-top)) max(28px, env(safe-area-inset-right)) 22px max(28px, env(safe-area-inset-left)); }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--logo); font-size: 15px; letter-spacing: .04em; }
.brand img { width: 30px; height: auto; filter: invert(1); }
.pill { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; border: 1px solid rgba(242, 239, 232, .5); padding: 9px 14px; transition: background .25s, color .25s; }
.pill:hover { background: var(--bone); color: var(--ink); }
.foot a.credit { pointer-events: auto; opacity: .7; }
.foot a.credit:hover { opacity: 1; text-decoration: underline; }
.foot { left: 28px; bottom: 22px; font-family: var(--mono); font-size: 10px; letter-spacing: .2em; color: var(--dim); display: flex; gap: 10px; flex-wrap: wrap; max-width: 300px; }
.foot .sep { display: none; }
.foot span:first-child::after { content: ' · BANDRA · KALA GHODA'; }
.foot span:nth-of-type(3) { display: none; }
.foot a.credit { font-size: 10px; letter-spacing: .14em; flex-basis: 100%; }

/* crossing */
.crossing-ui { inset: 0; }
.lockup-mini { position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%); display: grid; justify-items: center; gap: 12px; }
.lockup-mini .box { font-size: 20px; letter-spacing: .06em; border-width: 1.5px; }
.lockup-mini .hint-line { font-family: var(--mono); font-size: 10px; letter-spacing: .34em; color: var(--dim); white-space: nowrap; }
.tee-label { position: absolute; right: 28px; bottom: 26px; text-align: right; max-width: 340px; }
.tee-label .t-world { font-family: var(--display); font-size: clamp(22px, 2.8vw, 38px); line-height: .95; color: var(--accent); }
.tee-label .t-name { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; margin-top: 10px; color: var(--bone); }
.tee-label .t-cta { font-family: var(--mono); font-size: 10px; letter-spacing: .22em; margin-top: 14px; color: var(--dim); }
.hint { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); font-family: var(--mono); font-size: 10px; letter-spacing: .3em; color: var(--dim); white-space: nowrap; }

/* world */
.world-ui { inset: 0; }
.world-tag { position: absolute; left: 28px; top: 84px; display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .26em; }
.world-tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.wall-hint { position: absolute; left: 50%; top: 13vh; transform: translateX(-50%); font-family: var(--mono); font-size: 11px; letter-spacing: .3em; opacity: 0; transition: opacity .4s; text-align: center; }
.name-input { position: fixed; left: 0; top: 42%; width: 100%; height: 40px; font-size: 16px; opacity: 0; color: transparent; caret-color: transparent;
  background: transparent; border: 0; outline: none; pointer-events: none !important; z-index: -1; }
.end-card { position: absolute; left: 28px; bottom: 70px; max-width: 520px; opacity: 0; transform: translateY(12px); transition: opacity .5s, transform .5s; pointer-events: none; }
.foot { transition: opacity .4s; }
body.end-on .foot { opacity: 0; pointer-events: none; }
.end-card.on { opacity: 1; transform: none; pointer-events: auto; }
.e-kicker { font-family: var(--mono); font-size: 11px; letter-spacing: .26em; color: var(--accent); }
.e-name { font-family: var(--display); font-size: clamp(26px, 3.6vw, 50px); line-height: .95; margin-top: 10px; }
.e-meta { font-family: var(--mono); font-size: 10px; letter-spacing: .16em; color: var(--dim); margin-top: 12px; }
.e-row { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.btn { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; padding: 13px 18px; background: var(--bone); color: var(--ink); transition: transform .2s, background .2s; }
.btn:hover { transform: translateY(-2px); background: var(--accent); }
.btn.ghost { background: transparent; color: var(--bone); border: 1px solid rgba(242, 239, 232, .45); }
.btn.ghost:hover { background: var(--bone); color: var(--ink); }
.egg-hint { position: absolute; right: 28px; bottom: 26px; font-family: var(--mono); font-size: 10px; letter-spacing: .22em; color: var(--dim); opacity: 0; transition: opacity .5s; }

/* modes */
body[data-mode="loading"] .ui:not(.top) { opacity: 0; }
body .crossing-ui, body .world-ui { opacity: 0; transition: opacity .6s ease; }
body[data-mode="crossing"] .crossing-ui { opacity: 1; }
body[data-mode="world"] .world-ui { opacity: 1; }
body[data-mode="crossing"] .world-ui *, body[data-mode="world"] .crossing-ui * { pointer-events: none !important; }
body.transitioning .ui { opacity: 0 !important; transition: opacity .25s; }
body.hovering, body.hovering #gl { cursor: pointer; }

@media (max-width: 720px) {
  .top { padding: 16px; }
  .brand span { display: none; }
  .tee-label { right: 16px; left: 16px; top: auto; bottom: 110px; transform: none; text-align: center; }
  .foot { display: none; }
  .world-tag { left: 16px; top: 68px; }
  .end-card { left: 16px; right: 16px; bottom: 56px; }
  .egg-hint { right: auto; left: 50%; transform: translateX(-50%); bottom: 48px; white-space: nowrap; font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .caret, #loader .bars img, .rotate .phone { animation: none; }
  #loader .stage, .end-card, .btn { transform: none !important; }
}

/* phone chrome: burger menu + rotate-to-portrait screen */
.burger { display: none; pointer-events: auto; width: 40px; height: 40px; background: none; border: 1px solid rgba(242, 239, 232, .5); position: relative; }
.burger i { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--bone); transition: transform .3s; }
.burger i:first-child { top: 15px; } .burger i:last-child { top: 23px; }
body.menu-open .burger i:first-child { transform: translateY(4px) rotate(45deg); } body.menu-open .burger i:last-child { transform: translateY(-4px) rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 4; background: rgba(5, 6, 8, .94); backdrop-filter: blur(6px); display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: 0 22px;
  opacity: 0; pointer-events: none; transition: opacity .35s; }
body.menu-open .menu, .menu:focus-within { opacity: 1; pointer-events: auto; }   /* keyboard: tabbing into the links reveals the menu on desktop too */
.menu a { font-family: var(--display); font-size: 28px; line-height: 1; display: grid; grid-template-columns: 38px 1fr; align-items: baseline; }
.menu a span { font-family: var(--mono); font-size: 11px; color: var(--accent); }
.menu a em { grid-column: 2; font-style: normal; font-family: var(--mono); font-size: 10px; letter-spacing: .2em; color: var(--dim); margin-top: 6px; }
.menu a.shop { font-family: var(--mono); font-size: 12px; letter-spacing: .2em; border: 1px solid rgba(242, 239, 232, .5); padding: 14px; display: block; text-align: center; margin-top: 12px; }
.rotate { display: none; position: fixed; inset: 0; z-index: 20; background: var(--ink); place-items: center; align-content: center; gap: 18px; font-family: var(--mono); font-size: 11px; letter-spacing: .3em; }
.rotate .phone { width: 34px; height: 60px; border: 2px solid var(--bone); border-radius: 7px; animation: rot 2s cubic-bezier(.83, 0, .17, 1) infinite; }
@keyframes rot { 0%, 30% { transform: rotate(-90deg) } 60%, 100% { transform: rotate(0) } }
@media (max-width: 720px) { .top .pill { display: none; } .burger { display: block; } }
@media (orientation: landscape) and (max-height: 500px) and (pointer: coarse) { .rotate { display: grid; } }
.world-loading { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 6; font-family: var(--mono); font-size: 11px; letter-spacing: .4em; padding: 12px 18px; background: rgba(5, 6, 8, .7); opacity: 0; pointer-events: none; transition: opacity .25s; }
body.world-loading-on .world-loading { opacity: 1; }

/* accessibility: visible keyboard focus, screen-reader-only title, no double-tap zoom delay */
a, button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.name-input:focus-visible { outline: none; }                 /* typing shows in the 3D name rows (caret) instead */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.foot { padding-bottom: env(safe-area-inset-bottom); }
.nogl { position: fixed; inset: 0; z-index: 30; display: grid; place-content: center; justify-items: center; gap: 22px; padding: 24px; text-align: center; background: var(--ink); font-size: 16px; max-width: none; }
.nogl[hidden] { display: none; }
body[data-mode="nogl"] #loader, body[data-mode="nogl"] .ui { display: none; }
