/* ULIEL Studio: "the street". Dusk over the neighbourhood, shop windows lit with real sites, one lamp-amber accent. */
@font-face { font-family: 'Frank'; src: url(../fonts/frank-he-800.woff2) format('woff2'); font-weight: 800; font-display: swap; unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: 'Frank'; src: url(../fonts/frank-la-800.woff2) format('woff2'); font-weight: 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'Frank'; src: url(../fonts/frank-he-500.woff2) format('woff2'); font-weight: 500; font-display: swap; unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: 'Frank'; src: url(../fonts/frank-la-500.woff2) format('woff2'); font-weight: 500; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'Noto'; src: url(../fonts/noto-he-400.woff2) format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: 'Noto'; src: url(../fonts/noto-la-400.woff2) format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'Noto'; src: url(../fonts/noto-he-600.woff2) format('woff2'); font-weight: 600; font-display: swap; unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: 'Noto'; src: url(../fonts/noto-la-600.woff2) format('woff2'); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'Karantina'; src: url(../fonts/karantina-he-700.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Fredoka'; src: url(../fonts/fredoka-he-600.woff2) format('woff2'); font-weight: 600; font-display: swap; }

:root {
  --night: #0d1326;
  --night-2: #131b35;
  --dusk: #2a3768;
  --horizon: #4a4f7a;
  --lamp: #ffb547;
  --lamp-d: #f29a12;
  --glow: #ffe2b0;
  --paper: #f3f1ec;
  --mist: #aab2cc;
  --ink: #141826;
  --ink2: #4a5068;
  --line: rgba(243, 241, 236, .16);
  --plate: #1d4fa3;
  --display: 'Frank', 'Frank Ruhl Libre', 'David', serif;
  --body: 'Noto', 'Noto Sans Hebrew', Arial, sans-serif;
  --wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--night); color: var(--paper); font: 400 18px/1.65 var(--body); overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; margin: 0; line-height: 1.04; text-wrap: balance; }
p, ul, ol, dl, dd, figure { margin: 0; }
a { color: var(--lamp); }
:focus-visible { outline: 3px solid var(--lamp); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(var(--wrap), 100% - 56px); margin-inline: auto; }

.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 60; background: var(--lamp); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; }
main:focus { outline: none; }

/* buttons, links, the blue house-number plate used as the page's numbering */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 28px; border-radius: 999px; background: var(--paper); color: var(--ink); font: 600 18px var(--body); text-decoration: none; border: 0; cursor: pointer; transition: background .2s, transform .2s; }
.btn:hover { background: #fff; transform: translateY(-1px); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 16px; }
.btn-lamp { background: var(--lamp); color: #1c1405; }
.btn-lamp:hover { background: #ffc66e; }
.link { font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.link:hover { text-decoration-thickness: 3px; }
.link-light { color: var(--paper); }
.plate { display: inline-grid; place-items: center; min-width: 1.9em; height: 1.55em; padding: 0 .35em; border-radius: 6px; background: var(--plate); color: #fff; border: 2px solid #e8eefc; box-shadow: 0 0 0 1px #0d2c63, 0 2px 0 rgba(0,0,0,.35); font: 600 .95em/1 var(--body); }

/* header: floats over the dusk */
.top { position: absolute; inset: 0 0 auto; z-index: 30; }
.top-in { display: flex; align-items: center; gap: 28px; min-height: 84px; }
.mark { color: var(--paper); text-decoration: none; font: 500 23px var(--display); letter-spacing: .02em; white-space: nowrap; }
.mark b { font-weight: 800; letter-spacing: .12em; margin-inline-end: 4px; }
.nav { display: flex; gap: 28px; margin-inline-start: auto; }
.nav a { color: var(--paper); text-decoration: none; font-weight: 600; font-size: 17px; padding: 8px 0; opacity: .86; }
.nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 7px; text-decoration-color: var(--lamp); }
.top-act { display: flex; align-items: center; gap: 12px; }

/* ---------------------------------------------------------------- hero: dusk, the skyline lights up */
.hero { --sky: 46vh; position: relative; min-height: max(640px, 100svh); display: flex; align-items: flex-start; overflow: hidden;
  background: radial-gradient(120% 70% at 30% 108%, #6b5a7a 0%, rgba(107,90,122,0) 55%), linear-gradient(180deg, #0b1124 0%, #1a2550 48%, var(--horizon) 100%); }
.hero-t { position: relative; z-index: 2; padding-top: clamp(130px, 17vh, 190px); padding-bottom: calc(var(--sky) * .9); }
.hero-kicker { color: var(--mist); font-size: 17px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(46px, 7.4vw, 112px); max-width: 13ch; letter-spacing: -.012em; }
.hero h1 .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .ln > span { display: inline-block; }
.lede { margin-top: 26px; max-width: 50ch; text-wrap: pretty; font-size: clamp(18px, 1.5vw, 21px); color: #d6dbea; }
.hero-act { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; margin-top: 34px; }
.hero-sky { position: absolute; inset: auto 0 0; height: var(--sky); min-height: 260px; z-index: 1; pointer-events: none; }
.hero-sky .far { position: absolute; inset: auto 0 9vh; width: 100%; height: 80%; object-fit: cover; object-position: bottom; opacity: .9; }
.hero-sky .near { position: absolute; inset: auto 0 0; height: 100%; }
.hero-sky .near svg { width: 100%; height: 100%; }
.hero-sky::after { content: ''; position: absolute; inset: auto 0 0; height: 8vh; background: linear-gradient(180deg, rgba(13,19,38,0), var(--night)); }

@media (min-width: 1100px) and (min-height: 700px) {
  .hero { --sky: 40vh; }
  .hero-t { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 420px); column-gap: clamp(40px, 5vw, 80px); align-items: end; padding-top: clamp(120px, 16vh, 170px); }
  .hero-kicker { grid-column: 1 / -1; }
  .hero h1 { grid-column: 1; }
  .hero-side { grid-column: 2; padding-bottom: .5em; }
  .lede { margin-top: 0; font-size: 19px; }
  .hero-act { margin-top: 28px; gap: 14px 26px; }
  .hero h1 { font-size: min(7.4vw, 12.5vh, 112px); }
  /* larger text from the accessibility menu enlarges the page with zoom; the headline is big enough already */
  html.a11y-t1 .hero h1 { font-size: min(6.4vw, 10.9vh, 97px); }
  html.a11y-t2 .hero h1 { font-size: min(5.7vw, 9.6vh, 86px); }
}
/* short laptop screens: a lower skyline, so the buttons never sit on the buildings */
@media (min-width: 1100px) and (min-height: 700px) and (max-height: 820px) {
  .hero { --sky: 33vh; }
  .hero-t { padding-top: 112px; }
  .hero h1 { font-size: min(7.4vw, 11.6vh); }
}

/* one orchestrated entrance: the headline rises, then the windows come on across the city */
@media (prefers-reduced-motion: no-preference) {
  html:not(.a11y-motion) .hero h1 .ln > span { animation: rise 1s cubic-bezier(.2,.7,.1,1) both; }
  html:not(.a11y-motion) .hero h1 .ln:nth-child(2) > span { animation-delay: .1s; }
  html:not(.a11y-motion) .hero h1 .ln:nth-child(3) > span { animation-delay: .2s; }
  html:not(.a11y-motion) .hero .lede, html:not(.a11y-motion) .hero-act { animation: fade .9s .45s both; }
  html:not(.a11y-motion) .hero-sky .lit { animation: on .5s steps(2) both; }
  html:not(.a11y-motion) .hero-sky .lit-0 { animation-delay: .7s; }
  html:not(.a11y-motion) .hero-sky .lit-1 { animation-delay: 1.15s; }
  html:not(.a11y-motion) .hero-sky .lit-2 { animation-delay: 1.6s; }
}
@keyframes rise { from { transform: translateY(105%); } }
@keyframes fade { from { opacity: 0; transform: translateY(12px); } }
@keyframes on { from { opacity: 0; } }

/* ---------------------------------------------------------------- the street */
.street { position: relative; background: var(--night); }
.street-pin { position: sticky; top: 0; overflow: hidden; overflow: clip; height: 100vh; height: 100svh; min-height: 620px;
  background: linear-gradient(180deg, var(--night) 0%, #162047 62%, #232c58 100%); }
.street-pin::before { content: ''; position: absolute; inset: 0 0 auto; height: 22vh; z-index: 3; pointer-events: none; background: linear-gradient(180deg, var(--night) 0%, rgba(13,19,38,.85) 45%, rgba(13,19,38,0) 100%); }
.street-far { position: absolute; left: -40px; right: -40px; bottom: 17vh; height: 42vh; opacity: .8; filter: brightness(1.75) saturate(1.1); background: url(../skyline-far.svg) repeat-x 0 100% / auto 100%; }
.street-head { position: absolute; inset: 0 0 auto; z-index: 4; padding-top: clamp(26px, 5vh, 54px); display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.street-head h2 { font-size: clamp(30px, 3.2vw, 46px); }
.street-now { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 18px; color: var(--paper); }
.street-now .plate { font-size: 17px; }

.ground { position: absolute; inset: auto 0 0; height: 17vh; z-index: 1;
  background: linear-gradient(180deg, #2f3550 0, #2f3550 7px, #3a405e 7px, #3a405e 9px, #23283f 9px, #1d2136 100%); }
.ground::after { content: ''; position: absolute; inset: 9px 0 0; opacity: .35;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 1px, transparent 1px 90px); }

.track { list-style: none; margin: 0; padding: 0 8vw; position: absolute; inset: 0 0 0 auto; z-index: 2; width: max-content; display: flex; align-items: flex-end; gap: 0; will-change: transform; }
.lot { position: relative; flex: none; height: 100%; display: flex; align-items: flex-end; width: calc(var(--fw) + 420px); padding-bottom: 17vh; --fw: clamp(500px, 46vw, 760px); --front: min(34vh, 320px); }
.lot:last-child { width: calc(var(--fw) + 20vw); }

/* the building: upper floors, sign, awning, then the shop front with its display window */
.bldg { position: relative; width: var(--fw); height: var(--fh, 66vh); display: grid; grid-template-rows: minmax(0, 1fr) auto auto var(--front); border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--wall-top), var(--wall-bot)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.04), 0 -1px 0 rgba(255,255,255,.08); }
.bldg::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0,0,0,.06) 0 1px, transparent 1px 28px); border-radius: inherit; }
.floors { grid-row: 1; min-height: 0; overflow: hidden; display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); grid-auto-rows: minmax(0, 1fr); gap: clamp(10px, 2.4vh, 24px) 9%; padding: clamp(16px, 3.4vh, 36px) 9% clamp(14px, 2.6vh, 28px); }
.floors i { display: block; width: 100%; max-width: 96px; height: 100%; max-height: 150px; justify-self: center; align-self: end; border-radius: 2px; background: #0b1020; box-shadow: inset 0 0 0 3px rgba(255,255,255,.07); }
.floors i.on { background: linear-gradient(180deg, #ffd99a, #f0a94a); box-shadow: inset 0 0 0 3px rgba(80,50,10,.35), 0 0 22px rgba(255,190,90,.35); }
.sign { grid-row: 2; display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 9.5vh; padding: 10px 6%; background: var(--sign-bg); color: var(--sign-fg); box-shadow: 0 6px 0 rgba(0,0,0,.18); position: relative; z-index: 1; }
.awning { grid-row: 3; height: 5.5vh; position: relative; background: repeating-linear-gradient(90deg, var(--aw1) 0 46px, var(--aw2) 46px 92px); box-shadow: inset 0 10px 14px -8px rgba(0,0,0,.35); }
.awning::after { content: ''; position: absolute; inset: 100% 0 auto; height: 16px; background: radial-gradient(circle at 23px 0, var(--aw1) 22px, transparent 23px) 0 0 / 92px 16px repeat-x, radial-gradient(circle at 69px 0, var(--aw2) 22px, transparent 23px) 0 0 / 92px 16px repeat-x; }
.front { grid-row: 4; display: grid; grid-template-columns: 1fr 17%; gap: 4%; padding: 5% 5% 0; align-items: end; position: relative; }
.window { position: relative; height: 92%; align-self: end; border: 10px solid var(--frame, #20232e); border-bottom-width: 16px; background: #000; overflow: hidden; border-radius: 3px 3px 0 0;
  box-shadow: 0 0 0 1px rgba(0,0,0,.4), 0 0 60px rgba(255,200,120,.12); transition: filter .6s ease, box-shadow .6s ease; filter: brightness(.55) saturate(.7); }
.window picture, .window img { width: 100%; height: 100%; }
.window img { object-fit: cover; object-position: top; }
.window::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,0) 28%, rgba(255,255,255,0) 64%, rgba(255,255,255,.07) 75%, rgba(255,255,255,0) 86%); }
.door { height: 86%; align-self: end; background: linear-gradient(180deg, #11141e, #1b1f2c); border: 6px solid var(--frame, #20232e); border-bottom: 0; border-radius: 3px 3px 0 0; display: grid; place-items: start center; padding-top: 48%; }
.door span { font: 600 13px/1 var(--body); color: #0e2a14; background: #b5f2c4; padding: 4px 8px; border-radius: 4px; box-shadow: 0 0 14px rgba(130,255,170,.45); }
.no { position: absolute; bottom: calc(var(--front) * .86 - 44px); inset-inline-end: calc(5% + 2.4%); font-size: 14px; z-index: 2; }
/* light spilling from the window onto the pavement */
.bldg::after { content: ''; position: absolute; inset: 100% 2% auto; height: 15vh; pointer-events: none; opacity: .25; transition: opacity .6s;
  background: radial-gradient(60% 100% at 45% 0, rgba(255,205,130,.55), rgba(255,205,130,0) 70%); }
.lot.lit .window { filter: none; box-shadow: 0 0 0 1px rgba(0,0,0,.4), 0 0 90px rgba(255,200,120,.32); }
.lot.lit .bldg::after { opacity: 1; }

/* the lamp between two shops */
.lamp { position: absolute; bottom: 17vh; inset-inline-start: calc(var(--fw) + 230px); width: 8px; height: 58vh; max-height: 560px; background: linear-gradient(90deg, #2a2f44, #4a5170 50%, #2a2f44); border-radius: 4px 4px 0 0; z-index: 3; }
.lamp::before { content: ''; position: absolute; top: -6px; inset-inline-start: -26px; width: 60px; height: 22px; border-radius: 30px 30px 6px 6px; background: #3a4060; box-shadow: 0 8px 0 -4px #fff3c9; }
.lamp::after { content: ''; position: absolute; top: 12px; inset-inline-start: -170px; width: 348px; height: 70vh; pointer-events: none; background: radial-gradient(50% 60% at 50% 0, rgba(255,214,140,.22), rgba(255,214,140,0) 70%); }

/* the information card on the pavement */
.card { position: absolute; z-index: 5; bottom: 5vh; inset-inline-start: calc(var(--fw) + 40px); width: 330px; padding: 22px 24px 20px; border-radius: 16px; background: var(--paper); color: var(--ink);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.6); opacity: 0; transform: translateY(18px); translate: var(--nudge, 0px) 0; transition: opacity .5s ease, transform .5s ease; }
.lot.lit .card, .lot:focus-within .card { opacity: 1; transform: none; }
.card .kind { color: var(--ink2); font-size: 15px; }
.card h3 { font-size: 34px; margin-top: 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.card h3[dir="ltr"] { justify-content: flex-end; }
.card > p:not(.kind) { margin-top: 10px; font-size: 16px; line-height: 1.55; }
.card ul { list-style: none; padding: 0; margin-top: 12px; display: grid; gap: 4px; }
.card li { position: relative; padding-inline-start: 18px; color: var(--ink2); font-size: 15px; line-height: 1.5; }
.card li::before { content: ''; position: absolute; inset-inline-start: 0; top: .7em; width: 9px; height: 2px; background: var(--lamp-d); }
.card .link { display: inline-block; margin-top: 14px; color: #1d3fa0; }
.card .link:focus-visible { outline-color: #1d3fa0; }
.tag { font: 600 13px var(--body); color: var(--ink); border: 1.5px solid var(--ink); border-radius: 999px; padding: 2px 10px; }

/* each shop in its own colours */
.shop-haosher { --fh: 64vh; --wall-top: #6b6450; --wall-bot: #8d8468; --sign-bg: #1b7a4a; --sign-fg: #fff; --aw1: #1b7a4a; --aw2: #e9f3ec; --frame: #24342b; --cols: 4; }
.shop-haosher .sign-text { font: 600 clamp(24px, 2.4vw, 36px) 'Fredoka', var(--body); color: #ffd85a; text-shadow: 0 0 18px rgba(255,216,90,.45); }
.shop-haosher .sign-mark svg { width: clamp(40px, 3.6vw, 56px); height: auto; }
.shop-bman { --fh: 74vh; --wall-top: #101a33; --wall-bot: #1b2a4d; --sign-bg: #0b1428; --sign-fg: #d49c7c; --aw1: #0b1428; --aw2: #0b1428; --frame: #b47c64; --cols: 3; }
.shop-bman .awning { height: 3vh; background: linear-gradient(180deg, #0b1428, #16223f); border-bottom: 3px solid #b47c64; }
.shop-bman .awning::after { display: none; }
.shop-bman .sign-logo svg { width: clamp(150px, 15vw, 230px); height: auto; filter: drop-shadow(0 0 14px rgba(220,160,120,.35)); }
.shop-pnina { --fh: 60vh; --wall-top: #8a5a68; --wall-bot: #b47887; --sign-bg: #8f0f2a; --sign-fg: #ffe9ee; --aw1: #f3c6cf; --aw2: #fff6f8; --frame: #5c1424; --cols: 3; }
.shop-pnina .sign-text { font: 700 clamp(40px, 4.2vw, 62px)/1 'Karantina', var(--display); color: #fff1e6; text-shadow: 0 0 16px rgba(255,180,200,.5); letter-spacing: .02em; }
.shop-failrail { --fh: 86vh; --wall-top: #0e1117; --wall-bot: #1a1f29; --sign-bg: #0b0c0b; --sign-fg: #e4e8ec; --frame: #2c323d; --cols: 6; --front: min(37vh, 350px); }
.shop-failrail .bldg { background: linear-gradient(180deg, #0e1117, #1a1f29); }
.shop-failrail .bldg::before { background: repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 64px), repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 1px, transparent 1px 44px); }
.shop-failrail .floors { gap: 6% 6%; }
.shop-failrail .floors i { aspect-ratio: 4 / 3; background: #0b0f17; }
.shop-failrail .floors i.on { background: linear-gradient(180deg, #c9d3df, #8a96a6); box-shadow: 0 0 18px rgba(200,215,235,.25); }
.shop-failrail .sign-logo svg { width: clamp(150px, 14vw, 210px); height: auto; }
.shop-failrail .front { grid-template-columns: 1fr 14%; }
.shop-next { --fh: 58vh; --wall-top: #3a3d4c; --wall-bot: #4a4e60; --sign-bg: #262938; --sign-fg: #c9cde0; --aw1: #4a4e60; --aw2: #5a5f74; --frame: #2a2d3a; --cols: 3; }
.shop-next .sign-text { font: 500 clamp(22px, 2vw, 30px) var(--display); color: #c9cde0; letter-spacing: .04em; }
.shop-next .floors i { background: #10131e; }
.window-next { display: grid; place-items: center; align-content: center; gap: 22px; text-align: center; background: radial-gradient(70% 70% at 50% 40%, #2a2240, #0d0f19); filter: none; padding: 20px; }
.window-next .btn { white-space: nowrap; }
.neon { font: 800 clamp(32px, 3.4vw, 54px)/1.08 var(--display); color: #ffd28a; text-shadow: 0 0 6px rgba(255,190,90,.9), 0 0 26px rgba(255,160,60,.55); }
.neon-sm { font-size: clamp(24px, 2.2vw, 32px); margin-bottom: 16px; }

/* ---------------------------------------------------------------- the system behind the window */
.system { position: relative; background: linear-gradient(180deg, #232c58 0%, #18213f 18%, var(--night) 60%); }
.system-pin { position: relative; min-height: 100vh; padding: clamp(64px, 10vh, 110px) 0 clamp(56px, 8vh, 90px); }
.system-head h2 { font-size: clamp(38px, 4.6vw, 70px); max-width: 15ch; }
.system-head p { margin-top: 18px; max-width: 58ch; text-wrap: pretty; color: #d6dbea; font-size: clamp(18px, 1.4vw, 20px); }
.journey { position: relative; margin-top: clamp(36px, 6vh, 64px); }
.legs { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 70px); position: relative; z-index: 2; }
.leg h3 { font-size: clamp(24px, 2vw, 30px); margin-top: 26px; display: flex; align-items: center; gap: 12px; }
.leg h3 .plate { font-size: 17px; flex: none; }
.leg p { margin-top: 10px; color: var(--mist); max-width: 34ch; font-size: 17px; }
.phone { position: relative; container-type: inline-size; width: min(100%, 290px); aspect-ratio: 720 / 1460; border-radius: 36px; padding: 9px; margin-inline: auto; background: linear-gradient(145deg, #3a3f52, #15182a 55%, #2a2e40); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 40px 70px -30px rgba(0,0,0,.8); transition: transform .6s cubic-bezier(.2,.7,.2,1), box-shadow .6s, filter .6s; filter: brightness(.6) saturate(.6); }
.phone > img, .phone .chat { width: 100%; height: 100%; border-radius: 10cqw; object-fit: cover; object-position: top; background: #fff; }
.phone::before { content: ''; position: absolute; top: 6.9cqw; left: 50%; width: 25.5cqw; height: 6.9cqw; margin-left: -12.75cqw; border-radius: 4cqw; background: #0b0d16; z-index: 2; }
.leg.on .phone { filter: none; transform: translateY(-10px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), 0 50px 90px -30px rgba(0,0,0,.85), 0 0 0 3px rgba(255,181,71,.0); }
.route { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; overflow: visible; pointer-events: none; }
.route path { fill: none; stroke: rgba(255,181,71,.55); stroke-width: 2.5; stroke-dasharray: 2 10; stroke-linecap: round; }
.token { position: absolute; z-index: 3; top: 0; left: 0; padding: 7px 14px; border-radius: 999px; background: var(--lamp); color: #1c1405; font: 600 16px/1 var(--body); box-shadow: 0 0 0 6px rgba(255,181,71,.18), 0 0 40px rgba(255,181,71,.55); transform: translate(-50%, -50%); will-change: transform; opacity: 0; transition: opacity .3s; }
.journey.go .token { opacity: 1; }
.journey.go .token.land { opacity: 0; }

/* with motion on wider screens the three phones stay on screen together while the order travels between them */
@media (min-width: 861px) {
  html.walk .system { height: 300vh; }
  html.walk .system-pin { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 600px; display: flex; flex-direction: column; justify-content: center; padding: 28px 0 24px; overflow: hidden; overflow: clip; }
  html.walk .system-head { display: grid; grid-template-columns: auto minmax(0, 46ch); align-items: end; justify-content: space-between; gap: 16px 48px; }
  html.walk .system-head h2 { font-size: clamp(36px, 3.8vw, 58px); max-width: none; }
  html.walk .system-head p { margin-top: 0; font-size: 18px; }
  html.walk .journey { margin-top: clamp(64px, 10vh, 100px); }
  html.walk .phone { width: auto; height: clamp(280px, calc(100svh - 380px), 560px); }
  html.walk .leg h3 { margin-top: 20px; }
  html.walk .leg p { font-size: 16px; }
}

/* the message the shop receives: a generic chat screen */
.chat { display: flex; flex-direction: column; overflow: hidden; background: #e9e4dc; color: #1b1d22; text-align: start; }
.chat-top { display: flex; align-items: center; gap: 3.5cqw; padding: 11.7cqw 4.8cqw 3.4cqw; background: #26354d; color: #fff; }
.chat-top b { display: block; font-size: 4.8cqw; line-height: 1.2; }
.chat-top small { font-size: 3.8cqw; opacity: .75; }
.chat-av { width: 11cqw; height: 11cqw; border-radius: 50%; background: #f3c6cf; color: #5c1424; display: grid; place-items: center; font-weight: 600; font-size: 5.2cqw; }
.chat-body { flex: 1; padding: 4.1cqw 3.4cqw; background: repeating-linear-gradient(45deg, rgba(0,0,0,.025) 0 2px, transparent 2px 12px), #e9e4dc; }
.chat-day { width: max-content; margin: 0 auto 3.4cqw; padding: .7cqw 3.4cqw; border-radius: 2.8cqw; background: #fff; font-size: 3.45cqw; color: #555; }
.bubble { display: flex; flex-direction: column; gap: 1px; margin-inline-end: 5%; padding: 3.1cqw 3.8cqw 2cqw; border-radius: 1.4cqw 4.1cqw 4.1cqw 4.1cqw; background: #fff; font-size: 3.95cqw; line-height: 1.45; box-shadow: 0 1px 1px rgba(0,0,0,.12); transform-origin: top right; }
.bubble b { font-size: 4.15cqw; }
.bubble .gap { margin-top: 2cqw; }
.chat-time { align-self: flex-end; font-size: 3.3cqw; color: #7a7f88; margin-top: .7cqw; }
.leg[data-leg="1"]:not(.on) .bubble { opacity: 0; transform: scale(.94) translateY(6px); }
.bubble { transition: opacity .45s ease .15s, transform .45s cubic-bezier(.2,.7,.2,1) .15s; }

/* ---------------------------------------------------------------- what every site has */
.kit { padding: clamp(72px, 11vh, 130px) 0; background: var(--night); }
.kit h2 { font-size: clamp(38px, 4.4vw, 66px); max-width: 16ch; }
.kit-grid { display: grid; grid-template-columns: 1.1fr 1fr; grid-template-rows: auto auto; gap: 28px 34px; margin-top: 44px; }
.exhibit { border-radius: 22px; padding: clamp(24px, 3vw, 38px); background: var(--night-2); box-shadow: inset 0 0 0 1px var(--line); }
.exhibit h3 { font-size: clamp(26px, 2.2vw, 34px); }
.exhibit > p { margin-top: 12px; color: var(--mist); max-width: 52ch; }
.demo { margin-top: 22px; display: grid; gap: 16px; }
.demo-card { display: grid; gap: 4px; padding: 20px 22px; border-radius: 14px; background: #fffaf0; color: #3a3424; box-shadow: inset 0 0 0 1px #eadfc6; font-size: 17px; transition: font-size .25s; }
.demo-card b { color: #2b2516; font-size: 1.15em; }
.demo-tag { justify-self: start; padding: 2px 10px; border-radius: 6px; background: #ffd23f; color: #3b2f00; font-weight: 600; font-size: .8em; }
.demo-price { color: #8a6d1d; font-weight: 600; }
.demo-link { color: #6f5310; justify-self: start; text-decoration: none; font-size: .9em; }
.demo-card.big { font-size: 22px; }
.demo-card.contrast { background: #fff; color: #000; box-shadow: inset 0 0 0 3px #000; }
.demo-card.contrast b, .demo-card.contrast .demo-price { color: #000; }
.demo-card.contrast .demo-tag { background: #000; color: #fff; }
.demo-card.contrast .demo-link { color: #0018a8; }
.demo-card.links .demo-link { background: #fff3a8; color: #000; text-decoration: underline 2px; text-underline-offset: 4px; }
.demo-tools { display: flex; flex-wrap: wrap; gap: 10px; }
.demo-tools button { min-height: 46px; padding: 0 16px; border-radius: 12px; border: 2px solid var(--line); background: transparent; color: var(--paper); font: 600 16px var(--body); cursor: pointer; }
.demo-tools button[aria-pressed="true"] { border-color: var(--lamp); background: rgba(255,181,71,.14); color: #ffd28a; }
.demo-tools button[aria-pressed="true"]::before { content: '✓ '; }
.ex-sec { grid-row: span 1; }
.log { list-style: none; padding: 0; margin-top: 20px; display: grid; gap: 0; font-size: 16px; }
.log li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.log li:last-child { border-bottom: 1px solid var(--line); }
.log b { flex: none; padding: 3px 10px; border-radius: 6px; background: rgba(120,220,150,.14); color: #a9f0bf; font-size: 14px; }
.kit-list { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding-top: 10px; }
.kit-list div { border-top: 3px solid var(--lamp); padding-top: 16px; }
.kit-list dt { font: 800 24px var(--display); }
.kit-list dd { margin-top: 6px; color: var(--mist); }

/* ---------------------------------------------------------------- process */
.process { padding: clamp(64px, 10vh, 120px) 0; background: linear-gradient(180deg, var(--night), #121a36); }
.process h2 { font-size: clamp(38px, 4.4vw, 66px); }
.steps { list-style: none; padding: 0; margin-top: 44px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; position: relative; }
.steps::before { content: ''; position: absolute; top: 17px; inset-inline: 0; height: 2px; background: linear-gradient(90deg, rgba(255,181,71,0), var(--lamp) 12%, var(--lamp) 88%, rgba(255,181,71,0)); opacity: .5; }
.steps li { position: relative; }
.steps .plate { font-size: 18px; position: relative; }
.steps h3 { font-size: 26px; margin-top: 20px; }
.steps p { margin-top: 8px; color: var(--mist); font-size: 17px; }

/* ---------------------------------------------------------------- contact: the empty shop, lit and waiting */
.contact { position: relative; padding: clamp(72px, 11vh, 130px) 0; background: radial-gradient(48% 40% at 78% 42%, rgba(255,170,80,.13), rgba(255,170,80,0) 100%), #121a36; }
.contact-in { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.contact h2 { font-size: clamp(36px, 4vw, 58px); max-width: 16ch; }
.contact-t > p:not(.neon) { margin-top: 18px; font-size: 19px; color: #d6dbea; max-width: 40ch; }
/* the other ways to reach us: three big rows, easy to hit with a thumb */
.reach-h { margin-top: 40px; font: 600 17px var(--body); color: var(--mist); }
.reach { list-style: none; padding: 0; margin-top: 10px; max-width: 440px; }
.reach li { border-top: 1px solid var(--line); }
.reach li:last-child { border-bottom: 1px solid var(--line); }
.reach a { display: flex; align-items: center; gap: 14px; min-height: 62px; padding: 8px 4px; color: var(--paper); text-decoration: none; transition: color .2s, background-color .2s; border-radius: 6px; }
.reach svg { flex: none; color: var(--lamp); }
.reach-k { font-weight: 600; font-size: 18px; }
.reach-v { margin-inline-start: auto; color: var(--mist); font-size: 17px; text-decoration: underline; text-decoration-color: rgba(170,178,204,.4); text-underline-offset: 5px; }
.reach a:hover .reach-v { color: var(--glow); text-decoration-color: var(--lamp); }
.form { display: grid; gap: 18px; padding: clamp(24px, 3vw, 36px); border-radius: 22px; background: var(--paper); color: var(--ink); box-shadow: 0 40px 80px -30px rgba(0,0,0,.7), 0 0 0 10px rgba(255,255,255,.04); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; }
.field .opt { font-weight: 400; color: var(--ink2); }
.field small { color: var(--ink2); font-size: 15px; }
.field input, .field textarea { width: 100%; border: 2px solid #cfd2dc; border-radius: 12px; background: #fff; color: var(--ink); font: 400 18px/1.5 var(--body); padding: 12px 14px; min-height: 52px; }
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid #1d3fa0; outline-offset: 1px; border-color: #1d3fa0; }
.field [aria-invalid="true"] { border-color: #a1121f; box-shadow: 0 0 0 3px rgba(161,18,31,.18); }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.form .btn { justify-self: start; min-width: 170px; }
.form .btn:disabled { opacity: .7; cursor: progress; }
.form .btn:focus-visible { outline-color: #1d3fa0; }
.form-note { font-size: 15px; color: var(--ink2); }
.form-err { background: #fdecee; color: #8f0f1d; border-radius: 12px; padding: 12px 14px; font-weight: 600; }
.form-ok { background: #e9f7ee; color: #0f4a26; border-radius: 12px; padding: 18px; font-size: 20px; font-weight: 600; }
.form-ok:focus { outline: 3px solid #1d3fa0; outline-offset: 3px; }

.foot { padding: 40px 0 48px; background: #0f1630; border-top: 1px solid var(--line); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 40px; color: var(--mist); font-size: 16px; }
.foot .mark { font-size: 21px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 6px 26px; }
.foot-nav a { color: var(--paper); text-decoration: none; font-weight: 600; padding: 6px 0; }
.foot-nav a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--lamp); }
.foot-fine { margin-inline-start: auto; }
.foot-in > p a { color: var(--paper); font-weight: 600; }

/* statement and thank-you pages reuse the night palette */
.doc { padding: clamp(120px, 16vh, 170px) 0 90px; }
.doc h1 { font-size: clamp(38px, 5vw, 64px); }
.doc h2 { font-size: 28px; margin-top: 40px; }
.doc p, .doc ul { margin-top: 14px; max-width: 68ch; color: #d6dbea; }
.doc ul { padding-inline-start: 22px; }
.doc li { margin-top: 6px; }

/* ---------------------------------------------------------------- the calm version: no pinning, no walking, everything stacked */
html.static .street-pin { position: relative; height: auto; min-height: 0; overflow: visible; padding: 120px 0 60px; }
html.static .street-head { position: static; margin-bottom: 40px; }
html.static .street-pin::before, html.static .street-now, html.static .street-far, html.static .ground, html.static .lamp, html.static .token, html.static .route { display: none; }
html.static .track { position: static; width: auto; flex-direction: column; align-items: stretch; gap: 90px; padding: 0 max(28px, (100vw - var(--wrap)) / 2); transform: none !important; }
html.static .lot { width: 100%; height: auto; padding-bottom: 0; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr); gap: 40px; align-items: end; --fw: 100%; }
html.static .lot:last-child { width: 100%; grid-template-columns: minmax(0, 1fr); }
html.static .shop-next .bldg { max-width: 760px; }
html.static .bldg { width: 100%; height: 560px; }
html.static .bldg::after { display: none; }
html.static .window { filter: none; }
html.static .card { position: static; width: auto; opacity: 1; transform: none; translate: none; }
html.static .no { display: none; }
html.static .phone { filter: none; transform: none; }
html.static .leg .bubble { opacity: 1 !important; transform: none !important; }

/* ---------------------------------------------------------------- narrower screens */
@media (max-width: 1100px) {
  .nav { display: none; }
  .top-act { margin-inline-start: auto; }
  .kit-grid { grid-template-columns: 1fr; }
  .kit-list { grid-template-columns: 1fr; }
  .contact-in { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 40px 28px; }
  .steps::before { display: none; }
}
@media (max-width: 860px) {
  .legs { grid-template-columns: 1fr; gap: 70px; }
  .route, .token { display: none; }
  .phone { width: min(78%, 300px); }
  .leg { text-align: center; }
  .leg h3 { justify-content: center; }
  .leg p { margin-inline: auto; }
  html.static .lot { grid-template-columns: 1fr; }
  html.static .bldg { height: auto; min-height: 560px; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .wrap { width: calc(100% - 36px); }
  .top-in { min-height: 70px; gap: 12px; }
  .mark { font-size: 20px; }
  .hero { --sky: 34vh; }
  .hero-t { padding-top: 112px; padding-bottom: calc(var(--sky) + 8px); }
  .window-next { gap: 16px; padding: 14px; }
  .window-next .btn { padding: 0 18px; font-size: 17px; }
  .steps { grid-template-columns: 1fr; }
  .foot { padding-bottom: 100px; }
  .foot-in { flex-direction: column; align-items: flex-start; }
  .foot-fine { margin-inline-start: 0; }
  html.static .track { gap: 70px; padding: 0 18px; }
  html.static .bldg { min-height: 0; height: auto; grid-template-rows: auto auto auto auto; }
  html.static .floors { padding: 22px 9% 18px; }
  html.static .floors i { height: 50px; max-height: 50px; }
  html.static .sign { min-height: 84px; }
  html.static .awning { height: 34px; }
  html.static .front { grid-template-columns: 1fr 22%; padding-top: 22px; }
  html.static .window { height: auto; aspect-ratio: 720 / 1150; }
  html.static .door { height: 62%; }
  .card h3 { font-size: 30px; }
}

/* ---------------------------------------------------------------- accessibility menu */
.a11y-slot { display: contents; }
.a11y-btn { position: fixed; z-index: 35; inset-inline-end: 18px; bottom: 18px; width: 54px; height: 54px; box-shadow: 0 0 0 2px var(--night), 0 10px 30px rgba(0,0,0,.45); display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--paper); color: var(--ink); cursor: pointer; }
.a11y-btn.in-head { position: static; width: 44px; height: 44px; }
.a11y-btn:hover { background: #fff; }
.a11y-menu { width: min(360px, calc(100% - 24px)); border: 0; border-radius: 18px; padding: 18px 18px 16px; color: var(--ink); background: #fff; box-shadow: 0 20px 60px rgba(0,0,0,.45); font-family: var(--body); }
.a11y-menu::backdrop { background: rgba(8,12,26,.6); }
.a11y-menu :focus-visible { outline-color: #1d3fa0; }
.a11y-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.a11y-head h2 { font-size: 26px; }
.a11y-x { width: 44px; height: 44px; border: 0; border-radius: 50%; background: #eceef3; color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer; }
.a11y-size { border: 0; padding: 0; margin: 0 0 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.a11y-size legend { font-weight: 600; margin-bottom: 6px; padding: 0; }
.a11y-menu button[aria-pressed] { min-height: 48px; border: 2px solid #cfd2dc; border-radius: 12px; background: #fff; color: var(--ink); font: 600 16px var(--body); cursor: pointer; padding: 6px 10px; }
.a11y-menu button[aria-pressed="true"] { border-color: #1d3fa0; background: #e6ebff; color: #142c78; }
.a11y-toggles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.a11y-toggles button[aria-pressed="true"]::before { content: '✓ '; }
.a11y-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 12px; border-top: 1px solid #dfe2ea; }
.a11y-reset { min-height: 44px; border: 0; background: none; color: #a1121f; font: 600 16px var(--body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 0; }
.a11y-foot a { font-weight: 600; color: #142c78; }

html.a11y-t1 body { zoom: 1.15; }
html.a11y-t2 body { zoom: 1.3; }
html.a11y-contrast { --night: #000; --night-2: #000; --mist: #fff; --paper: #fff; --line: #fff; --lamp: #ffd000; }
html.a11y-contrast body, html.a11y-contrast .hero, html.a11y-contrast .street-pin, html.a11y-contrast .system, html.a11y-contrast .kit, html.a11y-contrast .process, html.a11y-contrast .contact, html.a11y-contrast .foot { background: #000; }
html.a11y-contrast .lede, html.a11y-contrast .system-head p, html.a11y-contrast .contact-t > p { color: #fff !important; }
html.a11y-contrast .card, html.a11y-contrast .form { background: #fff; color: #000; box-shadow: 0 0 0 3px #fff; }
html.a11y-contrast .card .kind, html.a11y-contrast .card li, html.a11y-contrast .field small, html.a11y-contrast .form-note { color: #000; }
html.a11y-contrast .exhibit { box-shadow: inset 0 0 0 2px #fff; }
html.a11y-links a { text-decoration: underline 2px !important; text-underline-offset: 4px; background: #fff3a8 !important; color: #000 !important; }
html.a11y-font { --display: Arial, Helvetica, sans-serif; --body: Arial, Helvetica, sans-serif; }
html.a11y-font body { letter-spacing: .02em; word-spacing: .08em; line-height: 1.75; }
html.a11y-motion *, html.a11y-motion *::before, html.a11y-motion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; } }
