/* The home page. Tokens, type and accent all come from the site. */
.h { max-width: 1360px; margin: 0 auto; padding: 116px clamp(20px, 4vw, 72px) 96px; color: var(--t1); --accent-ink: color-mix(in srgb, var(--accent) 84%, var(--t1)); }
.dark .h { --accent-ink: color-mix(in srgb, var(--accent) 62%, #fff); }
.im-d { display: none; }
.dark .im-d { display: block; }
.dark .im-l { display: none; }
.h h1, .h h2, .h h3 { font-family: var(--display); margin: 0; color: var(--t1); }
.h-btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; border-radius: 100px; background: var(--accent); color: #fff; font-weight: 600; font-size: 1rem; transition: transform .16s var(--ease), background .16s ease; }
.h-btn:hover { color: #fff; transform: translateY(-1px); background: color-mix(in srgb, var(--accent) 88%, #000); }
.h-btn:active { transform: scale(.98); }
.h-btn:focus-visible, .h a:focus-visible, .h summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.h-link { display: inline-block; color: var(--accent-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.h-land { display: block; position: relative; aspect-ratio: 70 / 74; }
.h-land i { position: absolute; width: calc(var(--w) * .78); height: calc(var(--h) * .78); border-radius: 12%; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--t1) 24%, transparent); }
.h-land i.d { background: color-mix(in srgb, var(--t1) 72%, transparent); box-shadow: none; }
.h-land i.p { background: linear-gradient(135deg, color-mix(in srgb, var(--t1) 62%, transparent) 50%, transparent 50%); box-shadow: none; }
.dark .h-land i.d { background: color-mix(in srgb, var(--t1) 54%, transparent); }
.h-faq { scroll-margin-top: 110px; margin-top: clamp(80px, 11vw, 150px); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 20px clamp(32px, 6vw, 96px); align-items: start; }
.h-faq h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.06; }
.h-faq-list details { border-top: 1px solid color-mix(in srgb, var(--t1) 14%, transparent); }
.h-faq-list details:last-child { border-bottom: 1px solid color-mix(in srgb, var(--t1) 14%, transparent); }
.h-faq summary { cursor: pointer; padding: 15px 28px 15px 0; font-weight: 600; font-size: 1.06rem; list-style: none; position: relative; color: var(--t1); }
.h-faq summary::-webkit-details-marker { display: none; }
.h-faq summary::after { content: '+'; position: absolute; inset-inline-end: 2px; top: 13px; font-family: var(--mono); font-weight: 400; font-size: 1.1rem; color: var(--t3); }
.h-faq details[open] summary::after { content: '-'; }
.h-faq details p { margin: 0 0 16px; color: var(--t2); line-height: 1.55; max-width: 60ch; }
.h-faq details a, .h-faq-more a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.h-faq-more { grid-column: 2; margin: 14px 0 0; color: var(--t2); }
.a-hero { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: center; min-height: calc(100dvh - 140px); }
.a-sentence { font-family: var(--display); font-weight: 600; letter-spacing: -.04em; line-height: 1.08; font-size: clamp(2.3rem, 4.2vw, 3.8rem); }
.a-lead { margin: 0 0 .1em; color: var(--t1); }
.a-choices { display: block; }
.a-choices input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.a-choices label { display: block; width: fit-content; cursor: pointer; color: color-mix(in srgb, var(--t1) 62%, transparent); padding: .04em 0; text-decoration: underline dotted color-mix(in srgb, var(--t1) 34%, transparent); text-decoration-thickness: .035em; text-underline-offset: .15em; transition: color .16s ease; }
.a-choices label:hover { color: var(--t1); text-decoration: underline solid var(--t1); text-decoration-thickness: .035em; text-underline-offset: .15em; }
.a-choices input:checked + label { color: var(--accent-ink); text-decoration: none; }
.a-choices input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
.a-panes { margin-top: 24px; min-height: 176px; }
.a-pane p { margin: 0 0 20px; font-size: clamp(1.06rem, 1.4vw, 1.2rem); line-height: 1.5; color: var(--t2); max-width: 40ch; }
.a-pane.in { animation: aIn .22s var(--ease); }
@keyframes aIn { from { opacity: 0; transform: translateY(5px); } }
.a-stage { position: relative; aspect-ratio: 2480 / 1496; }
.a-shot { position: absolute; inset: 0; margin: 0; opacity: 0; transform: translateY(8px) scale(.992); transition: opacity .2s ease, transform .24s var(--ease); pointer-events: none; }
.a-shot.on { opacity: 1; transform: none; }
.a-shot img { width: 100%; height: 100%; object-fit: cover; object-position: left top; border-radius: 12px; box-shadow: var(--shadow-deep); }
@media (min-width: 861px) {
  .a-choices label { white-space: nowrap; }
}
@media (max-width: 860px) {
  .h { padding-top: 104px; }
  .a-sentence { font-size: clamp(1.8rem, 8vw, 2.6rem); padding-inline-end: 36px; }
  .a-panes { padding-inline-end: 36px; }
  .a-hero, .h-faq { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .a-panes { min-height: 170px; }
  .h-faq-more { grid-column: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .a-pane.in { animation: none; }
  .a-shot, .h-btn { transition: none; }
}
.v-hero { min-height: calc(100dvh - 250px); display: flex; flex-direction: column; justify-content: center; }
.v-hero h1 { font-weight: 600; letter-spacing: -.045em; line-height: 1.02; font-size: clamp(2.8rem, 7.2vw, 6.3rem); max-width: 12.5em; text-wrap: balance; }
.v-hero h1 span { color: var(--accent-ink); white-space: nowrap; }
.v-hero p { margin: 26px 0 28px; font-size: clamp(1.1rem, 1.6vw, 1.34rem); line-height: 1.5; color: var(--t2); max-width: 46ch; text-wrap: pretty; }
.v-acts { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; }
.v-steps { margin-top: clamp(24px, 4vw, 56px); display: grid; }
.v-step { --x: calc(var(--s) * clamp(0px, 9vw, 150px)); display: grid; grid-template-columns: max-content minmax(180px, 32ch); gap: 6px clamp(20px, 3vw, 44px); align-items: baseline; width: fit-content; max-width: 100%; padding: clamp(6px, 1vw, 12px) 0; margin-inline-start: var(--x); color: var(--t1); }
.v-step b { font-family: var(--display); font-weight: 600; letter-spacing: -.04em; line-height: 1.04; font-size: clamp(3rem, 8vw, 7rem); color: var(--t1); white-space: nowrap; transition: color .16s ease; }
.v-step span { font-size: 1rem; line-height: 1.45; color: var(--t2); }
.v-step:hover b { color: var(--accent-ink); }
.v-step:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
.v-anim .v-step { transform: translateX(calc(var(--x) * -.5 - 16px)); opacity: 0; transition: transform .7s var(--ease), opacity .4s ease; }
.v-anim .v-step.in { transform: none; opacity: 1; }
.h-v { max-width: none; padding-left: 0; padding-right: 0; }
.h-v > :not(.v-band) { max-width: 1360px; margin-left: auto; margin-right: auto; padding-left: clamp(20px, 4vw, 72px); padding-right: clamp(20px, 4vw, 72px); }
.v-band { position: relative; overflow: hidden; margin: clamp(80px, 10vw, 140px) 0 0; padding: clamp(60px, 8vw, 110px) clamp(20px, 4vw, 72px); background: var(--bg-deep); color: #f0ede6; --t1: #f0ede6; }
.dark .v-band { background: #2a2320; }
.v-band-in { position: relative; max-width: calc(1360px - 2 * clamp(20px, 4vw, 72px)); margin: 0 auto; }
.v-band h2 { font-size: clamp(2.3rem, 5.4vw, 4.8rem); font-weight: 600; letter-spacing: -.04em; line-height: 1.04; color: #f0ede6; max-width: 11em; text-wrap: balance; }
.v-band h2 span { color: color-mix(in srgb, var(--accent) 55%, #fff); }
.v-band dl { margin: clamp(36px, 5vw, 64px) 0 0; display: grid; gap: 20px; max-width: 34em; }
.v-band dt { font-family: var(--display); font-weight: 600; font-size: clamp(1.25rem, 2vw, 1.6rem); letter-spacing: -.02em; color: #f0ede6; margin-bottom: 3px; }
.v-band dd { margin: 0; font-size: 1.04rem; line-height: 1.5; color: #d8d3cc; max-width: 52ch; }
.v-map { position: absolute; inset-inline-end: clamp(20px, 4vw, 72px); top: 50%; transform: translateY(-50%); width: min(44%, 600px); margin: 0; }
.v-map figcaption { margin-top: 12px; font-family: var(--mono); font-size: .76rem; color: #d8d3cc; text-align: end; }
.v-mark { background: color-mix(in srgb, var(--accent) 62%, #fff) !important; box-shadow: none !important; }
.v-stat { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; height: 100%; }
.v-num { font-family: var(--display); font-weight: 600; font-size: clamp(5rem, 13vw, 11rem); line-height: 1; letter-spacing: -.05em; color: var(--t1); }
.v-stat figcaption { margin-top: 12px; font-size: 1.1rem; line-height: 1.45; color: var(--t2); max-width: 34ch; }
.v-map i.d { background: color-mix(in srgb, #f0ede6 46%, transparent) !important; }
.v-map i.p { background: linear-gradient(135deg, color-mix(in srgb, #f0ede6 42%, transparent) 50%, transparent 50%); }
.v-map i.n { box-shadow: inset 0 0 0 1px color-mix(in srgb, #f0ede6 18%, transparent); }
.v-go { min-height: 0; margin-top: clamp(80px, 10vw, 130px); }
.h-v .h-faq { margin-top: clamp(70px, 9vw, 120px); }
@media (max-width: 860px) {
  .v-hero { min-height: 0; padding-bottom: 12px; }
  .v-hero h1 span { white-space: normal; }
  .v-step { --x: calc(var(--s) * 7vw); grid-template-columns: minmax(0, 1fr); padding: 12px 0; }
  .v-step b { font-size: clamp(2.5rem, 12vw, 4rem); }
  .v-step span { max-width: calc(100vw - 48px - var(--x)); padding-inline-end: 30px; }
  .v-band { display: flex; flex-direction: column; }
  .v-map { order: 2; position: relative; inset-inline-end: auto; top: auto; transform: none; width: min(100%, 340px); margin: 34px auto 0; }
  .v-map figcaption { text-align: start; }
  .v-band { padding-bottom: 44px; }
  .v-go .a-stage { margin-top: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .v-anim .v-step { transform: none; opacity: 1; transition: none; }
}
.v-step span { text-wrap: pretty; }
.v-map figcaption { text-wrap: balance; }
@media (max-width: 860px) {
  .a-choices label { display: flex; align-items: center; min-height: 44px; padding: 0; }
}

/* The street scene beside the hero text (static/js/home-street/). The stage
   holds its place from the first paint: the still picture (poster) shows at
   once, and the live canvas fades in over it when its first frame, the same
   frame as the poster, is drawn. Without WebGL the poster simply stays.
   The text is laid out for the street from the start, so nothing reflows. */
.v-hero { position: relative; }
.v-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.v-stage { pointer-events: none; }
.v-poster, .v-poster img, .v-poster-ns, .v-street { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* Wide screens: the camera's field of view is fixed in height and its centre
   sits 76% across, so the poster takes the stage's height and puts its own 76%
   point on the stage's 76% point. It lines up with the live scene at any width. */
@media (min-width: 861px) {
  .v-poster img, .v-poster-ns { width: auto; max-width: none; left: 76%; right: auto; transform: translateX(-76%); }
}
.v-poster { transition: opacity .4s ease; }
.v-street { opacity: 0; transition: opacity .25s ease; }
.v-hero.v-live .v-street { opacity: 1; pointer-events: auto; }
.v-hero.v-live .v-poster { opacity: 0; transition: opacity 0s .3s; }
@media (prefers-reduced-motion: reduce) { .v-street, .v-poster { transition: none; } .v-hero.v-live .v-poster { transition: none; } }
.v-hero > :not(.v-stage):not(.v-zoom) { position: relative; z-index: 1; }
@media (min-width: 861px) {
  .v-stage { position: absolute; z-index: 0; top: -110px; left: calc(50% - 50vw); width: 100vw; height: calc(100% + 150px); overflow: hidden; }
  .v-street { touch-action: pan-y; cursor: grab; }
  .v-street.dragging { cursor: grabbing; }
  .v-hero.v-live { pointer-events: none; }
  .v-hero.v-live a, .v-hero.v-live p { pointer-events: auto; }
  .v-hero h1 { font-size: clamp(2.6rem, 5.4vw, 5rem); max-width: 9.2em; }
  .v-hero p { max-width: 38ch; }
}
@media (max-width: 860px) {
  .v-stage { position: relative; order: 3; align-self: center; width: min(calc(100% + 40px), 470px); aspect-ratio: 1 / 1.18; margin: 18px 0 0; }
  .v-street { touch-action: pan-y; }
}
/* Zoom buttons for the street (pinch and ctrl/cmd + scroll work too). */
.v-zoom { display: none; gap: 2px; padding: 4px; border-radius: 100px; background: color-mix(in srgb, var(--bg2, #fbf8f1) 80%, transparent); border: 1px solid var(--bd, rgba(0,0,0,.08)); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 8px 22px -14px rgba(40,30,20,.35); }
.v-hero.v-live .v-zoom { display: inline-flex; }
.v-zoom button { appearance: none; border: 0; background: transparent; color: var(--t1); width: 34px; height: 34px; border-radius: 100px; display: grid; place-items: center; cursor: pointer; transition: background .16s ease, opacity .16s ease; }
.v-zoom button:hover:not(:disabled) { background: var(--accent-light); color: var(--accent-ink); }
.v-zoom button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.v-zoom button:disabled { opacity: .35; cursor: default; }
.v-zoom svg { width: 15px; height: 15px; }
@media (min-width: 861px) {
  .v-zoom { position: absolute; z-index: 2; bottom: -18px; left: calc(50% + 26vw); transform: translateX(-50%); pointer-events: auto; }
}
@media (max-width: 860px) {
  .v-zoom { order: 4; align-self: center; margin-top: 6px; }
}
@media (prefers-reduced-motion: reduce) { .v-zoom button { transition: none; } }

/* Translated steps ("Kontrolle übernehmen", "assumir o controle") are longer
   than the English words this big display type was set for: let them wrap. */
:root:not([lang="en"]) .v-step b { white-space: normal; overflow-wrap: break-word; hyphens: auto; }
:root:not([lang="en"]) .v-step { grid-template-columns: minmax(0, max-content) minmax(180px, 32ch); max-width: calc(100% - var(--x)); }
@media (max-width: 860px) { :root:not([lang="en"]) .v-step { grid-template-columns: minmax(0, 1fr); } }

/* Right-to-left pages (Arabic): the street sits on the left of the text (street.js
   moves its camera the same way), so the poster puts its 76% point, where the
   street is drawn, at 24% across; the steps slide in from the other side. */
@media (min-width: 861px) {
  [dir="rtl"] .v-poster img, [dir="rtl"] .v-poster-ns { left: 24%; }
  [dir="rtl"] .v-zoom { left: calc(50% - 26vw); }
}
[dir="rtl"].v-anim .v-step { transform: translateX(calc(var(--x) * .5 + 16px)); }
[dir="rtl"].v-anim .v-step.in { transform: none; }
/* Wide screens: the band's heading and list stay beside the map, never under it
   (Chinese and Japanese have no spaces to wrap at, so they fill every em they get). */
@media (min-width: 861px) {
  .v-band h2, .v-band dl { max-width: min(11em, calc(100% - min(44%, 600px) - 48px)); }
  .v-band dl { max-width: min(34em, calc(100% - min(44%, 600px) - 48px)); }
}
/* The coloured words of the heading stay on one line in English; longer translations may wrap. */
:root:not([lang="en"]) .v-hero h1 span { white-space: normal; }
