/* albanisht home (Direction D, layout B, daylight; owner's pick, 13 October 2026).
   Loaded only by templates/index.html, whose <html> carries .home-d. It restyles the product's own header,
   translator (_translator.html; every id there is app.js's contract) and footer, and styles the journey,
   the city picker, the comparisons and the sources. The strict CSP (app/security_headers.py) allows no inline
   style, so everything visual lives here; the score sets only CSSOM properties at run time.
   Type: Instrument Serif for what is said, Geist for what is used (both OFL, subset with Albanian's ë, ç and
   the combining accents). The type, tokens, header and footer it shares with Bisedo live in static/d.css,
   loaded first; <html> carries .d as well as .home-d. */

.home-d .tr-panel-summary { font-family: var(--ui); }   /* a control at 600: Geist, not the display serif (which has one weight) */
.home-d main { flex: none; }

/* ── Header: floats over the hero's sky (the base markup, restyled) ── */
.home-d .site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 40; background: transparent; border: 0; box-shadow: none; }

/* ── The journey: a tall section whose stage stays pinned while the score plays with the scroll ── */
.journey { position: relative; }
.motion-on .journey { height: calc(480vh + var(--lead, 0px)); }   /* --lead: the scroll past the translator before the story starts (symphony.js) */
.stage { position: relative; height: 180px; overflow: hidden; isolation: isolate;
  background: radial-gradient(70% 55% at 12% 0%, rgba(255,250,235,.95), rgba(255,250,235,0) 60%),
              radial-gradient(60% 50% at 69% 100%, rgba(255,255,255,.7), rgba(255,255,255,0) 70%),
              linear-gradient(180deg, #7FB8EC 0%, #A9D2F5 45%, #DCEEFC 100%); }
.stage::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: var(--halo, 0);   /* the Earth's halo of sky light */
  background: radial-gradient(circle at var(--gx, 70%) var(--gy, 50%), rgba(255,255,255,.75) 0, rgba(225,240,255,.45) calc(var(--gr, 300px) * 1.02), rgba(225,240,255,0) calc(var(--gr, 300px) * 1.45)); }
.motion-on .stage { position: sticky; top: 0; height: 100vh; height: 100svh; }
@media (min-width: 960px) { .stage { height: 780px; } }
.motion-on #gl { cursor: grab; }
.stage.dragging #gl { cursor: grabbing; }
.stage.over-city #gl { cursor: pointer; }
.terrace-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; transform-origin: 50% 100%; transform: scale(1.34); opacity: 0; }
/* The Earth appears only once it is drawn (.ready); a 1.2 s fade showed it half-transparent over the bright sky, a pale
   washed-out disc (launch audit design M4). A short ease-out keeps the arrival soft without that phase. */
#gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .4s cubic-bezier(.2, .7, .3, 1); }
.ready #gl { opacity: 1; }
.veil { position: absolute; inset: -10%; pointer-events: none; opacity: 0; z-index: 2;
  background: radial-gradient(40% 30% at 30% 40%, #fff, rgba(255,255,255,0) 70%), radial-gradient(45% 35% at 70% 55%, #fff, rgba(255,255,255,0) 70%),
              radial-gradient(60% 40% at 50% 80%, #f4f9ff, rgba(255,255,255,0) 70%), radial-gradient(50% 40% at 20% 75%, #fff, rgba(255,255,255,0) 70%), rgba(255,255,255,.65); }
.labels { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.word { position: absolute; left: 0; top: 0; font: italic 400 20px/1 var(--display); color: var(--navy); background: rgba(255,255,255,.9); padding: 7px 12px 8px; border-radius: 999px;
  box-shadow: 0 8px 24px rgba(11,21,48,.14); white-space: nowrap; opacity: 0; will-change: transform; }
.word.trio { font-size: 23px; color: var(--gold); }
.citycard { position: absolute; left: 0; top: 0; width: 220px; margin: 0; background: #fff; padding: 6px 6px 10px; border-radius: 14px;
  box-shadow: 0 24px 60px rgba(11,21,48,.24); opacity: 0; transition: opacity .35s ease; pointer-events: none; z-index: 4; }
.citycard.on { opacity: 1; animation: card-pop .55s cubic-bezier(.3, 1.45, .5, 1) both; }
@keyframes card-pop { from { scale: .9; } to { scale: 1; } }
.citycard img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 9px; }
.citycard figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 8px; padding: 8px 6px 0; }
.citycard b { font: 400 22px/1 var(--display); letter-spacing: -0.01em; } .citycard span { font: 500 16px/1.2 var(--ui); color: var(--navy-2); }
.citycard i { flex-basis: 100%; font: 400 16px/1.3 var(--ui); font-style: normal; color: var(--navy-2); }
@media (min-width: 960px) { .citycard { width: 228px; } }
@media (max-width: 959px) {   /* phones and tablets: a small postcard docked at the foot of the globe's room (.globe-room), never over text */
  /* --room-bottom is the room's foot in the stage, measured by the score; the score leaves the card's transform to this rule */
  .citycard { display: flex; align-items: center; gap: 10px; width: auto; max-width: calc(100% - 32px); left: auto; right: 16px; top: var(--room-bottom, 218px);
    translate: 0 -100%; padding: 4px 14px 4px 4px; border-radius: 13px; box-shadow: 0 12px 30px rgba(11,21,48,.2); }
  .citycard img { width: 64px; flex: none; border-radius: 9px; }
  .citycard figcaption { display: block; padding: 0; } .citycard b { font-size: 21px; white-space: nowrap; } .citycard span, .citycard i { display: none; }
}

/* The welcome on wide screens: the Earth's caption, placed under it by the score. (Phones: .home-hero, below.) */
.phrase { position: absolute; z-index: 4; left: 16px; margin: 0; font: italic 400 30px/1.1 var(--display); color: var(--navy-2); }
.js .phrase { opacity: 0; transform: translateY(10px); transition: opacity 1s ease, transform 1.2s var(--ease); }
.js .phrase.on { opacity: 1; transform: none; }
@media (max-width: 959px) { .phrase { display: none; } }
.hint { position: absolute; z-index: 4; margin: 0; display: none; align-items: center; gap: 10px; font: 500 16px/1.3 var(--ui); color: var(--navy);
  background: rgba(255,255,255,.72); border: 1px solid rgba(11,21,48,.08); padding: 8px 14px 8px 10px; border-radius: 999px; opacity: 0; transition: opacity .6s ease; pointer-events: none; }
.hint svg { width: 22px; height: 22px; flex: none; }
@media (min-width: 960px) { .motion-on .hint { display: flex; } }
.hint.on { opacity: 1; }
.globe-back { position: absolute; z-index: 5; right: 16px; top: 80px; min-height: 44px; display: inline-flex; align-items: center; gap: 10px; padding: 0 16px 0 14px; border: 1px solid rgba(11,21,48,.1);
  border-radius: 999px; background: rgba(255,255,255,.86); color: var(--navy); font: 500 16px var(--ui); cursor: pointer;
  box-shadow: 0 8px 24px rgba(11,21,48,.14); opacity: 0; visibility: hidden; transform: translateY(-8px); pointer-events: none; transition: opacity .35s ease, transform .5s cubic-bezier(.3, 1.4, .5, 1), visibility 0s .5s; }
.globe-back svg { width: 16px; height: 12px; }
.globe-back.on { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition: opacity .35s ease, transform .5s cubic-bezier(.3, 1.4, .5, 1); }
@media (min-width: 960px) { .globe-back { right: 48px; top: 92px; } }

/* Verses: the poets' own words, a whole line at a time, in time with the scroll */
.verse { position: absolute; z-index: 4; left: 16px; right: 16px; top: 15%; margin: 0; pointer-events: none; opacity: 0; }
.verse p { margin: 0 0 .06em; font: 400 clamp(32px, 4.9vw, 80px)/1 var(--display); letter-spacing: -0.02em; opacity: 0; filter: blur(8px); transform: translateY(.3em);
  transition: opacity .9s ease, filter 1s ease, transform 1.2s var(--ease); }
.verse.long p { font-size: clamp(26px, 3vw, 50px); line-height: 1.04; }
.verse p.lit { opacity: 1; filter: blur(0); transform: none; }
.verse cite { display: flex; align-items: center; gap: 12px; margin-top: 22px; font: 500 16px/1.4 var(--ui); font-style: normal; opacity: 0; transform: translateY(6px); transition: opacity .7s ease, transform .9s var(--ease); }
.verse cite::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.verse.done cite { opacity: .92; transform: none; }
.verse.light p, .verse.light cite { color: #fff; text-shadow: 0 2px 22px rgba(4,12,30,.55), 0 1px 3px rgba(4,12,30,.45); }
.verse.dark p, .verse.dark cite { color: var(--navy); text-shadow: 0 0 24px #fff, 0 0 8px #fff; }
@media (min-width: 960px) { .verse { left: 6%; right: auto; width: min(46vw, 820px); top: 13%; } .verse.long { width: min(54vw, 920px); } }

/* The terrace: the assistant's speech, the alphabet counter, the way back to writing */
.bubble { position: absolute; left: 0; top: 0; margin: 0; max-width: min(300px, calc(100% - 32px)); padding: 10px 16px 12px; border-radius: 16px 16px 16px 4px; background: #fff; color: var(--navy);
  font: 400 22px/1.2 var(--display); box-shadow: 0 14px 36px rgba(11,21,48,.18); opacity: 0; transform: translate(var(--bx, 0px), var(--by, 0px)) translate(0, -100%) scale(.92);
  transform-origin: 0 100%; transition: opacity .25s ease, transform .35s var(--ease), visibility 0s .35s; pointer-events: none; z-index: 4; visibility: hidden; }
.bubble.on { visibility: visible; opacity: 1; transform: translate(var(--bx, 0px), var(--by, 0px)) translate(0, -100%) scale(1); transition: opacity .25s ease, transform .35s var(--ease); }
.count { position: absolute; z-index: 4; right: 16px; bottom: 16px; display: flex; align-items: baseline; gap: 10px; margin: 0; background: rgba(255,255,255,.9); border-radius: 999px; padding: 8px 18px 10px; opacity: 0; transition: opacity .4s ease; }
.count b { font: 400 40px/1 var(--display); color: var(--cobalt); font-variant-numeric: tabular-nums; min-width: 1.2em; text-align: center; }
.count span { font: 500 16px var(--ui); }
.count.on { opacity: 1; }
@media (min-width: 960px) { .count { right: 48px; bottom: 30px; } }
.cue { position: absolute; z-index: 4; right: 48px; bottom: 22px; margin: 0; display: none; align-items: center; gap: 10px; font: 500 16px var(--ui); color: var(--navy-2); opacity: 0; transition: opacity .6s ease; }
@media (min-width: 960px) { .cue { display: flex; } }
.cue.on { opacity: 1; }
.cue svg { width: 12px; height: 18px; } .cue.on svg { animation: cue-fall 1.8s cubic-bezier(.5, 0, .5, 1) infinite; }
@keyframes cue-fall { 0%, 100% { transform: translateY(-2px); opacity: .5; } 50% { transform: translateY(4px); opacity: 1; } }
.back { position: absolute; z-index: 5; left: 50%; bottom: 24px; transform: translateX(-50%); min-height: 52px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--poppy); color: #fff;
  font: 600 17px var(--ui); cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .5s ease; box-shadow: 0 14px 30px rgba(179,18,46,.28); }
.back.on { opacity: 1; pointer-events: auto; }

/* The score's four movements: where you are in the journey, and a way to jump (desktop) */
.rail { position: absolute; z-index: 5; left: 48px; bottom: 22px; display: none; gap: 4px; margin: 0; padding: 0; list-style: none; transition: opacity .4s ease; }
@media (min-width: 960px) { .motion-on .rail { display: flex; } }
.rail.away { opacity: 0; pointer-events: none; visibility: hidden; }
.rail button { position: relative; min-height: 44px; padding: 0 14px 0 0; border: 0; background: none; cursor: pointer; display: flex; align-items: center; gap: 8px;
  font: 500 16px/1 var(--ui); color: var(--navy-2); opacity: .62; transition: opacity .3s ease, color .3s ease; }
.rail button:hover, .rail button[aria-current="step"] { opacity: 1; color: var(--navy); }
.rail i { font: italic 400 20px/1 var(--display); min-width: 1.4em; }
.rail button::after { content: ""; position: absolute; left: 0; right: 14px; bottom: 6px; height: 2px; border-radius: 2px; background: rgba(11,21,48,.12); }
.rail b { position: absolute; left: 0; bottom: 6px; height: 2px; border-radius: 2px; background: var(--poppy); width: calc((100% - 14px) * var(--fill, 0)); z-index: 1; font-size: 0; }
.rail.on-dark button { color: #fff; } .rail.on-dark button::after { background: rgba(255,255,255,.3); }

/* ── The translator column (layout B): the product owns the left half; the Earth the right ── */
.card-wrap { position: relative; z-index: 5; }
.motion-on .card-wrap { position: absolute; top: 0; left: 0; right: 0; pointer-events: none; transition: opacity .45s ease, visibility 0s 0s; }
.in-story .card-wrap { opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s .35s; }   /* the story has the stage; the dock carries the translator */
.hd-card { position: relative; background: #fff; border-radius: 24px 24px 0 0; padding: 14px 16px 8px; pointer-events: auto; }
@media (min-width: 960px) {
  .card-wrap { padding-top: 112px; }
  .no-js .card-wrap, .static .card-wrap { position: absolute; top: 0; left: 0; right: 0; }
  .hd-card, .motion-on .hd-card { margin-top: 0; width: min(46vw, 640px); background: transparent; border-radius: 0; padding: 0; }
}
/* ── Phones and tablets (< 960 px): the Earth as a stage, the words in the page's flow ──
   (design/AUDIT-HOME-PHONE.md, 15 October 2026: text over the moving globe read as broken; the owner chose the "globe as
   stage" composition on 16 October). A wide horizon under the header; the welcome and the headline below it on a pale
   sky, then the translator. Nothing is laid over the text: the score (symphony.js) reads .globe-disc's box and draws
   the Earth there, and keeps the travelling words and the city card inside .globe-room; the quiet version shows a still
   of the same band. */
.home-hero { display: none; }
@keyframes caption-in { from { transform: translateY(14px); } to { transform: none; } }
@media (max-width: 959px) {
  .home-hero { --band: clamp(164px, 19.5svh, 240px); display: flex; flex-direction: column; position: relative; pointer-events: none; }
  .globe-slot { position: relative; height: var(--band); overflow: hidden; }
  .globe-disc { --r: max(270px, 74vw); --home-lat: -12; position: absolute; left: calc(50% - var(--r)); top: calc(64px + (var(--band) - 64px) * .2);
    width: calc(var(--r) * 2); height: calc(var(--r) * 2); }   /* --home-lat: where Albania sits on the Earth's face (read by the score) */
  .globe-room { position: absolute; left: 0; right: 0; top: 70px; bottom: 32px; }   /* under the header, above the fade */
  .hero-lines { position: relative; z-index: 1; margin-top: -28px; padding: 30px 16px 30px; background: linear-gradient(180deg, rgba(240,246,252,0), #F0F6FC 28px, #F6F9FD); }
  .hero-lines > * { max-width: 640px; }
  .hero-welcome { margin: 0; font: italic 400 22px/1.2 var(--display); color: var(--navy-2); }
  .hero-gloss { margin: 2px 0 0; font: 400 16px/1.4 var(--ui); color: var(--navy-2); }
  .hero-title { margin: 6px 0 0; font: 400 clamp(36px, 9.8vw, 56px)/.98 var(--display); letter-spacing: -0.025em; color: var(--navy);
    animation: caption-in 1.1s var(--ease) .15s backwards; }   /* paints opaque on its first frame (LCP), then settles */
  .hero-title em { display: block; font-style: italic; }
  .motion-on .hero-welcome, .motion-on .hero-gloss { opacity: 0; transform: translateY(8px); transition: opacity 1s ease, transform 1.2s var(--ease); }
  .motion-on.welcomed .hero-welcome, .motion-on.welcomed .hero-gloss { opacity: 1; transform: none; }   /* when the three words land on the Earth */
  .hd-card { z-index: 2; margin-top: -24px; }   /* the pale sky runs on behind the sheet's round corners */
  /* One headline on a phone (owner, 2026-10-20: "Tab bar + one headline"): the translator's own title. The promise
     stays the wide screens' subtitle (.tr-sub). Short screens give the band and the welcome less room, so the text
     box and Translate stay on the first screen above the tab bar (tests/e2e/test_tab_bar.py measures it). */
  .hero-title { display: none; }
  /* the quiet version: no 3D stage; the band shows a still of the same Earth, captured at 430 px (scripts/make_home_stills.py) */
  .no-js .stage, .static .stage { display: none; }
  .no-js .globe-slot, .static .globe-slot {
    background: url(/static/home/globe-horizon.webp) 50% 0 / 100% auto no-repeat,
      radial-gradient(70% 320px at 12% 0%, rgba(255,250,235,.95), rgba(255,250,235,0) 60%), linear-gradient(180deg, #7FB8EC 0%, #A9D2F5 100%); }
}
@media (max-width: 959px) and (max-height: 700px) {
  .hero-lines { padding: 18px 16px 16px; }
}
@media (max-width: 959px) and (max-height: 600px) {
  .home-hero { --band: clamp(112px, 19.5svh, 240px); }
  .hero-gloss { display: none; }
}

.home-d .tr-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 0; }
.home-d .tr-h1 { margin: 0 0 8px; font: 400 32px/1 var(--display); letter-spacing: -0.02em; color: var(--navy); }
.home-d .tr-sub { display: none; margin: -2px 0 20px; font: italic 400 clamp(24px, 2.2vw, 32px)/1.15 var(--display); color: var(--navy-2); }
@media (min-width: 960px) {
  .home-d .tr-h1 { font-size: clamp(48px, 4.2vw, 62px); margin-bottom: 14px; white-space: nowrap; }
  .home-d .tr-sub { display: block; }
}
.home-d .tr-clear { min-height: 44px; border: 0; background: none; color: var(--navy-2); font: 500 16px var(--ui); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.home-d .tr-dir { display: grid; grid-template-columns: 1fr 1.25fr 1.25fr 44px; gap: 2px; background: rgba(255,255,255,.72); border-radius: 14px; padding: 3px; margin: 0; }
.home-d .lang-toggle-btn { width: auto; min-height: 44px; border: 0; border-radius: 11px; background: transparent; color: var(--navy-2); font: 500 16px/1.12 var(--ui); padding: 4px 6px; box-shadow: none; }
.home-d .lang-toggle-btn.is-active { background: #fff; color: var(--navy); box-shadow: 0 1px 4px rgba(11,21,48,.14); }
.home-d .tr-swap { min-width: 44px; min-height: 44px; border: 0; border-radius: 11px; background: transparent; color: var(--navy-2); cursor: pointer; display: grid; place-items: center; }
.home-d .tr-swap svg { width: 18px; height: 18px; }
.home-d .aud { margin: 10px 0; }
.home-d .tr-grid { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 0; }
.dir-short { display: none; }
@media (max-width: 959px) {   /* phones: everything needed to translate, and the promise under it, fit the first screen (tests/e2e/test_home_layout.py, test_home_phone.py) */
  .card-wrap { padding: 0; }   /* the translator is a full-width sheet: the whole width for the tool */
  /* the title stays on one line down to 320 px: "Translate Albanian ↔ English" is ~9.7 em wide, beside "Clear" */
  .home-d .tr-h1 { margin: 0; font-size: clamp(22px, calc((100vw - 104px) / 9.7), 28px); white-space: nowrap; }
  .home-d .tr-head { min-height: 44px; align-items: center; }
  /* direction: one segmented control, three short options and the swap, one line each */
  .home-d .tr-dir { display: flex; gap: 1px; margin: 6px 0 0; padding: 3px; border-radius: 14px; background: var(--mist); }
  .home-d .lang-toggle-btn { flex: 1 1 0; min-width: max-content; padding: 0 clamp(3px, calc(2.5vw - 4px), 8px); white-space: nowrap; font-size: 16px; line-height: 1; }
  .home-d .tr-swap { flex: none; width: 44px; position: relative; }
  .home-d .tr-swap::before { content: ""; position: absolute; left: -1px; top: 12px; bottom: 12px; width: 1px; background: rgba(11,21,48,.12); }
  .dir-short { display: inline; }
  .dir-long:not(.dir-same) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
  /* "Kujt i shkruani?": the question stays put; the chips scroll under a fade, and the next one peeks in */
  .home-d .aud { margin: 8px -16px; }
  .home-d .aud-row { flex-wrap: nowrap; overflow-x: auto; padding: 0 16px; gap: 6px; scrollbar-width: none; overscroll-behavior-x: contain;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); }
  .home-d .aud-row.at-end { -webkit-mask-image: none; mask-image: none; }
  .home-d .aud-row::-webkit-scrollbar { display: none; }
  .home-d .aud-q { position: sticky; left: -16px; z-index: 1; flex: none; align-self: stretch; display: flex; align-items: center; margin: 0 0 0 -16px; padding: 0 6px 0 16px; background: #fff; }
  .home-d .aud-q::after { content: ""; position: absolute; top: 0; bottom: 0; left: 100%; width: 20px; background: linear-gradient(90deg, #fff, rgba(255,255,255,0)); pointer-events: none; }
  .home-d .aud-chip { flex: none; }
  .home-d .tr-textarea { min-height: 0; height: 4.35em; }   /* three lines; longer text scrolls in the box */
  .home-d .tr-src .tr-meta { min-height: 0; }
  .home-d .voice-status { font-size: 16px; }
  .home-d .voice-status:empty { min-height: 0; margin: 0; }   /* kept in the tree (a live region), no height until it speaks */
  /* the promise (free, no sign-up, deletion) sits right under the Translate button: the grid's boxes join the card's column */
  .home-d .hd-card { display: flex; flex-direction: column; }
  .home-d .tr-grid { display: contents; }
  .home-d .tr-grid > .tr-go { margin-top: 8px; }
  .home-d .home-trust { order: 1; margin: 6px 0 0; text-align: center; color: var(--navy-2); line-height: 1.35; }
  .home-d .tr-out, .home-d .tr-grid ~ :not(.home-trust) { order: 2; }
  .home-d .tr-out { margin-top: 6px; }
}
.home-d .tr-card { position: relative; border-radius: 16px; padding: 8px 16px 10px; background: var(--mist); border: 0; box-shadow: none; }
@media (min-width: 960px) { .home-d .tr-card { background: rgba(255,255,255,.88); border: 1px solid rgba(11,21,48,.07); box-shadow: 0 18px 50px rgba(11,21,48,.1); } }
.home-d .tr-src { grid-row: 1; grid-column: 1; }
.home-d .tr-go { grid-row: 2; grid-column: 1; margin: 0; }
.home-d .tr-out { grid-row: 3; grid-column: 1; }
@media (min-width: 960px) {   /* the Translate button sits inside the text box: the question and its answer read as one pair */
  .home-d .tr-src { padding-bottom: 72px; }
  .home-d .tr-go { grid-row: 1; align-self: end; justify-self: end; margin: 0 12px 12px 0; position: relative; z-index: 1; }
  .home-d .tr-out { grid-row: 2; min-height: 124px; }
}
.home-d .tr-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; }
@media (max-width: 359px) { .home-d .tr-card-head { flex-wrap: wrap; } }
.home-d .tr-label { font: 500 16px var(--ui); color: var(--navy-2); }
.home-d .tr-textarea, .home-d .tr-output { width: 100%; border: 0; background: transparent; box-shadow: none; padding: 0; color: var(--navy); font: 400 19px/1.45 var(--ui); }
.home-d .tr-textarea { min-height: 80px; resize: none; }
@media (min-width: 960px) { .home-d .tr-textarea { min-height: 96px; font-size: 21px; } .home-d .tr-output { font-size: 21px; min-height: 2.6em; } }
.home-d .tr-textarea:focus { outline: none; }
.home-d .tr-src:focus-within { box-shadow: 0 0 0 2px var(--cobalt); }
.home-d .tr-go-btn { width: 100%; min-height: 54px; border: 0; border-radius: 999px; background: var(--poppy); color: #fff; font: 600 18px var(--ui); box-shadow: 0 10px 24px rgba(179,18,46,.22); }
@media (min-width: 960px) { .home-d .tr-go-btn { width: auto; min-height: 48px; padding: 0 30px; } }
.home-d .btn-mic { width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--navy); }
.home-d .tr-panel { margin-top: 10px; border-radius: 16px; background: rgba(255,255,255,.92); border: 1px solid rgba(11,21,48,.07); }
.home-d .home-trust { margin: 10px 0 8px; font-size: 16px; color: var(--navy); max-width: 640px; }
.home-d .home-trust a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; vertical-align: middle; margin-block: -12px; color: inherit; text-decoration: underline; }

/* The translator travels with you: a docked bar after the story */
.dock { position: fixed; z-index: 30; left: 50%; bottom: 18px; width: min(620px, calc(100% - 32px)); transform: translate(-50%, 140%); display: flex; align-items: center; gap: 8px;
  padding: 8px 8px 8px 18px; border-radius: 999px; background: rgba(255,255,255,.92); border: 1px solid rgba(11,21,48,.08); box-shadow: 0 18px 50px rgba(11,21,48,.18);
  opacity: 0; visibility: hidden; transition: transform .6s cubic-bezier(.3, 1.2, .5, 1), opacity .3s ease, visibility 0s .6s; }
.dock.on { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition: transform .6s cubic-bezier(.3, 1.2, .5, 1), opacity .3s ease; }
.dock input { flex: 1; min-width: 0; min-height: 44px; border: 0; background: transparent; color: var(--navy); font: 400 17px var(--ui); }
.dock input:focus { outline: none; }
/* The ring moves to the bar (brand.css's focus ring): the field had no visible focus at all (launch audit UX M7). */
.dock:focus-within { outline: 3px solid var(--c-primary); outline-offset: 2px; }
.dock input::placeholder { color: #6B7690; }
.dock button { min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--poppy); color: #fff; font: 600 16px var(--ui); cursor: pointer; }
@media (max-width: 959px) {   /* phones: a solid bar across the foot of the screen, above the home indicator; the page scrolls out from under it */
  .dock { left: 0; right: 0; bottom: 0; width: auto; transform: translateY(105%); padding: 8px 16px calc(8px + env(safe-area-inset-bottom)); gap: 8px;
    border: 0; border-top: 1px solid var(--line); border-radius: 0; background: #fff; box-shadow: none; }
  .dock::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 28px; pointer-events: none;   /* the text above dissolves into the bar instead of being cut */
    background: linear-gradient(180deg, rgba(255,255,255,0), #fff); }
  .dock.on { transform: none; }
  .dock input { padding: 0 16px; border-radius: 999px; background: var(--mist); }
  /* above the tab bar where there is one (brand.css): the bar takes the home indicator's room */
  :root:not(.no-tabbar):not(.typing) .dock { bottom: var(--tabbar-h, 0px); }   /* typing: the bar has stepped aside */
  /* room at the end of the page for the bar and its fade (the bar leaves when the footer comes) */
  .motion-on .more { padding-bottom: calc(60px + 28px + 24px + env(safe-area-inset-bottom)); }
}
@media (max-width: 899.98px) {   /* the tab bar's own room is the body's padding (brand.css) */
  :root:not(.no-tabbar) .dock { padding-bottom: 8px; }
  :root:not(.no-tabbar).motion-on .more { padding-bottom: calc(60px + 28px + 24px); }
}

/* Without JavaScript or with reduced motion: the movements as a quiet sequence of stills and verses */
.no-js .count, .no-js .back, .no-js .cue, .no-js .bubble, .no-js .hint, .no-js .rail, .no-js .dock,
.static .count, .static .back, .static .cue, .static .bubble, .static .hint, .static .rail, .static .dock { display: none; }
/* After the frame guard switches a running journey to the quiet version, nothing of the 3D layer stays on screen. */
.static #labels, .static #verses, .static #gl, .static #phrase { display: none; }
.no-js .stage, .static .stage { background-image: url(/static/home/still-1.webp); background-size: cover; background-position: 70% 50%; }
.movements { display: grid; gap: 48px; padding-block: 48px 24px; }
.motion-on .movements { display: none; }
.movement { margin: 0; display: grid; gap: 16px; }
@media (min-width: 960px) { .movement { grid-template-columns: 1.3fr 1fr; align-items: center; gap: 48px; } }
.movement img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 18px; display: block; }
.movement blockquote { margin: 0; }
.movement blockquote + blockquote { margin-top: 28px; }
.movement blockquote p { margin: 0 0 .04em; font: 400 clamp(28px, 3.4vw, 44px)/1.04 var(--display); letter-spacing: -0.015em; }
.movement cite { display: block; margin-top: 12px; font: 500 16px var(--ui); font-style: normal; color: var(--navy-2); }

/* Qytetet tona (the picker itself: cities.css) */
.cities { padding-block: 96px 56px; }
.cities h2 { margin: 0 0 12px; font: 400 clamp(52px, 8vw, 128px)/.9 var(--display); letter-spacing: -0.03em; }
.cities .lede { margin: 0 0 32px; max-width: 40em; color: var(--navy-2); font-size: 18px; }
.city figure { margin: 0; }
.city img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 14px; }
.city figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 8px; padding-top: 8px; }
.city b { font: 400 26px/1.1 var(--display); }
.city span { font: 400 16px/1.3 var(--ui); color: var(--navy-2); }

/* Pasuria e gjuhës shqipe: one editorial table; each row reads left to right on one baseline */
.proof { background: #fff; color: var(--navy); padding-block: 120px 88px; border-top: 1px solid var(--line); }
.proof-head { display: grid; gap: 18px; margin-bottom: 56px; }
@media (min-width: 960px) { .proof-head { grid-template-columns: 1.25fr 1fr; align-items: end; column-gap: 64px; } .proof-head .hd-eyebrow { grid-column: 1 / -1; margin-bottom: 0; } .proof .lede { padding-bottom: .9em; } }
.proof h2 { margin: 0; font: 400 clamp(56px, 8.4vw, 136px)/.88 var(--display); letter-spacing: -0.035em; }
.proof h2 em { font-style: italic; color: var(--poppy); }
.proof .lede { margin: 0; max-width: 32em; font-size: 18px; line-height: 1.55; color: var(--navy-2); }
.pf-cols { display: none; }
.proof-list { list-style: none; margin: 0; padding: 0; }
.pf { display: grid; grid-template-columns: 40px 1fr; gap: 10px 14px; padding: 30px 0 32px; border-top: 1px solid rgba(11,21,48,.12); }
.pf-sq, .pf-g, .pf-a { grid-column: 2; }
.pf-n { grid-row: 1 / span 3; font: italic 400 24px/1.3 var(--display); color: #8C8578; font-variant-numeric: tabular-nums; }
.pf-kind { margin: 10px 0 0; font: 500 16px/1.3 var(--ui); color: #8A5A00; }
.pf-src { margin: 0; font: 400 clamp(32px, 3.1vw, 46px)/1.04 var(--display); letter-spacing: -0.02em; }
.pf-k { display: inline-flex; align-items: center; gap: 7px; font: 500 16px/1.3 var(--ui); color: #6B6558; }
.pf-k svg { width: 13px; height: 13px; flex: none; }
.pf-g svg { color: var(--poppy); } .pf-a svg { color: #2E7D4F; }
.pf-g p { margin: 4px 0 0; font-size: 18px; line-height: 1.5; color: #6B6558; }
.strike { background: linear-gradient(var(--poppy), var(--poppy)) no-repeat 0 58% / 100% 1.5px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.pf-a > p:first-of-type { margin: 4px 0 0; font: 400 clamp(26px, 2.2vw, 32px)/1.18 var(--display); letter-spacing: -0.01em; color: var(--navy); }
.pf-note { margin: 10px 0 0; font-size: 16px; line-height: 1.55; color: var(--navy-2); max-width: 30em; }
@media (min-width: 960px) {
  .pf-cols { display: grid; grid-template-columns: 56px minmax(0, 1.3fr) minmax(0, .9fr) minmax(0, 1fr); column-gap: 40px; padding-bottom: 14px; font: 500 16px/1.3 var(--ui); color: #6B6558; }
  .pf { grid-template-columns: 56px minmax(0, 1.3fr) minmax(0, .9fr) minmax(0, 1fr); column-gap: 40px; padding: 40px 0 44px; align-items: baseline; }
  .pf-n { grid-row: auto; }
  .pf-sq, .pf-g, .pf-a { grid-column: auto; }
  .pf-k { display: none; }
  .pf-g p, .pf-a > p:first-of-type { margin-top: 0; }
}
.proof-more { margin: 8px 0 0; padding-top: 20px; border-top: 1px solid rgba(11,21,48,.12); }
.proof-more a { display: inline-flex; align-items: center; min-height: 44px; font: 600 16px var(--ui); color: var(--poppy); text-decoration: none; }
/* The answer arrives with its row (at most 250 ms late, 400 ms to appear) and the strike plays over it: a delay of 1 s
   and a 0.8 s fade left rows of blank space in a normal scroll (launch audit, design M5). */
.motion .pf .strike { background-size: 0% 1.5px; transition: background-size .7s cubic-bezier(.6, 0, .2, 1) .25s; }
.motion .pf.in .strike { background-size: 100% 1.5px; }
.motion .pf .pf-a { opacity: 0; transform: translateY(10px); transition: opacity .4s ease .25s, transform .5s var(--ease) .25s; }
.motion .pf.in .pf-a { opacity: 1; transform: none; }
.motion .reveal { opacity: 0; transform: translateY(34px); }
.motion .pf.reveal { transform: translateY(18px); }
.motion .reveal.in { opacity: 1; transform: none; transition: opacity .9s ease, transform 1.1s var(--ease); }
.motion .kin .kw { display: inline-block; overflow: hidden; vertical-align: bottom; padding: .12em .08em .24em 0; margin: -.12em -.08em -.24em 0; }   /* room for ë, descenders, the italic overhang */
.motion .kin .kw > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 70ms); }
.motion .kin.in .kw > span { transform: none; }

/* More from albanisht: Bisedo and Dokumente, one tap away */
.more { padding-block: 72px 88px; border-top: 1px solid var(--line); }
.more-grid { display: grid; gap: 16px; }
@media (min-width: 960px) { .more-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .more-grid:has(> :nth-child(3)) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }   /* three cards, no lone one */
.more-card { display: block; padding: 28px 28px 24px; border-radius: 20px; background: var(--mist); color: var(--navy); text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s ease; }
.more-card:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(11,21,48,.1); }
.more-card h3 { margin: 0 0 8px; font: 400 clamp(32px, 3vw, 44px)/1 var(--display); letter-spacing: -0.02em; }
.more-card p { margin: 0 0 18px; color: var(--navy-2); max-width: 36em; }
/* What the name means, said once (Bisedo is one name in both languages) */
.more-card .more-sub { margin: -2px 0 10px; color: var(--navy); font-weight: 600; }
.more-cta { display: inline-flex; align-items: center; min-height: 44px; font: 600 16px var(--ui); color: var(--poppy); }

/* Footer (the base markup, restyled) and the one quiet "Burimet" disclosure */
.sources { margin-top: 12px; color: var(--navy-2); }
/* styled like the footer links above it (launch audit, design M6) */
.sources summary { display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.5rem; cursor: pointer; font: 400 14px/1.4 var(--ui); color: var(--navy-2); }
.sources summary:hover { color: var(--c-primary); }
.src-grid { display: grid; gap: 24px 48px; padding: 12px 0 8px; }
@media (min-width: 960px) { .src-grid { grid-template-columns: 1fr 1fr 1fr; } .src-grid .wide { grid-column: 1 / -1; } }
.src-grid h3 { margin: 0 0 6px; font: 600 16px var(--ui); color: var(--navy); }
.src-grid p, .src-grid li { margin: 0 0 6px; line-height: 1.55; }
.src-grid ul { margin: 0; padding-left: 18px; }
.src-grid .wide ul { columns: 2 420px; column-gap: 48px; }
.src-grid a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; text-decoration: underline; text-decoration-color: rgba(11,21,48,.25); }

@media (prefers-reduced-motion: reduce) { .caption { animation: none; } .cue.on svg { animation: none; } }
