/* Johns Creek Screens: the home page is a store you walk into.
   The room is a photograph (made on Albus), seen from the entrance: a food court on the left, a very large
   screen on the back wall, product shelves on the right, a product table in the middle. Every screen in it
   carries a live "face" laid over its glass in perspective (the side-wall screens are seen at an angle). Click one and the camera pushes in until
   that screen fills the window, then its page opens: every page on the site is one of these screens.
   The stage is 1680 x 944, the photo's own size; lobby.js scales it to cover the window.
   Look: bright, quiet, precise. Near-black type on pale grey, one vivid gradient kept for the screens. */

:root {
  --ink: #1d1d1f;
  --mute: #6e6e73;
  --bg: #f5f5f7;
  --card: #fff;
  --line: #d2d2d7;
  --accent: #ff5a2c;
  --glow: linear-gradient(95deg, #2997ff 0%, #a972ff 38%, #ff5f8f 68%, #ff9f0a 100%);
  --f: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f); font-size: 17px; line-height: 1.47; letter-spacing: -.011em; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; letter-spacing: inherit; }
:focus-visible { outline: 3px solid #0071e3; outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }
@view-transition { navigation: auto; }

/* ---------- Floating bar ---------- */
.bar { position: absolute; left: 0; right: 0; top: 0; z-index: 30; display: flex; align-items: center; gap: 18px; padding: 14px clamp(14px, 2.4vw, 30px); pointer-events: none; transition: opacity .4s; }
.bar > * { pointer-events: auto; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 600; font-size: 17px; letter-spacing: -.02em; white-space: nowrap; }
.brand .mark { width: 26px; height: 26px; flex: none; }
.brand .dot { fill: #30d158; }
.pill { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 20px; border-radius: 999px; font-weight: 500; font-size: 15px; text-decoration: none; white-space: nowrap; background: var(--ink); color: #fff; transition: transform .2s var(--ease), background-color .2s; }
.pill:hover { background: #000; transform: scale(1.03); }
.pill.line { background: rgba(255, 255, 255, .8); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .16); }
.pill.line:hover { background: #fff; }
.bar .pill.line { margin-left: auto; }
.bar .pill + .pill { margin-left: -8px; }
@media (max-width: 480px) {
  .bar { gap: 10px; padding-left: 12px; padding-right: 12px; }
  .brand { font-size: 14.5px; gap: 7px; }
  .brand .mark { width: 22px; height: 22px; }
  .bar .pill { min-height: 36px; padding: 0 13px; font-size: 14px; }
  .bar .pill + .pill { margin-left: -4px; }
}
/* Narrower than most iPhones (360 is the common Android width): everything in the bar comes down a size so the
   second button stays on the screen. */
@media (max-width: 389px) {
  .bar { gap: 8px; }
  .brand { font-size: 13.5px; gap: 6px; }
  .bar .pill { padding: 0 11px; font-size: 13.5px; }
}

/* ---------- The room ---------- */
.room { position: relative; background: #e9e9e7; }
.lobby { position: relative; height: var(--H, 100svh); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain; background: #e9e9e7 url(/assets/lobby/lobby-blur.webp) center / cover; }
.lobby::-webkit-scrollbar { display: none; }
.lobby.moving { overflow: hidden; }
.sizer { position: relative; transform-origin: 0 0; will-change: transform; }
.sizer.fly { transition: transform 1.05s cubic-bezier(.6, 0, .2, 1); }
.stage { position: absolute; left: 0; top: 0; width: 1680px; height: 944px; transform-origin: 0 0; overflow: hidden; }
.photo { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; opacity: 0; transition: opacity .9s; }
.photo.on { opacity: 1; }
.grade { display: none; }

/* A screen: a halo when you point at it, then the glass itself */
.spill { position: absolute; left: 0; top: 0; pointer-events: none; border-radius: 26px; background: var(--glow); filter: blur(30px); opacity: 0; transition: opacity .35s; }
.unit.hot .spill { opacity: .55; }
.face { position: absolute; left: 0; top: 0; transform-origin: 0 0; overflow: hidden; background: #000; color: #f5f5f7; cursor: pointer; }
.face::after { /* the glass */
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 5;
  background: linear-gradient(118deg, rgba(255, 255, 255, .1) 0%, rgba(255, 255, 255, .025) 20%, transparent 36%);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .7); }
.face iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
.go { position: absolute; inset: 0; z-index: 6; display: block; }
.go:focus-visible { outline: 6px solid #2997ff; outline-offset: -6px; border-radius: 0; }

/* ---------- What plays on each screen. Sizes are the face's own design pixels. ---------- */
.face .k { font-size: 26px; font-weight: 600; letter-spacing: .02em; color: #a1a1a6; }
.face b, .face .n { font-weight: 700; letter-spacing: -.045em; line-height: 1; display: block; }
.lit { background: var(--glow); -webkit-background-clip: text; background-clip: text; color: transparent !important; }

.f-main { width: 1000px; height: 549px; }
.card { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; gap: 16px; padding: 40px 60px; opacity: 0; transform: scale(1.04); transition: opacity .9s, transform 1.4s var(--ease); background: #000; }
.card.on { opacity: 1; transform: none; }
.card h1 { font-size: 30px; font-weight: 600; letter-spacing: -.02em; color: #a1a1a6; }
.card .big { font-weight: 700; font-size: 104px; line-height: 1.02; letter-spacing: -.05em; text-wrap: balance; }
.card .big span { display: block; }
.card p { font-size: 30px; font-weight: 500; color: #a1a1a6; }
.card .huge { font-weight: 700; font-size: 250px; line-height: .86; letter-spacing: -.07em; color: transparent; }
.ticks { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: flex; gap: 10px; z-index: 2; }
.ticks i { width: 44px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .22); overflow: hidden; }
.ticks i.on::after { content: ""; display: block; height: 100%; background: #fff; animation: fill 5s linear forwards; }
@keyframes fill { from { width: 0; } to { width: 100%; } }
.sample { display: none; }

/* The two vertical screens over the register are 9 by 16 */
.f-custom { width: 500px; height: 889px; display: grid; align-content: center; gap: 34px; padding: 0 46px; }
.f-custom b { font-size: 104px; }
.f-custom b span { display: block; }
.chips { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.chips i { font-style: normal; font-weight: 600; font-size: 40px; text-align: center; padding: 12px 0; border-radius: 99px; background: #1d1d1f; color: #f5f5f7; }
.chips i:last-child { background: #f5f5f7; color: #000; }

.f-brands { width: 1000px; height: 563px; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 50px; padding: 0 70px; }
.f-brands > div { display: grid; gap: 20px; }
.f-brands b { font-size: 96px; }
.dots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.dots i { aspect-ratio: 1.55; border-radius: 12px; background: #1d1d1f; animation: lightup 5.4s infinite; }
.dots i:nth-child(2) { animation-delay: .25s; } .dots i:nth-child(3) { animation-delay: .5s; } .dots i:nth-child(4) { animation-delay: .75s; } .dots i:nth-child(5) { animation-delay: 1s; } .dots i:nth-child(6) { animation-delay: 1.25s; } .dots i:nth-child(7) { animation-delay: 1.5s; } .dots i:nth-child(8) { animation-delay: 1.75s; } .dots i:nth-child(9) { animation-delay: 2s; }
@keyframes lightup { 0%, 6% { background: #1d1d1f; } 14%, 82% { background: #2997ff; } 94%, 100% { background: #1d1d1f; } }

.f-price { width: 1000px; height: 563px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 56px; padding: 0 64px; }
.f-price .n { font-size: 320px; letter-spacing: -.07em; color: transparent; }
.f-price .n sup { font-size: .4em; vertical-align: top; position: relative; top: .22em; }
.f-price ul { display: grid; gap: 16px; font-size: 36px; }
.f-price li { display: flex; justify-content: space-between; gap: 20px; border-bottom: 2px solid #2c2c2e; padding-bottom: 14px; white-space: nowrap; color: #a1a1a6; }
.f-price li span:last-child { font-weight: 600; color: #f5f5f7; }

.f-changes { width: 500px; height: 889px; display: grid; align-content: center; gap: 30px; padding: 0 46px; }
.f-changes b { font-size: 82px; }

.f-kiosk { width: 500px; height: 990px; display: grid; grid-template-rows: auto 1fr auto; gap: 28px; padding: 44px 38px; }
.f-kiosk b { font-size: 70px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; align-content: start; }
.tiles i { aspect-ratio: 1; border-radius: 18px; background: #1d1d1f; }
.tiles i:nth-child(3n+1) { background: #2997ff; } .tiles i:nth-child(5) { background: #ff9f0a; } .tiles i:nth-child(9) { background: #ff5f8f; } .tiles i:nth-child(6) { background: #30d158; } .tiles i:nth-child(11) { background: #a972ff; }
.f-kiosk .tap { font-size: 36px; font-weight: 600; text-align: center; padding: 18px; border-radius: 99px; background: #f5f5f7; color: #000; animation: nudge 2.4s infinite; }
@keyframes nudge { 50% { transform: scale(1.04); } }

/* The welcome screen in front of the product table */
.f-welcome { width: 1000px; height: 557px; display: grid; align-content: center; justify-items: start; gap: 26px; padding: 0 76px; }
.f-welcome b { font-size: 104px; }
.f-welcome .cta { font-size: 38px; font-weight: 600; padding: 14px 40px; border-radius: 99px; background: #0071e3; color: #fff; }

/* ---------- Controls over the room ---------- */
.hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 25; font-size: 13px; font-weight: 500; background: rgba(29, 29, 31, .82); color: #fff; padding: 8px 14px; border-radius: 999px; pointer-events: none; display: none; transition: opacity .5s; white-space: nowrap; }
.hint.gone { opacity: 0; }
.room.zoomed .bar, .room.zoomed .hint { opacity: 0; pointer-events: none; }
.cut { position: fixed; inset: 0; z-index: 90; background: #000; opacity: 0; pointer-events: none; transition: opacity .32s; }
.cut.on { opacity: 1; }

/* Talk to us */
.pop { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 60; width: min(520px, calc(100vw - 28px)); padding: 34px; border: 0; border-radius: 28px; background: #fff; color: var(--ink); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .45), 0 0 0 1px rgba(0, 0, 0, .06); }
.pop::backdrop { background: rgba(245, 245, 247, .6); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.pop .k { font-size: 14px; font-weight: 600; color: var(--mute); }
.pop h2 { font-weight: 700; font-size: clamp(30px, 5vw, 44px); line-height: 1.05; letter-spacing: -.04em; margin: 8px 0 12px; }
.pop p { color: var(--mute); }
.pop .mail { display: block; margin: 16px 0 24px; font-weight: 600; font-size: clamp(19px, 3.4vw, 24px); letter-spacing: -.02em; color: #0066cc; text-decoration: none; overflow-wrap: anywhere; }
.pop .mail:hover { text-decoration: underline; }
.pop .acts { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Under the room ---------- */
.under { display: grid; gap: 22px; padding: 44px clamp(14px, 2.4vw, 30px); background: var(--bg); }
.under h2 { font-weight: 700; font-size: 24px; letter-spacing: -.03em; }
.under h2 span { color: var(--mute); font-weight: 500; }
.list { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.list a, .list button { text-align: left; text-decoration: none; display: grid; gap: 2px; padding: 20px 22px; border-radius: 20px; background: var(--card); transition: transform .25s var(--ease), box-shadow .25s; }
.list a:hover, .list button:hover { transform: scale(1.02); box-shadow: 0 14px 34px -18px rgba(0, 0, 0, .3); }
.list b { font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.list span { font-size: 14.5px; color: var(--mute); }
.foot { padding: 22px clamp(14px, 2.4vw, 30px) 30px; display: grid; gap: 12px; font-size: 12.5px; color: var(--mute); background: var(--bg); border-top: 1px solid var(--line); margin: 0 clamp(14px, 2.4vw, 30px); padding-left: 0; padding-right: 0; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot nav a { text-decoration: none; color: #424245; }
.foot nav a:hover { text-decoration: underline; }
.foot p a { color: #424245; }

@media (max-width: 760px), (max-aspect-ratio: 1/1) { .hint { display: block; } }

/* The store's door frame runs black across the top of the picture, so the name over it is white. */
.bar .brand { color: #fff; text-shadow: 0 1px 10px rgba(0, 0, 0, .5); }
@media (max-width: 760px), (max-aspect-ratio: 1/1) { .bar { background: linear-gradient(to bottom, rgba(0, 0, 0, .5), transparent); } }

/* ---------- Phones: walk through the store ----------
   One wide room doesn't fit a phone, so the phone gets four tall pictures, each filling the screen: the entrance,
   the food court, the product wall, the directory. You swipe sideways from one to the next; nothing scrolls up
   or down. A fifth panel lists every screen and holds the small print. Same screens, same pages. */
.walk { display: none; }
.pips { display: none; }
.card .h1 { font-size: 30px; font-weight: 600; letter-spacing: -.02em; color: #a1a1a6; }
html.zooming { overflow: hidden; }
@media (max-width: 760px), (max-aspect-ratio: 4/5) {
  html, body { height: 100%; overflow: hidden; overscroll-behavior: none; }
  .lobby, .under, .foot, .hint { display: none !important; }
  .room { height: 100dvh; background: #0b0b0c; }
  .walk { display: flex; height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior: contain; }
  .walk::-webkit-scrollbar { display: none; }
  .scene { position: relative; flex: 0 0 100%; height: 100%; overflow: hidden; scroll-snap-align: start; scroll-snap-stop: always; background: #e9e9e7; }
  .scene .sizer { position: absolute; transform-origin: 0 0; }
  .scene .stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; overflow: hidden; }
  .scene .photo { opacity: 1; }
  .scene.front { z-index: 5; }
  .walk.moving { overflow: hidden; }

  .scene.more { background: var(--bg); overflow-y: auto; }
  .more-in { min-height: 100%; display: grid; align-content: center; gap: 12px; padding: 66px 18px 46px; }
  .more-in .k { font-size: 22px; font-weight: 700; letter-spacing: -.03em; }
  .more-in .list { grid-template-columns: 1fr 1fr; gap: 8px; }
  .more-in .list a { padding: 14px 16px; border-radius: 16px; }
  .more-in .list b { font-size: 16px; }
  .more-in .list span { font-size: 13px; line-height: 1.3; }
  .more-in .acts { display: flex; gap: 8px; }
  .more-in .small { font-size: 12px; line-height: 1.4; color: var(--mute); }
  .more-in .small a { color: #424245; }
  .more-in .legal { display: flex; flex-wrap: wrap; gap: 0 18px; font-size: 13px; margin: -6px 0; }
  .more-in .legal a { padding: 9px 0; }

  .pips { display: flex; gap: 7px; position: absolute; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 25; padding: 8px 12px; border-radius: 999px; background: rgba(29, 29, 31, .55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: opacity .4s; }
  .pips i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .45); transition: background-color .3s, width .3s; }
  .pips i.on { background: #fff; width: 20px; border-radius: 7px; }
  .room.zoomed .pips { opacity: 0; }
  .room.dark-top .bar .brand { color: var(--ink); text-shadow: none; }
  .room.dark-top .bar { background: none; }
}

/* Short phones: the last panel drops each screen's second line so the whole list and the small print fit. */
@media (max-width: 760px) and (max-height: 700px) {
  .more-in { padding-top: 58px; gap: 10px; }
  .more-in .list span { display: none; }
  .more-in .list a { padding: 13px 16px; }
}
/* The narrowest phones: the name gives its room to the two buttons. */
@media (max-width: 350px) {
  .brand span { display: none; }
  .brand .mark { width: 26px; height: 26px; }
  .more-in { gap: 8px; }
  .more-in .k { font-size: 19px; }
  .more-in .list a { padding: 10px 14px; }
}

/* The main screen: logo, and the Get started sequence */
.card .logo { position: absolute; left: 0; right: 0; top: 40px; display: flex; align-items: center; justify-content: center; gap: 14px; font-size: 32px; font-weight: 600; letter-spacing: -.02em; color: #f5f5f7; }
.card .logo svg { width: 46px; height: 46px; }
.card.starting-card { z-index: 3; }
.f-main.starting .card.on { opacity: 0; }
.f-main.starting .card.starting-card { opacity: 1; transform: none; }
.dots i { font-style: normal; opacity: .2; animation: dot 1.2s infinite; }
.dots > i:nth-child(2) { animation-delay: .2s; }
.dots > i:nth-child(3) { animation-delay: .4s; }
@keyframes dot { 0%, 100% { opacity: .2; } 40% { opacity: 1; } }

/* The back screen's "next up" card: the second line stays on one line with its dots */
.card .big .nx-b { display: inline; }
.card .big .lit { white-space: nowrap; }
.card.starting-card .big { font-size: 96px; }

/* The next page, playing small on the back screen before the camera goes in. It is laid out 1.5 times the
   screen's size and scaled back down, so a full page fits. */
iframe.prev { position: fixed; left: 0; top: 0; transform-origin: 0 0; border: 0; background: #000; opacity: 0; transition: opacity .5s; z-index: 80; pointer-events: none; }
iframe.prev.on { opacity: 1; }
iframe.prev.fly { transition: transform 1.05s cubic-bezier(.6, 0, .2, 1); }
.f-main.previewing .card { opacity: 0 !important; }
