/* home: page CSS of the Home sections (loaded after the kit and chrome), ported from the prototype's page CSS.
   The brand band (.ground-brand) is in app/globals.css; the store badges and the logo size are in chrome.css. */
/* the splash (client brief, R2): the photograph full-bleed under the nav on a brand-green hero ground with the logo,
   an ink scrim weighted to the lower left, the words in paper at the lower left (Fable R2; the place hero is overridden) */
.hero--splash { background: #3b553d url("/img/logo-on-green.svg") no-repeat center / min(300px, 56vw) auto; --ink: #fdfcf8; --muted: #fdfcf8; color: #fdfcf8; overflow: clip; }
.hero--splash > .splash__img { position: absolute; z-index: 0; left: 0; top: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: var(--pos, 50% 50%); }
.hero--splash::after { content: ""; position: absolute; z-index: 0; left: 0; right: 0; bottom: 0; top: 0; pointer-events: none;
  background: linear-gradient(to top, rgb(20 23 15 / .78) 0%, rgb(20 23 15 / .42) 38%, rgb(20 23 15 / 0) 70%),
              linear-gradient(to right, rgb(20 23 15 / .45) 0%, rgb(20 23 15 / 0) 62%); }
html.sp-enter .splash__img { translate: 0 100%; }
.hero--splash > .wrap { position: relative; z-index: 1; }
.hero--splash .hero-text { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.splash__text > * + * { margin-top: var(--s-5); }
.splash__text > .btn-row { margin-top: var(--s-6); }
.hero--splash h1 { font-size: clamp(56px, 8.381vw + 23.3px, 144px); line-height: .98; letter-spacing: -0.02em; max-width: 5.4em; hyphens: manual; color: #fdfcf8; }
/* Tan Meringue: ascent 1.010 + descent 0.341 = a 1.351em content area, with the descenders of p and g at -0.32em.
   A 1.36 line box holds the whole content area, so (1) the kit's word masks (.m-w: the line box + .12em) no longer
   clip the tops of f, l and b while the lines rise, (2) nothing shows above the mask while a word waits .2em
   below it (at 1.18 the tips of f, l, b peeked 0.55px over the mask's bottom edge), and (3) the p of "pilates" clears
   the Z of "Zagrebu" (0.32 + 1.01 = 1.33 < 1.36). Filip, 22. 11. 2026: the letters overlapped and were cut at the top */
#hero-h { line-height: 1.36; }
.hero--splash .hero__lead { max-width: 34ch; color: #fdfcf8; font-size: var(--ly-lead); line-height: 1.5; }
/* the address type moment (sections.md section 4) */
.type-moment { margin: var(--s-5) 0 0; font: var(--display-weight) clamp(40px, 5.5vw, 104px)/1.02 var(--font-display); letter-spacing: -0.03em; }
/* the street is a map link: the underline draws on hover only, as text-decoration, so the line is not read as a ground */
html:not([data-motion="off"]) #visit .type-moment a { display: block; background-image: none; text-decoration: underline 2px transparent; text-underline-offset: .14em; transition: text-decoration-color var(--m-in, 150ms) var(--ease); }
html:not([data-motion="off"]) #visit .type-moment a:is(:hover, :focus-visible) { text-decoration-color: currentColor; }
@media (max-width: 639px) { .section-head--row .link { display: flex; width: 100%; } }
/* the statement moment set large (the kit's own size is the h2's; brief: big type, one idea per screen) */
#studio h2 { margin-bottom: var(--s-7); }
#studio .mo-wh__text { font-size: clamp(36px, min(5.333vw + 15.2px, 9svh, 5.6vw), 92px); line-height: 1.04; max-width: none; }
#studio.mo-wh .mo-w { color: color-mix(in oklab, #f2efe6 35%, #3b553d); }
#studio.mo-wh .mo-w.is-on, #studio h2 { color: #f2efe6; }
/* the offer's photographs (OfferPhotos.tsx): one tall (4 columns, two rows) and two small stacked beside it at 0.79,
   so the stack ends where the tall one ends. Motion, armed by the script (never under reduced motion or without
   it): on entering the viewport each frame wipes open from the bottom while its picture settles out of a zoom,
   staggered; afterwards the tall picture drifts inside its frame (28px) and the small frames drift at their own
   speeds (36px and 14px, the same way, so they never meet) with --py, the block's position against the viewport. */
.offer-pics { --py: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--gutter); align-items: start; }
.offer-pics > .pl-photo:first-child { grid-column: 1 / span 4; grid-row: 1 / span 2; }
.offer-pics > .pl-photo:not(:first-child) { grid-column: 5 / span 2; }
.offer-pics > .pl-photo { overflow: clip; }
.offer-pics > .pl-photo > img { object-fit: cover; object-position: 50% 40%; transform-origin: 50% 50%; }
.offer-pics.is-armed > .pl-photo { clip-path: inset(0 0 0 0); transition: clip-path 1.1s cubic-bezier(.16, 1, .3, 1); }
.offer-pics.is-armed > .pl-photo > img { transition: transform 1.6s cubic-bezier(.16, 1, .3, 1); }
.offer-pics.is-armed > .pl-photo:nth-child(2), .offer-pics.is-armed > .pl-photo:nth-child(2) > img { transition-delay: .15s; }
.offer-pics.is-armed > .pl-photo:nth-child(3), .offer-pics.is-armed > .pl-photo:nth-child(3) > img { transition-delay: .3s; }
.offer-pics.is-armed > .pl-photo:first-child > img { transform: translateY(calc(var(--py) * -28px)) scale(1.12); }
.offer-pics.is-armed > .pl-photo:nth-child(2) { transform: translateY(calc(var(--py) * -36px)); }
.offer-pics.is-armed > .pl-photo:nth-child(3) { transform: translateY(calc(var(--py) * -14px)); }
.offer-pics.is-armed:not(.is-in) > .pl-photo { clip-path: inset(100% 0 0 0); }
.offer-pics.is-armed:not(.is-in) > .pl-photo > img { transform: scale(1.22); }
.offer-pics.is-armed:not(.is-in) > .pl-photo:first-child > img { transform: translateY(0) scale(1.3); }
.offer-pics.is-settled > .pl-photo, .offer-pics.is-settled > .pl-photo > img { transition: none; }
.price-note { margin-top: var(--s-3); font-size: var(--t-small); color: var(--muted); }
/* the trial as the entry offer (Fable R2): the figure in Tan Meringue at display size */
@media (min-width: 1024px) { #cijene .section-head--row > p { flex: 0 0 calc(50% - var(--gutter, 24px) / 2); margin: 0; } }
.trial { display: grid; justify-items: start; }
.trial > * { margin: 0; }
.trial__name { margin-top: var(--s-3); font: 600 20px/1.3 var(--font-text); }
.trial__price { font: var(--display-weight) clamp(52px, 3.429vw + 38.6px, 88px)/1.1 var(--font-display); letter-spacing: -0.02em; margin-top: var(--s-4); }
.trial .btn-row { margin-top: var(--s-4); }
.offer-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gutter); margin-top: var(--s-6); }
#cijene .rows > li, #cijene .rows > li > p { font-size: 18px; line-height: 27px; }
@media (max-width: 639px) { .offer-groups { grid-template-columns: minmax(0, 1fr); row-gap: var(--s-6); } }
.rows > li > p.muted { color: var(--muted); }
/* the app panel beside its photograph */
.app-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--s-4); counter-reset: st; }
.app-steps li { display: grid; grid-template-columns: 40px 1fr; gap: var(--s-3); font-size: var(--t-body); line-height: 1.6; }
.app-steps li::before { counter-increment: st; content: "0" counter(st); font: var(--display-weight) 24px/1.1 var(--font-display); }
.app-qr { display: flex; gap: var(--s-4); align-items: center; font-size: var(--t-small); color: var(--muted); }
.app-qr img { width: 96px; height: 96px; }
@media (max-width: 1279px) { .app-qr { display: none; } }
@media (max-width: 639px) {
  .offer-pics { grid-template-columns: minmax(0, 1fr); row-gap: var(--s-5); margin-top: var(--s-5); }
  .app-steps { gap: var(--s-2); }
  .offer-pics > .pl-photo:first-child { grid-column: 1; }
  .offer-pics > .pl-photo:first-child > img { aspect-ratio: 4 / 3; height: auto; }
  .offer-pics > .pl-photo:not(:first-child) { display: none; }
}
@media (min-width: 640px) and (max-width: 1023px) {
  #visit .grid, #aplikacija .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #visit .grid > *, #aplikacija .grid > * { grid-column: auto; }
  #cijene .offer-pics .pl-photo > img { max-height: 420px; }
  #aplikacija .pl-photo > img { aspect-ratio: 4 / 5; height: auto; }
}

/* the close inside the footer (footer.closing.footer--visit): the close and its 4:3 photograph on row 1, the footer's
   address, contact, legal links and legal lines on row 2; the footer content keeps the spacing it has on every other
   page (its own margins, so the kit's .closing__links gap is cleared) */
#zavrsni-poziv .closing__cta { gap: 0; }
#zavrsni-poziv .closing__links { gap: 0; }
footer.closing :focus-visible { outline-color: var(--doma-on-green); }
@media (max-width: 1023px) { #zavrsni-poziv .closing__cta > .grid { row-gap: var(--s-7); } }

/* ---------------------------------------------------------------- old-site text carried over (SEO migration, 20. 11. 2026) */
/* the one line under the h1: the kicker sentence and the app download as a single link in paper (22. 11. 2026),
   19px = the old 16px link plus 20 %; the action part never breaks, so on a phone the line folds after the sentence */
.hero--splash .hero__cta-row { margin: var(--s-5) 0 0; max-width: 34em; }
.hero--splash .hero__cta { display: inline; font: 600 19px/1.45 var(--font-text); letter-spacing: .1px; color: #fdfcf8; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; text-decoration-color: color-mix(in oklab, #fdfcf8 45%, transparent); transition: text-decoration-color var(--dur, 200ms) var(--ease, ease); }
.hero--splash .hero__cta:hover, .hero--splash .hero__cta:focus-visible { text-decoration-color: #fdfcf8; }
.hero--splash .hero__cta-action { white-space: nowrap; }
.hero--splash .hero__cta-action::after { content: "\2192"; display: inline-block; margin-left: .4em; text-decoration: none; transition: transform var(--dur, 200ms) var(--ease, ease); }
@media (hover: hover) and (pointer: fine) { .hero--splash .hero__cta:hover .hero__cta-action::after { transform: translateX(4px); } }
/* Rezervacije: the help line under the steps */
.app-help { margin: 0; font-size: var(--t-body); color: var(--muted); }
@media (max-width: 639px) {
  .hero--splash .btn-row { row-gap: var(--s-2); }
}

/* ---------------------------------------------------------------- the rhythm (Fable, 22. 11. 2026)
   The Home no longer follows the kit's one-section-per-screen heights: every section and the closing footer is as
   tall as its content plus the kit's paddings (--padt / --padb + --bar), at every width. Only the hero (at least
   the first screen, growing when the words need more) and the two moments keep a relation to the viewport.
   Specificity: main.home > .section:not(.hero, #sat) is (1,2,1), over the kit's (0,1,1) / (0,2,1) at every width. */
main.home > .section:not(.hero, #sat), main.home ~ footer.closing { height: auto; min-height: 0; }
main.home > .section:not(.hero, #sat) > .wrap, main.home ~ footer.closing > .wrap { height: auto; min-height: 0; flex: none; }
/* photographs keep their ratio inside their column (no room arithmetic against the screen) */
main.home .pl-photo > img, main.home ~ footer.closing .pl-photo > img { width: 100%; height: auto; aspect-ratio: var(--pl-r, 1.3333); }
@media (min-width: 1024px) { main.home ~ footer.closing .pl-photo > img { max-height: 384px; } }

/* the hero: at least the first screen, taller when the viewport cannot hold its words; the h1 follows the height too
   (110px at 1440x770, 135 at 1440x900, 144 at 1920x1000, 56 on a phone) */
main.home > .hero--splash { height: auto; min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr); }
main.home > .hero--splash > .wrap { height: auto; }
main.home > .hero--splash .hero-text { height: auto; flex: 1 0 auto; }
/* the third term keeps the words, the lead and the buttons above the fold on a short laptop screen (1280x650,
   1536x730): three lines of 1.36 (4.08em) plus the 195px of kicker, buttons and gaps plus the paddings */
main.home > .hero--splash h1 { font-size: min(clamp(56px, 8.381vw + 23.3px, 144px), 15svh, calc((100svh - 380px) / 4.08)); }

/* the giant line: a band sized by its line (the moment's own 2.2 line-height filled a screen) */
main.home #snaga { min-height: 0; padding-block: var(--section); }
/* Tan Meringue's ascenders rise above the 1.1 line box and its baseline sits low in it: 0.3em down evens the paper
   above the capitals and under the baseline (with the neighbours' paddings) at 1440 and 390 */
main.home #snaga.is-live .gl__line { line-height: 1.1; margin-top: .3em; }

/* ---------------------------------------------------------------- the two sections from the old site
   (#o-reformeru, #pitanja): head rows with the h2 left and the line on the split line (x 732 at 1440); photographs,
   flat panels, hairlines and type carry them (no kicker, numbers, icons or shadows) */
:root .about-h3 { margin: 0; font: 600 18px/27px var(--font-text); letter-spacing: 0; color: var(--doma-ink); }
@media (min-width: 1024px) {
  /* the head row is the page's 6/6 pair: the h2 on the left half, its line from the split line */
  :is(#o-reformeru, #pitanja) .section-head--row { flex-wrap: nowrap; gap: var(--gutter, 24px); }
  :is(#o-reformeru, #pitanja) .section-head--row > :is(h2, p) { flex: 0 0 calc(50% - var(--gutter, 24px) / 2); margin: 0; }
}

/* A: Što je reformer pilates? */
#o-reformeru .section-head--row > p { font-size: 20px; line-height: 30px; }
.about-row { row-gap: var(--s-6); }
.about-photo { margin: 0; min-width: 0; }
.about-photo > img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.about-def { display: grid; gap: var(--s-4); align-content: start; }
.about-def > p { font-size: var(--t-body); line-height: 24.8px; max-width: 64ch; }
.about-def > .about-voice { font-size: 20px; line-height: 30px; color: var(--doma-ink); max-width: 40ch; }
/* row 2, 48px under row 1, opened by a hairline: "Za koga" beside the four audiences as flat panel tiles */
.about-who { margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--doma-line); }
.about-who__head { display: grid; gap: var(--s-2); align-content: start; }
.about-who__head > p { font-size: var(--t-body); line-height: 24.8px; max-width: 44ch; }
.about-tiles { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; }
.about-tiles > li { min-height: 128px; padding: var(--s-5); background: var(--doma-white); font: 600 18px/27px var(--font-text); color: var(--doma-ink); text-wrap: pretty; }
@media (min-width: 1024px) {
  /* text left, the photograph right from the split line, as on every other split of the page */
  #o-reformeru .about-def { grid-row: 1; grid-column: 1 / span 6; align-self: start; }
  #o-reformeru .about-photo { grid-row: 1; grid-column: 7 / span 6; }
  .about-def > .about-voice { font-size: 22px; line-height: 32px; }
}
@media (min-width: 640px) and (max-width: 1023px) {
  /* a tablet keeps the pair side by side: the photograph on 5 columns, the definitions on the other 7 */
  #o-reformeru .about-row:not(.about-who) { align-items: center; }
  #o-reformeru .about-def { grid-row: 1; grid-column: 1 / span 7; }
  #o-reformeru .about-photo { grid-row: 1; grid-column: 8 / span 5; }
  .about-who { row-gap: var(--s-5); }
}

/* B: Zašto odabrati nas? */
#pitanja .section-head--row { align-items: start; }
#pitanja .section-head--row > p { font-size: var(--t-body); line-height: 24.8px; max-width: 64ch; }
/* the full-bleed band: from the viewport's left edge to its right, out of the .wrap's lines */
.why-band { display: block; width: 100vw; margin: 0 calc(50% - 50vw) var(--s-7); }
.why-band > img { display: block; width: 100%; max-width: none; height: clamp(360px, 36vw, 560px); object-fit: cover; object-position: 50% 55%; }
/* the five reasons as a strip of hairline columns */
.why-strip { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-5) 24px; }
.why-strip > li { padding-top: var(--s-4); border-top: 1px solid var(--doma-line); font: 600 18px/27px var(--font-text); color: var(--doma-ink); text-wrap: pretty; }
@media (min-width: 1024px) and (max-width: 1279px) {
  .why-strip { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .why-strip > li { grid-column: span 2; }
  .why-strip > li:nth-child(n + 4) { grid-column: span 3; }
}
@media (min-width: 640px) and (max-width: 1023px) { .why-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* the FAQ: title, lead and link on span-4 beside the three questions on span-8 */
.home-faq { margin-top: var(--s-7); row-gap: var(--s-5); }
.home-faq__side { display: grid; gap: var(--s-3); align-content: start; justify-items: start; }
.home-faq__lead { font-size: var(--t-body); line-height: 24.8px; }
.home-faq__more > .link { min-height: 44px; display: inline-flex; align-items: center; }
.home-faq .pg-faq__q { min-height: 56px; padding-block: 14px; }
.home-faq .pg-faq__a { color: var(--doma-ink); }
@media (max-width: 1023px) {
  /* stacked: title, lead, the three questions, then the link */
  .home-faq { display: flex; flex-direction: column; gap: 0; }
  .home-faq__side { display: contents; }
  .home-faq__lead { margin-top: var(--s-3); }
  .home-faq__list { order: 1; margin-top: var(--s-5); }
  .home-faq__more { order: 2; margin-top: var(--s-3); }
}

/* ---------------------------------------------------------------- phones */
@media (max-width: 639px) {
  #o-reformeru .section-head--row > p { font-size: 18px; line-height: 27px; }
  .about-photo > img { aspect-ratio: 4 / 3; }
  .about-who { margin-top: var(--s-7); }
  .about-who__head { margin-bottom: var(--s-2); }
  .about-tiles { grid-template-columns: minmax(0, 1fr); }
  .about-tiles > li { min-height: 0; padding: 20px; }
  .why-band { width: auto; margin: 0 0 var(--s-6); }
  .why-band > img { height: auto; aspect-ratio: 4 / 3; }
  .why-strip { grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }
  #aplikacija .grid { row-gap: var(--s-6); }
}

/* phones: half the kit's section paddings (Filip, 22. 11. 2026: the gaps between sections were too big on mobile) */
@media (max-width: 639px) {
  main.home, main.home ~ footer.closing { --padt: 56px; --padb: 32px; }
  main.home > .section:not(.hero) { --bar: 0px; }   /* no phone action bar any more (removed 22. 11. 2026) */
}

/* ---------------------------------------------------------------- Gdje smo: the location prelude and the visit row (22. 11. 2026)
   Under the address the map stage, a frame sequence scrubbed by scroll (components/home/LocationScroll.tsx), full
   screen at every width (Filip, 22. 11. 2026): edge to edge (100vw out of the wrap; html clips the x axis) and the
   whole viewport height, under the transparent header (the logo lies over the map), the frames drawn to cover (16:9 landscape, 9:19.5 portrait on phones; the
   map's ground is the page cream, so the stage merges with the page). When live (.is-live: frames loaded, motion
   allowed) the section is 260vh (phones 250vh) and the stage sticks under the header; otherwise it is the last frame
   as an image and the section is one screen. The banner sits on the stage's lower left, at the content edge, and
   arrives from progress .86 (--loc-b, set by the script). Then the visit card beside the studio photograph. */
.loc { position: relative; margin-top: var(--s-7); width: 100vw; margin-left: calc(50% - 50vw);
  /* the marks over the map (read by the script too): the name's size, the dot, the gap dot–name, the name's paper halo,
     the distance to the stage's edge over which a name fades out, the studio mark's box (100 units: 1 unit = 1px here) */
  --mk-name: 17px; --mk-dot: 9px; --mk-gap: 10px; --mk-halo: 2px; --mk-room: 24px; --mk-studio: 100px; }
.loc.is-live { height: 260vh; }
.loc__stage { position: relative; top: 0; width: 100%; height: 100svh; }
.loc:not(.is-live) .loc__stage { top: 0; }
.loc.is-live .loc__stage { position: sticky; }
.loc__frame { position: absolute; inset: 0; overflow: clip; background: var(--doma-paper); }
.loc__frame > :is(picture, img, canvas), .loc__frame picture > img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; border-radius: 0; object-fit: cover; }
.loc__canvas { visibility: hidden; }
.loc.is-live .loc__canvas { visibility: visible; }
.loc.is-live .loc__poster { visibility: hidden; }
.loc__banner { position: absolute; left: max(24px, calc((100vw - var(--container, 1200px)) / 2)); bottom: 32px; max-width: 460px; padding: 28px 32px; background: var(--doma-white); border: 1px solid var(--doma-line); color: var(--doma-ink); }   /* the white lifted surface: the map ground is the cream now */
.loc.is-live .loc__banner { opacity: var(--loc-b, 1); transform: translateY(calc((1 - var(--loc-b, 1)) * 24px)); }
.loc.is-live:not(.is-banner) .loc__banner { visibility: hidden; }
.loc__banner > * { margin: 0; }
.loc__logo { display: block; color: var(--doma-ink); }
.loc__street { margin-top: var(--s-4) !important; font: var(--display-weight, 400) 36px/1.1 var(--font-display); letter-spacing: -0.01em; }
.loc__place { margin-top: var(--s-2) !important; font: 600 18px/1.4 var(--font-text); }
.loc__link { margin-top: var(--s-3) !important; }
.loc__link > .link { min-height: 44px; display: inline-flex; align-items: center; }
.loc__credit { margin: var(--s-2) 0 0; width: 100%; font-size: 12px; line-height: 1.4; color: var(--doma-muted); text-align: right; }
.loc__credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
/* the map data credit in the stage's corner, HTML over the frames (since 23. 11. 2026 the frames carry none: the canvas
   draws the scroll position between two frames scaled about the studio, which doubled a baked corner mark); the
   banner's corner stays free: lower right on wide screens, under the header's menu button on phones */
.loc__attrib { position: absolute; right: 10px; bottom: 8px; margin: 0; padding: 2px 6px; font: 600 12px/1.3 var(--font-text); color: var(--doma-muted); background: color-mix(in srgb, var(--doma-paper) 85%, transparent); white-space: nowrap; pointer-events: none; }
/* the landmarks and the studio's pin, HTML over the canvas (since 23. 11. 2026 the frames are the bare map): the script
   moves each mark with the map (transform, snapped to device pixels) and sets its opacity, --name-op (the name's fade
   at the stage's edge) and the pin's drop and pulse; everything else is here, one constant size */
.loc__marks { position: absolute; inset: 0; visibility: hidden; pointer-events: none; }
.loc.is-live .loc__marks { visibility: visible; }
.loc__mark { position: absolute; left: 0; top: 0; opacity: 0; will-change: transform; }
.loc__dot { position: absolute; left: calc(var(--mk-dot) / -2); top: calc(var(--mk-dot) / -2); width: var(--mk-dot); height: var(--mk-dot); border-radius: 50%; background: var(--doma-ink); box-shadow: 0 0 0 2px var(--doma-paper); }
.loc__name { position: absolute; top: calc(var(--dy, 0) * var(--mk-name) / 17); transform: translateY(-50%); white-space: nowrap; font: 600 var(--mk-name)/1.2 var(--font-text); color: var(--doma-ink); opacity: var(--name-op, 1);
  text-shadow: var(--mk-halo) 0 0 var(--doma-paper), calc(-1 * var(--mk-halo)) 0 0 var(--doma-paper), 0 var(--mk-halo) 0 var(--doma-paper), 0 calc(-1 * var(--mk-halo)) 0 var(--doma-paper), var(--mk-halo) var(--mk-halo) 0 var(--doma-paper), calc(-1 * var(--mk-halo)) var(--mk-halo) 0 var(--doma-paper), var(--mk-halo) calc(-1 * var(--mk-halo)) 0 var(--doma-paper), calc(-1 * var(--mk-halo)) calc(-1 * var(--mk-halo)) 0 var(--doma-paper), 0 0 calc(2 * var(--mk-halo)) var(--doma-paper); }
.loc__mark[data-side="right"] .loc__name { left: calc(var(--mk-dot) / 2 + var(--mk-gap)); }
.loc__mark[data-side="left"] .loc__name { right: calc(var(--mk-dot) / 2 + var(--mk-gap)); }
.loc__studio { position: absolute; left: calc(var(--mk-studio) / -2); top: calc(var(--mk-studio) / -2); width: var(--mk-studio); height: var(--mk-studio); overflow: visible; will-change: transform; }
.loc__pin { fill: var(--p-accent); stroke: var(--doma-ink); stroke-width: 3; }
.loc__pulse { fill: none; stroke: var(--p-accent); stroke-width: 3; }
@media (max-width: 639px) {
  /* phones: the portrait frames; the banner lies over the stage's lower part */
  .loc.is-live { height: 250vh; }
  .loc { --mk-name: 14px; --mk-dot: 7px; --mk-gap: 7px; --mk-halo: 1.5px; --mk-room: 14px; --mk-studio: 76px; }   /* what the portrait frames showed at 390px */
  .loc__attrib { right: 8px; bottom: auto; top: calc(var(--hdr-h) + 8px); font-size: 11px; }
  .loc__banner { left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); max-width: none; padding: 20px; }
  .loc__logo { width: 72px; height: auto; }
  .loc__street { font-size: 30px; }
  .loc__credit { width: 100%; }
}

/* ---------------------------------------------------------------- Treninge kupuješ i rezerviraš: the app screens scrubbed by scroll (22. 11. 2026)
   Under the heading and the store badges a stage that fills the screen below the header (100vw out of the wrap,
   100svh minus --scr-top, the header's height plus 8px: Filip, 23. 11. 2026, the screens must not run under the logo
   and the menu button) carries a line of floating app screens (the client's iPhone screenshots, no device frame, corners rounded
   like the display, a slight 3D tilt) on two lines: the odd ones hang from --scr-lift under the top edge, the even
   ones stand --scr-lift above the foot, whole (Filip: never crop a screen), bunched so that neighbours overlap by
   --scr-lap (the left one on top: its tilted near edge is the right one). When live (JS, motion allowed;
   components/home/ScreensScroll.tsx) the section is one screen plus the track's overrun (--scr-dist, measured) and
   the stage sticks while the scroll moves the track left one pixel for one pixel (--scr-x); otherwise the track is
   a plain horizontal scroller inside a one-screen stage. --scr-h is a screen's height, its width follows the
   1170:2532 ratio; --scr-edge is the page's content edge. The section's own top padding is small: the map credit
   above already stands off the stage (Filip: the gap over the heading was too big). */
#aplikacija-ekrani { --padt: 24px; }
#aplikacija-ekrani h2 { hyphens: manual; }   /* three short lines on a phone, no "rezer-viraš" */
#aplikacija-ekrani .scr__badges { margin-top: var(--s-5); }
#aplikacija-ekrani .scr__badges a { height: 44px; }
#aplikacija-ekrani .scr__badges img { height: 44px; }
.scr { --scr-top: calc(var(--hdr-h, 72px) + 8px); --scr-h: clamp(380px, 64svh, 620px); --scr-w: calc(var(--scr-h) * 0.4621); --scr-lap: 28px; --scr-lift: 8svh; --scr-edge: max(var(--hdr-gut, 24px), calc((100vw - var(--container, 1200px)) / 2));
  --scr-tilt: perspective(1000px) rotateX(4deg) rotateY(-14deg);
  position: relative; margin-top: var(--s-7); width: 100vw; margin-left: calc(50% - 50vw); }
.scr.is-live { height: calc(100svh - var(--scr-top) + var(--scr-dist, 0px)); }
.scr__stage { position: relative; width: 100%; height: calc(100svh - var(--scr-top)); overflow: clip; }
.scr.is-live .scr__stage { position: sticky; top: var(--scr-top); }
.scr__track { display: flex; align-items: flex-start; height: 100%; margin: 0; padding: 0 var(--scr-edge); list-style: none; }
.scr:not(.is-live) .scr__track { width: 100%; box-sizing: border-box; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding-inline: var(--scr-edge); }   /* the snap keeps the content edge (without it the scroller opened snapped to the first screen) */
.scr.is-live .scr__track { position: absolute; top: 0; left: 0; transform: translate3d(calc(-1 * var(--scr-x, 0px)), 0, 0); will-change: transform; }   /* absolute: shrink-to-fit, so its width is the whole line with both edges */
.scr__item { position: relative; z-index: calc(40 - var(--i, 0)); flex: none; width: var(--scr-w); height: var(--scr-h); border-radius: calc(var(--scr-w) * 0.12); overflow: clip; background: var(--doma-white);
  box-shadow: 0 0 0 1px var(--doma-line), 0 40px 72px -36px color-mix(in srgb, var(--doma-ink) 45%, transparent); transform: var(--scr-tilt); scroll-snap-align: start; }
.scr__item + .scr__item { margin-left: calc(-1 * var(--scr-lap)); }
.scr__item--up { margin-top: var(--scr-lift); }
.scr__item--down { align-self: flex-end; margin-bottom: var(--scr-lift); }
.scr__item img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; border-radius: 0; }
/* the entrance: the screens slide in from above and below, the ones in view a beat apart */
.scr.is-live .scr__item { transition: transform .9s cubic-bezier(.2, .7, .2, 1), opacity .9s ease; transition-delay: calc(var(--i, 0) * 70ms); }
.scr.is-live:not(.is-in) .scr__item--up { transform: translateY(-56px) var(--scr-tilt); opacity: 0; }
.scr.is-live:not(.is-in) .scr__item--down { transform: translateY(56px) var(--scr-tilt); opacity: 0; }
@media (max-width: 639px) {
  /* phones: smaller screens, a tighter overlap; two or three in view at the start */
  .scr { --scr-h: clamp(320px, 46svh, 440px); --scr-lap: 22px; --scr-lift: 7svh; --scr-edge: 16px; }
}

/* ---------------------------------------------------------------- Tko te vodi (Filip, 22. 11. 2026): one portrait, a list
   The founder's portrait on the left (4:5; five of the twelve columns, the whole width on a phone) with her name and
   role under it, and the instructors on the right as an index in the display face, the rows marked in turn with a
   reformer spring and a small hand weight (Filip: no numbers, icons that make sense) in the muted ink, sized from the name.
   From 640px the index sits in the portrait's row (from the sixth column on a tablet, from the seventh from 1024, so
   the longest name holds one line) and its rows share the portrait's height: the last rule closes on the
   photograph's lower edge. The figure is display: contents: the photograph and the caption are grid items of
   their own (the kit's .grid > * placement does not reach them, so they are placed here). */
.tim { --tim-name: 24px; --tim-mark: clamp(40px, 7vw, 100px); row-gap: var(--s-4); }   /* the names 22 at 640, 31 at 1024, 40 at 1440: the longest holds one line beside the five-column portrait */
.tim__portrait { display: contents; }
.tim__img { grid-column: 1 / -1; display: block; width: 100%; aspect-ratio: 4 / 5; height: auto; object-fit: cover; object-position: 50% 30%; border-radius: var(--r-lg); }
.tim__founder { grid-column: 1 / -1; display: grid; gap: var(--s-1); }
.tim__name { font: var(--display-weight) var(--tim-name)/1.1 var(--font-display); letter-spacing: var(--display-tracking); }
.tim__role { font-size: var(--t-small); line-height: 1.4; color: var(--muted); }
.tim__index { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.tim__label { margin: 0; font: 600 20px/1.3 var(--font-text); color: var(--ink); }   /* the trial name's size (Filip: bigger than a label) */
.tim__list { list-style: none; margin: var(--s-4) 0 0; padding: 0; display: grid; grid-auto-rows: minmax(0, 1fr); }
.tim__list > li { display: grid; grid-template-columns: var(--tim-mark) minmax(0, 1fr); align-items: center; align-content: center; padding-block: var(--s-4); border-bottom: 1px solid var(--line); }
.tim__icon { display: block; width: clamp(26px, calc(var(--tim-name) * 1.1), 44px); height: auto; color: var(--muted); }   /* 44 x 22 beside a 40px name, 26 x 13 on a phone */
@media (max-width: 639px) { .tim__index { margin-top: var(--s-6); } .tim__label { font-size: 18px; } }
@media (min-width: 640px) {
  .tim { --tim-name: clamp(22px, 2.25vw + 7.6px, 40px); }
  .tim__img { grid-column: 1 / span 5; grid-row: 1; }
  .tim__founder { grid-column: 1 / span 5; grid-row: 2; }
  .tim__index { grid-column: 6 / -1; grid-row: 1; }
}
@media (min-width: 1024px) { .tim__index { grid-column: 7 / -1; } }
