:root { --blue: #4DA1FF; --rail: 547px; --ease: cubic-bezier(.215,.61,.355,1); --sheet: max(640px, calc(7.3611vw + (100vw - 14.7222vw) * 2 / 3 - 6.667px)); }
* { box-sizing: border-box; margin: 0; }
html, body { height: 100%; overflow: hidden; background: #00000f; color: #fff; font: 400 16px/24px "Switzer", "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
#scene { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
body.hot #scene { cursor: pointer; }


/* rail: Populous's explore list, measured at 1912px (card 499 wide, 16px/24px text) */
.rail { position: fixed; top: 0; right: 0; bottom: 0; width: var(--rail); padding: 33px 48px 0 0; display: flex; flex-direction: column; gap: 32px; z-index: 4; transition: transform .9s var(--ease), opacity .9s var(--ease); }
.tabs { display: flex; align-items: center; gap: 31px; }
.tabs button, .tabs .all { font-size: 16px; line-height: 21px; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.tabs button:hover, .tabs .all:hover, .tabs [aria-selected=true] { text-decoration-line: underline; }
.list { list-style: none; padding: 10px 10px 80px; margin: -10px -10px 0; overflow-y: auto; scrollbar-width: none; flex: 1; display: flex; flex-direction: column; gap: 20px; }
.list[hidden] { display: none; }
.list::-webkit-scrollbar { display: none; }
.card a { position: relative; display: flex; flex-direction: column; gap: 12px; transition: color .2s var(--ease); }
.card a::before { content: ''; position: absolute; inset: -10px; border-radius: 4px; background: #fff; opacity: 0; transform: scale(.98); transition: transform .2s var(--ease), opacity .2s var(--ease); }
.card .img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; clip-path: inset(0 round 4px); background: #1a1a1a; }
.card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.125s var(--ease); }
.card .go { position: absolute; left: var(--x, 50%); top: var(--y, 50%); transform: translate(-50%, -50%) scale(.8); opacity: 0; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px 9px 12px; border-radius: 4px; background: var(--blue); color: #000; font-size: 14px; line-height: 18px; font-weight: 600; pointer-events: none; transition: opacity .2s, transform .35s var(--ease); }
.card .txt { position: relative; display: flex; justify-content: space-between; gap: 20px; }
.card small { font-size: 16px; text-align: right; white-space: nowrap; }
.card a:hover, .card a.lit { color: #010101; }
.card a:hover::before, .card a.lit::before { opacity: 1; transform: none; }
.card a:hover .name-u { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.card a:hover img { transform: scale(1.05); }
.card a:hover .go { opacity: 1; transform: translate(-50%, -50%); }
@media (hover: none) { .card .go { display: none; } }

/* project sheet: Populous's explore dialog, measured at 1905px */
.sheet { position: fixed; top: 0; right: 0; bottom: 0; width: var(--sheet); padding: 0 20px 20px; overflow-y: auto; scrollbar-width: none; background: #fff; color: #010101; z-index: 5; display: flex; flex-direction: column; transition: transform .375s var(--ease), opacity .375s var(--ease); }
.sheet[hidden] { display: flex; opacity: 0; transform: translateX(30px); pointer-events: none; }
.bar { position: sticky; top: 0; flex: none; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: center; min-height: 90px; padding: 5px 0; z-index: 2; backdrop-filter: blur(10px); }
.loc { padding-right: 80px; }
.close { position: absolute; right: -10px; top: 27px; width: 36px; height: 36px; padding: 10px; display: flex; }
.preview { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; min-height: calc(100svh - 110px); }
.head { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-bottom: 30px; }
.name { grid-column: 1 / -1; margin-bottom: 40px; font-size: 80px; line-height: 80px; font-weight: 400; letter-spacing: -.05em; overflow: hidden; }
.name span { display: block; transition: transform .75s var(--ease); }
.sheet[hidden] .name span { transform: translateY(100%); }
.view { align-self: end; justify-self: start; display: inline-flex; align-items: center; gap: 12px; height: 35px; padding: 0 12px; border: 1px solid #010101; border-radius: 4px; background: #010101; color: #fff; font-size: 12px; line-height: 19.2px; font-weight: 500; letter-spacing: .04em; }
.lede { align-self: end; transition: opacity .75s var(--ease), transform .75s var(--ease); }
.sheet[hidden] .lede { opacity: 0; transform: translateY(12px); }
.photo { display: block; width: 100%; aspect-ratio: 1177 / 523; object-fit: cover; }

/* loading veil: the globe fades up from black once its images and shaders are ready */
.veil { position: fixed; inset: 0; z-index: 7; background: #00000f; display: grid; place-items: center; transition: opacity 1.8s var(--ease); }
.veil img { opacity: 0; animation: breathe 2.4s var(--ease) .5s infinite; }
@keyframes breathe { 0%, 100% { opacity: .15; } 50% { opacity: .5; } }
.ready .veil { opacity: 0; pointer-events: none; }
/* intro */
.intro .rail { transform: translateX(100%); }
.intro .hdr, .intro .credit { opacity: 0; }
.hdr, .credit { transition: opacity .8s var(--ease); }
.skip { position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%); z-index: 6; padding: 12px 22px; border-radius: 4px; background: rgba(255,255,255,.1); font-size: 15px; backdrop-filter: blur(10px); }
.skip:hover { background: rgba(255,255,255,.18); }
.credit { position: fixed; left: 32px; bottom: 28px; font-size: 12px; line-height: 16px; color: rgba(255,255,255,.4); z-index: 2; }
.mode { display: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* phone, as Populous: the globe fills the screen; logo, a globe/list pill and the menu icon across the top; the tabs
   sit at the bottom over the globe; the list is its own black page; a project opens full screen */
@media (max-width: 760px) {
  :root { --rail: 0px; --sheet: 100vw; }
  .mode { display: flex; position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 6; padding: 3px; gap: 2px; border-radius: 999px; background: rgba(255,255,255,.14); backdrop-filter: blur(10px); transition: opacity .6s var(--ease); }
  .mode button { width: 54px; height: 32px; border-radius: 999px; display: grid; place-items: center; color: #fff; transition: background .25s, color .25s; }
  .mode [aria-pressed=true] { background: #fff; color: #010101; }
  .rail { top: auto; left: 0; right: 0; height: auto; width: auto; padding: 64px 20px 26px; gap: 0; background: linear-gradient(rgba(0,0,15,0), rgba(0,0,15,.8)); pointer-events: none; }
  .rail .tabs { justify-content: center; gap: 28px; pointer-events: auto; }
  .tabs button, .tabs .all { font-size: 18px; line-height: 24px; }
  body:not(.list-mode) .rail .list { display: none; }
  .list-mode .rail { top: 0; padding: 72px 20px 0; background: #00000f; pointer-events: auto; }
  .list-mode .rail .tabs { position: fixed; left: 0; right: 0; bottom: 0; padding: 48px 0 26px; background: linear-gradient(rgba(0,0,15,0), #00000f 55%); z-index: 1; }
  .list-mode .list { padding-bottom: 120px; }
  .list-mode .credit { opacity: 0; }
  .intro .rail, .intro .mode { opacity: 0; }
  .intro .rail { transform: translateY(100%); }
  .credit { left: 20px; bottom: 84px; }
  .skip { bottom: 96px; }
  .open .mode, .open .hmenu { opacity: 0; pointer-events: none; }
  /* project sheet on a phone, as Populous: one-line header, title up top, paragraph + button lower down, photo,
     and a big round close button fixed at the bottom centre */
  .open .hdr { opacity: 0; pointer-events: none; }
  .sheet { padding: 0 20px 112px; }
  .bar { min-height: 64px; font-size: 14px; line-height: 18px; backdrop-filter: none; background: #fff; }
  .loc { padding-right: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .close { position: fixed; left: 50%; right: auto; top: auto; bottom: 22px; transform: translateX(-50%); width: 64px; height: 64px; padding: 22px; border-radius: 50%; background: #010101; color: #fff; box-shadow: 0 0 0 3px #fff, 0 0 0 4.5px #010101; z-index: 3; }
  .close svg { width: 20px; height: 20px; }
  .sheet[hidden] .close { opacity: 0; }
  .preview { justify-content: flex-start; min-height: 0; }
  .head { display: flex; flex-direction: column; align-items: flex-start; gap: 0; min-height: calc(100svh - 64px - 112px - 40vw); padding-bottom: 28px; }
  .name { font-size: 40px; line-height: 42px; letter-spacing: -.045em; margin: 6px 0 auto; padding-bottom: 32px; }
  .lede { order: 2; align-self: stretch; font-size: 16px; line-height: 24px; }
  .view { order: 3; align-self: flex-start; margin-top: 28px; height: 40px; padding: 0 16px; font-size: 13px; }
  .photo { aspect-ratio: 16 / 10; border-radius: 4px; }
}
@media (prefers-reduced-motion: reduce) { * { transition-duration: .01ms !important; } }

/* built into webtag.co.nz (OWN-566): the site's header and menu (chrome.css, site-pages.js) sit over the globe, transparent and white.
   As approved, the menu is an icon at the top right of the rail, on the same line as Auckland / Nationwide / All work
   (the rail's tabs sit at 33px with a 21px line, so the bar is 87px tall to centre on them); only the logo and the icon take clicks */
.ex .hdr { height: 87px; padding-right: 48px; pointer-events: none; }
.ex .hdr > * { pointer-events: auto; }
.ex .hmenu span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.open .hmenu { opacity: 0; pointer-events: none; }
/* phone: logo mark, the globe/list pill (centred on 33px) and the icon on one line; the mark alone so the pill has room */
@media (max-width: 760px) {
  .ex .hdr { height: 66px; padding-right: 18px; }
  .ex .hdr .hl span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .open .hdr > * { pointer-events: none; }
}

/* pin label (Deep, 25 Nov 2026): hovering a pin, or a card in the rail, names the business and what it does by its pin. explore.js moves it
   to the pin with transform. Deep picked A Quiet (25 Nov): no box, white text beside the pin */
.tip { position: fixed; left: 0; top: 0; z-index: 3; display: flex; flex-direction: column; gap: 2px; width: max-content; max-width: 300px; pointer-events: none; opacity: 0; transition: opacity .25s var(--ease);
  translate: 22px -50%; font-size: 15px; line-height: 20px; letter-spacing: -.01em; color: #fff; text-shadow: 0 1px 14px rgba(0,0,15,.95), 0 0 2px rgba(0,0,15,.6); }
.tip.on { opacity: 1; }
.tip b { font-weight: 500; white-space: pre-line; }
.tip span { font-size: 13px; line-height: 18px; color: rgba(255,255,255,.62); letter-spacing: 0; }
@media (hover: none) { .tip { display: none; } }
/* the map never scrolls, so its header always takes the site's scrolled look (Deep, 25 Nov, live in 868fc68): the bigger W mark and the burger only */
.ex .hdr .hl span, .ex .hdr .hmenu span { max-width: 0; opacity: 0; }
.ex .hdr .hl img { width: 34px; height: 34px; }
.ex .hdr .hmenu { gap: 0; }
