/* Taxitto: one continuous cardboard diorama. Hard cast shadows only (no blur, glow, fog). */
@font-face { font-family: "Fraunces"; src: url("../fonts/Fraunces-SoftBold.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/Fraunces-SoftBlack.woff2") format("woff2"); font-weight: 800 900; font-style: normal; font-display: swap; }
:root {
  --ink: #2A1A0B;
  --paper: #F6EBCF;
  --kraft: #C48E52;
  --kraft-d: #A8723A;
  --taxi: #FFC20E;
  --stamp: #B8322A;
  --tape: #E7D6A4;
  --sky: #8CC6D2;
  --serif: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --gutter: clamp(16px, 5vw, 40px);
  --max: 1080px;
  --flute: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='14'%3E%3Crect width='24' height='14' fill='%23D9AE72'/%3E%3Cpath d='M0 7Q6 0 12 7T24 7' fill='none' stroke='%238E6A3F' stroke-width='2.2'/%3E%3Cpath d='M0 1H24M0 13H24' stroke='%232A1A0B' stroke-width='2.4'/%3E%3C/svg%3E");
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .16 0 0 0 0 .1 0 0 0 0 .04 0 0 0 .3 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); font-family: var(--serif); font-weight: 700;
  font-size: clamp(17px, 1rem + .2vw, 19px); line-height: 1.5; overflow-x: hidden;
  background-color: var(--kraft);
  background-image: var(--noise), repeating-linear-gradient(90deg, rgba(42,26,11,.05) 0 2px, transparent 2px 9px);
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 6px var(--taxi); border-radius: 4px; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 60; background: var(--paper); color: var(--ink); padding: 10px 16px; border-radius: 10px; border: 3px solid var(--ink); }
.skip:focus { top: 12px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
h1, h2, h3 { font-weight: 900; line-height: 1.05; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }

/* top bar */
.topbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 12px; padding: 12px var(--gutter); max-width: var(--max); margin: 0 auto; position: relative; z-index: 5; }
.mark { display: block; width: 46px; height: 46px; border-radius: 11px; box-shadow: 0 4px 0 var(--ink); }
.mark img { width: 100%; height: 100%; border-radius: 11px; }

.btn:active, .langmenu summary:active { transform: translateY(4px); box-shadow: inset 0 3px 0 rgba(42,26,11,.35), 0 0 0 var(--ink); }
.btn, .langmenu summary { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 10px; font-weight: 900; font-size: 15px; text-decoration: none; background: var(--paper); border: 3px solid var(--ink); border-radius: 12px; box-shadow: 0 4px 0 var(--ink); transition: transform .08s, box-shadow .08s; }
.btn:active, .langmenu summary:active { transform: translateY(4px); box-shadow: inset 0 3px 0 rgba(42,26,11,.35), 0 0 0 var(--ink); }

/* hero: side-view diorama */
.hero { position: relative; z-index: 2; }
.stage { position: relative; height: clamp(400px, 46vw, 580px); background: var(--sky); overflow: hidden; border-bottom: 6px solid var(--ink); }
.layer { position: absolute; inset: 0 -30px 0; translate: calc(var(--mx, 0) * var(--k, 0) * 1px) 0; transition: translate .3s ease-out; will-change: transform; }
.layer img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.road { position: absolute; left: 0; right: 0; bottom: 0; height: 84px; background: #5B5F6B var(--noise); border-top: 6px solid var(--ink); z-index: 3; }
.road::before { content: ""; position: absolute; left: 0; right: 0; top: 30px; height: 5px; background: repeating-linear-gradient(90deg, var(--taxi) 0 22px, transparent 22px 44px); }
.road::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 14px; background: var(--flute) 0 0 / 24px 14px repeat-x; }
.taxi { position: absolute; bottom: 22px; left: 0; width: 104px; z-index: 4; animation: drive 13s linear infinite; }
@keyframes drive { from { transform: translateX(-130px); } to { transform: translateX(100vw); } }
.taxi img { animation: bob .5s ease-in-out infinite alternate; }
@keyframes bob { to { transform: translateY(-2px) rotate(-.8deg); } }
.sign { position: absolute; z-index: 5; top: 0; left: 50%; width: min(86vw, 520px); margin-left: calc(min(86vw, 520px) / -2); padding-top: 64px; transform-origin: 50% 0; animation: hang 2.8s cubic-bezier(.3, .6, .4, 1) both; }
.sign::before, .sign::after { content: ""; position: absolute; top: 0; height: 84px; width: 4px; background: var(--ink); }
.sign::before { left: 10%; } .sign::after { right: 11%; }
.sign h1 { position: relative; z-index: 1; }
.sign h1 img { width: 100%; height: auto; filter: drop-shadow(0 7px 0 rgba(42,26,11,.3)); }
@keyframes hang {
  0% { transform: translateY(-140%) rotate(0); } 34% { transform: translateY(2%) rotate(0); }
  42% { transform: translateY(0) rotate(0); } 54% { transform: rotate(6deg); } 66% { transform: rotate(-4.5deg); }
  78% { transform: rotate(2.6deg); } 89% { transform: rotate(-1.2deg); } 100% { transform: rotate(0); }
}
.hero-card { position: relative; z-index: 6; margin: -46px auto 0; max-width: 640px; width: calc(100% - 2 * var(--gutter)); background: var(--paper); padding: 30px clamp(18px, 4vw, 34px) 28px; border-radius: 6px; box-shadow: 0 2px 0 rgba(42,26,11,.4), 8px 10px 0 rgba(42,26,11,.3); display: grid; gap: 18px; transform: rotate(-.7deg); }
.hero-card .pitch { font-size: clamp(22px, 1.2rem + 1.2vw, 30px); line-height: 1.15; font-weight: 900; text-wrap: balance; }
.store { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; }
.badge { display: inline-flex; flex-direction: column; justify-content: center; min-height: 56px; padding: 7px 22px 8px; background: var(--ink); color: var(--paper); border-radius: 14px; box-shadow: 0 4px 0 rgba(42,26,11,.4); line-height: 1.1; }
.badge small { font-size: 14px; font-weight: 700; letter-spacing: .02em; }
.badge strong { font-size: 24px; font-weight: 900; }
.stamp { display: inline-block; transform: rotate(-5deg); color: var(--stamp); border: 4px double var(--stamp); border-radius: 10px; padding: 4px 12px 5px; font-weight: 900; font-size: 17px; text-transform: uppercase; letter-spacing: .08em; background: var(--paper); }
.devices { font-weight: 800; font-size: 16px; }
.tape, .card .face::before, .card .face::after { position: absolute; z-index: 3; width: 76px; height: 26px; background: var(--tape); box-shadow: 0 1px 0 rgba(42,26,11,.3); clip-path: polygon(0 8%, 5% 0, 10% 10%, 15% 0, 20% 8%, 80% 8%, 85% 0, 90% 10%, 95% 0, 100% 8%, 100% 92%, 95% 100%, 90% 90%, 85% 100%, 80% 92%, 20% 92%, 15% 100%, 10% 90%, 5% 100%, 0 92%); }

/* the table: everything below the hero is one tabletop with a winding paper road */
.table { position: relative; padding-bottom: 0; }
.road-svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; overflow: visible; }
.road-edge { transform: translateY(9px); }
.road-m { display: none; }
.cab { position: absolute; left: 0; top: 0; width: 46px; height: auto; z-index: 0; pointer-events: none; will-change: transform; transform: translate3d(calc(50vw - 23px), 24px, 0); }
.table > section, .table > .band-wrap { position: relative; z-index: 1; }
.table .wrap { max-width: 880px; }
.section { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(20px, 3vw, 36px); }
.stamp-h { display: inline-block; margin-bottom: 34px; font-size: clamp(28px, 1.6rem + 2vw, 50px); color: var(--stamp); background: var(--paper); border: 5px double var(--stamp); border-radius: 10px; padding: 4px 18px 8px; transform: rotate(-2deg); box-shadow: 6px 7px 0 rgba(42,26,11,.35); text-transform: uppercase; letter-spacing: .04em; }

/* pop-up panels: a shell (tilts, stands up) holding a moving cast shadow and a paper face */
.sh, .road-sh { position: absolute; inset: 0; background: var(--ink); opacity: .26; border-radius: 4px; z-index: 0; translate: calc(var(--sx, 0) * 1px) 10px; }
.road-sh { background: none; inset: auto; left: 0; top: 0; width: 100%; height: 100%; }
.cards, .photos, .cities > li { perspective: 1100px; }
.cards { display: grid; gap: 34px; grid-template-columns: 1fr; padding: 6px 0 14px; }
.card, .photo, .city { position: relative; transform-origin: 50% 100%; transform: rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)) rotate(var(--rot, 0deg)); transition: transform .15s ease-out; }
.face { position: relative; z-index: 1; background: var(--paper); border-radius: 4px; }
.card { margin-bottom: 14px; }
.card .face { padding: 40px 24px 26px; display: grid; gap: 12px; align-content: start; height: 100%; }
.card:nth-child(1) { --rot: -1.2deg; } .card:nth-child(2) { --rot: .9deg; } .card:nth-child(2) .face { background: #F8DD77; } .card:nth-child(3) { --rot: -.6deg; }
.card .face::before { content: ""; top: -9px; left: -16px; transform: rotate(-38deg); }
.card .face::after { content: ""; bottom: -9px; right: -16px; transform: rotate(-38deg); }
.flute { position: absolute; left: 0; right: 0; top: 100%; height: 14px; background: var(--flute) 0 0 / 24px 14px repeat-x; z-index: 1; }
.card .ico { width: 64px; height: 64px; }
.card h3 { font-size: clamp(26px, 1.4rem + 1vw, 32px); }
.card p { font-size: 18px; line-height: 1.4; }
.facts { display: flex; flex-wrap: wrap; gap: 12px; margin: 38px 0 0; padding: 0; list-style: none; }
.facts li { background: var(--paper); border: 3px dashed var(--ink); border-radius: 999px; padding: 6px 16px 8px; font-weight: 800; font-size: 16px; box-shadow: 4px 5px 0 rgba(42,26,11,.3); }

/* photos mounted on board */
.photos { display: flex; gap: clamp(22px, 5vw, 48px); justify-content: center; padding: 10px 0 30px; flex-wrap: wrap; }
.photo { flex: 0 1 230px; max-width: 230px; margin: 0; min-width: 0; }
.photo:nth-child(1) { --rot: -2.4deg; } .photo:nth-child(2) { --rot: 2deg; margin-top: 26px; }
.photo .face { padding: 12px 12px 18px; }
.photo img { width: 100%; height: auto; border: 3px solid var(--ink); border-radius: 2px; background: var(--kraft-d); }
.photo .tape { top: -12px; left: calc(50% - 38px); transform: rotate(-4deg); }

/* torn paper band + pop-up book */
.band-wrap { margin-top: 36px; filter: drop-shadow(0 7px 0 rgba(42,26,11,.3)); }
.band { background: #EAD7A8; padding: 40px 0 56px; clip-path: var(--torn); }
.cities { position: relative; display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px 16px; margin: 0; padding: 14px 0 26px; list-style: none; }
.cities::after { content: ""; position: absolute; left: -10px; right: -10px; bottom: 0; height: 14px; background: var(--flute) 0 0 / 24px 14px repeat-x; }
.city { margin: 0; }
.city:nth-child(odd) { --rot: -1.4deg; } .city:nth-child(even) { --rot: 1.1deg; }
.city .face { padding: 8px 8px 12px; }
.city img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 78%; border-radius: 2px; background: var(--kraft-d); }
.city .tape { width: 56px; height: 20px; top: -10px; left: calc(50% - 28px); }
.city figcaption { margin-top: 10px; font-weight: 900; font-size: 20px; text-align: center; line-height: 1.1; }

/* motion: scroll-driven (class .sd) or IntersectionObserver fallback (class .js) */
.js .stamp-h:not(.in) { opacity: 0; transform: rotate(-9deg) scale(1.9); }
.js .stamp-h { transition: transform .35s cubic-bezier(.2, 1.4, .4, 1), opacity .1s; }
.js .stamp-h.in { opacity: 1; }
.js:not(.sd) .fold:not(.in), .js:not(.sd) .pop:not(.in) { rotate: 1 0 0 -84deg; }
.js:not(.sd) .fold, .js:not(.sd) .pop { transition: transform .15s ease-out, rotate .85s cubic-bezier(.2, .9, .3, 1.15) calc(var(--i, 0) * 110ms); }
.sd .fold, .sd .pop { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 75%; }
@keyframes rise { from { rotate: 1 0 0 -84deg; } to { rotate: 1 0 0 0deg; } }
.sd .layer { animation: par linear both; animation-timeline: scroll(root); animation-range: 0 700px; }
@keyframes par { to { transform: translate3d(0, var(--d, 0px), 0); } }
.sd .sh, .sd .road-sh { animation: lamp linear both; animation-timeline: scroll(root); }
@keyframes lamp { from { translate: -14px 8px; } to { translate: 18px 12px; } }

/* footer */
.footer { margin-top: 60px; background: var(--ink); color: var(--paper); position: relative; z-index: 2; padding: 52px var(--gutter) 40px; }
.footer::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; background: var(--flute) 0 0 / 24px 14px repeat-x; }
.footer-in { max-width: var(--max); margin: 0 auto; display: grid; gap: 14px; justify-items: start; }
.footer nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.footer a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; }
.footer a:focus-visible { outline-color: var(--paper); box-shadow: 0 0 0 6px var(--stamp); }
.footer .fine { font-size: 15px; opacity: .9; }

/* doc pages */
.doc { position: relative; background: var(--paper); max-width: 760px; margin: 26px auto 0; padding: 42px clamp(20px, 5vw, 48px) 40px; border-radius: 4px; box-shadow: 8px 10px 0 rgba(42,26,11,.3); width: calc(100% - 2 * var(--gutter)); }
.doc > .tape { top: -12px; left: calc(50% - 38px); transform: rotate(-3deg); }
.doc .eyebrow { font-weight: 900; letter-spacing: .12em; text-transform: uppercase; font-size: 14px; color: var(--stamp); }
.doc h1 { font-size: clamp(34px, 2rem + 2vw, 52px); margin: 6px 0 8px; }
.doc .updated { font-size: 16px; opacity: .9; margin-bottom: 18px; }
.doc h2 { font-size: 26px; margin: 28px 0 8px; }
.doc ul { padding-left: 1.2em; margin: 8px 0; }
.doc li { margin: 6px 0; }
.doc p + p { margin-top: 10px; }
.contact { margin-top: 30px; padding: 18px 20px; border: 3px dashed var(--ink); border-radius: 12px; background: #F8DD77; }
.back { display: inline-flex; align-items: center; min-height: 44px; margin-top: 22px; font-weight: 900; }
.faq details { border-bottom: 3px dashed rgba(42,26,11,.5); padding: 4px 0; }
.faq summary { cursor: pointer; font-weight: 900; font-size: 20px; padding: 12px 0; }
.faq details p { padding: 0 0 14px; }
.lost { text-align: center; }
.lost h1 { font-size: clamp(64px, 20vw, 140px); }
.lost img { margin: 20px auto 0; width: 120px; }

@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .cities { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 699px) {
  .road-d { display: none; } .road-m { display: block; }
  .table .wrap { padding-left: 64px; }
  .cab { width: 34px; }
}
@media (max-width: 380px) { .badge strong { font-size: 21px; } .stamp-h { padding: 4px 12px 7px; } }
.az .sign, .az .taxi, .az .taxi img { animation: none; }
.az .taxi { left: 62%; }
.az * { transition: none !important; }

/* language dropdown (details/summary works without JS) */
.langmenu { position: relative; z-index: 20; }
.langmenu summary { list-style: none; cursor: pointer; gap: 8px; padding: 0 12px; user-select: none; }
.langmenu summary::-webkit-details-marker { display: none; }
.langmenu .caret { width: 0; height: 0; border: 5px solid transparent; border-top: 7px solid var(--ink); border-bottom: 0; transition: transform .15s; }
.langmenu[open] .caret { transform: rotate(180deg); }
.langmenu ul { position: absolute; right: 0; top: calc(100% + 10px); min-width: 180px; margin: 0; padding: 8px; list-style: none; background: var(--paper); border: 3px solid var(--ink); border-radius: 12px; box-shadow: 6px 8px 0 rgba(42,26,11,.35); }
.langmenu ul::before { content: ""; position: absolute; right: 22px; top: -11px; width: 18px; height: 18px; background: var(--paper); border: 3px solid var(--ink); border-right: 0; border-bottom: 0; transform: rotate(45deg); }
.langmenu li { position: relative; }
.langmenu a { display: flex; justify-content: flex-start; width: 100%; border: 0; box-shadow: none; background: none; border-radius: 8px; padding: 0 12px; font-size: 17px; }
.langmenu a:hover, .langmenu a:focus-visible { background: #F8DD77; }
.langmenu a[aria-current="true"] { background: var(--taxi); }
