/* Ezencia Google landing page (/google/), on top of the Zen layer (tokens.css + zen.css).
   The story is a pinned stage, the way Google Maps works: a search → the map, pins falling →
   the profile opens → photos and reels → the route ends at a door.
   Map and profile are drawn here (SVG + CSS); no map service, no Google logos.
   Steps are driven by the same reading-line logic as /fokus/; the stage only moves with transform,
   opacity and stroke offsets, and nothing is tied to the scroll position itself (iOS, PR #57). */

.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- hero ---------- */
.gm-hero h1 { max-width: 15ch; }
.gm-hero-fine { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--ez-line); max-width: 46ch; }
.gm-hero-wrap .hero-stones .engraved { font-size: clamp(20px, 2.4vw, 34px); }
@media (max-width: 1099px) { .gm-hero-wrap .hero-stones .engraved { font-size: 22px; } }

/* ---------- the story: a pinned stage, steps passing over it ---------- */
.gm-story { position: relative; width: min(calc(100% - 2 * var(--ez-gutter)), var(--max)); margin-left: auto; margin-right: auto; }
.gm-stage { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  gap: 14px; padding-top: 14px; pointer-events: none; }
.gm-steps { position: relative; z-index: 1; margin-top: -100vh; margin-top: -100svh; }
.gm-step { min-height: 98vh; min-height: 98svh; display: flex; align-items: flex-end; padding-bottom: 5svh; }
.gm-step:first-child { min-height: 100vh; min-height: 100svh; }
.gm-bed { width: 100%; padding: 22px 22px 24px; border-radius: var(--ez-r-bed-l); position: relative; background: var(--ez-ground);
  box-shadow: 0 0 0 1px var(--ez-line-strong), 0 0 0 7px var(--ez-ground), 0 0 0 8px var(--ez-line); }
@media (max-width: 999px) {
  .gm-story .gm-bed { transition: opacity 500ms var(--ez-ease-out), transform 700ms var(--ez-ease-out); }
  .gm-story .gm-bed.read { opacity: 0; transform: translateY(-14px); }
}
.gm-bed h3 { font-family: var(--mincho); font-weight: 700; font-size: clamp(1.45rem, 2.4vw, 2.1rem); line-height: 1.12; letter-spacing: -.012em; margin: 0; max-width: 20ch; text-wrap: balance; }
.gm-bed p { margin: 10px 0 0; color: var(--ez-ink-2); max-width: 40em; }

/* the trail: five stops of the journey, pinned above the phone */
.gm-pin { position: sticky; top: 14px; height: 0; z-index: 3; display: flex; justify-content: center; align-items: flex-start; pointer-events: none; transition: opacity 600ms var(--ez-ease-out); }
.gm-story[data-s="0"] .gm-pin, .gm-story.ending .gm-pin { opacity: 0; }
.gm-pin + .gm-stage { padding-top: 76px; }
.gm-pin .tag { position: absolute; top: -9px; left: calc(50% + 96px); padding: 1px 8px; font-size: .74rem; font-weight: 500; color: var(--ez-ink-2); background: var(--ez-ground);
  border: 1px solid var(--ez-line-strong); border-radius: var(--ez-r-action); white-space: nowrap; }
.gm-trail { list-style: none; margin: 0; display: flex; gap: 2px; padding: 9px 12px 8px; background: var(--ez-ground); border-radius: var(--ez-r-bed-s);
  box-shadow: 0 0 0 1px var(--ez-line-strong), 0 0 0 6px var(--ez-ground), 0 0 0 7px var(--ez-line); }
.gm-trail li { position: relative; display: grid; justify-items: center; gap: 5px; min-width: 52px; padding: 0 2px; font-size: .74rem; font-weight: 500; color: var(--ez-ink-3); white-space: nowrap;
  transition: color var(--ez-dur-base) var(--ez-ease-out); }
.gm-trail li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--ez-line-strong); background: var(--ez-ground);
  transition: background var(--ez-dur-base) var(--ez-ease-out), border-color var(--ez-dur-base) var(--ez-ease-out), transform var(--ez-dur-base) var(--ez-ease-out); }
.gm-trail li + li::after { content: ""; position: absolute; top: 5px; right: calc(50% + 9px); width: calc(100% - 16px); height: 1.5px; background: var(--ez-line);
  background-image: linear-gradient(var(--ez-accent), var(--ez-accent)); background-repeat: no-repeat; background-size: 0 100%; transition: background-size 700ms var(--ez-ease-out); }
.gm-story[data-s="1"] .gm-trail li:nth-child(-n+1), .gm-story[data-s="2"] .gm-trail li:nth-child(-n+2), .gm-story[data-s="3"] .gm-trail li:nth-child(-n+3),
.gm-story[data-s="4"] .gm-trail li:nth-child(-n+4), .gm-story[data-s="5"] .gm-trail li { color: var(--ez-ink); }
.gm-story[data-s="1"] .gm-trail li:nth-child(-n+1)::before, .gm-story[data-s="2"] .gm-trail li:nth-child(-n+2)::before, .gm-story[data-s="3"] .gm-trail li:nth-child(-n+3)::before,
.gm-story[data-s="4"] .gm-trail li:nth-child(-n+4)::before, .gm-story[data-s="5"] .gm-trail li::before { background: var(--ez-accent); border-color: var(--ez-accent); }
.gm-story[data-s="2"] .gm-trail li:nth-child(-n+2)::after, .gm-story[data-s="3"] .gm-trail li:nth-child(-n+3)::after,
.gm-story[data-s="4"] .gm-trail li:nth-child(-n+4)::after, .gm-story[data-s="5"] .gm-trail li::after { background-size: 100% 100%; }
.gm-story[data-s="1"] .gm-trail li:nth-child(1)::before, .gm-story[data-s="2"] .gm-trail li:nth-child(2)::before, .gm-story[data-s="3"] .gm-trail li:nth-child(3)::before,
.gm-story[data-s="4"] .gm-trail li:nth-child(4)::before, .gm-story[data-s="5"] .gm-trail li:nth-child(5)::before { transform: scale(1.35); }

/* the phone action bed steps aside while the story runs */
html.gm-in-story .sticky.show { transform: translateY(calc(100% + 24px)); }

/* ---------- the device: one phone, cut from basalt (as on /fokus/) ---------- */
.gm-device { --pw: min(236px, calc((100svh - 110px) * .485)); position: relative; width: var(--pw); }
.phone { position: relative; aspect-ratio: 300 / 618; border-radius: calc(var(--pw) * .13); padding: calc(var(--pw) * .045);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E"), radial-gradient(120% 90% at 30% 18%, var(--ez-stone-hi), var(--ez-stone) 46%, var(--ez-stone-lo) 82%);
  background-blend-mode: soft-light, normal;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ez-stone-rim) 85%, transparent), 0 0 0 1px var(--ez-line-strong), var(--ez-shadow-action), 0 30px 60px -40px rgba(0,0,0,.55); }
.screen { position: relative; height: 100%; border-radius: calc(var(--pw) * .095); overflow: hidden; background: var(--ez-ground); color: var(--ez-ink); container-type: inline-size;
  font-size: 4.6cqw; line-height: 1.35; }
.screen svg { display: block; }

/* the map */
.map { position: absolute; inset: 0; transform-origin: 61% 59%; transition: opacity 700ms var(--ez-ease-out), transform 1100ms var(--ez-ease-out); }
.map-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.m-ground { fill: var(--ez-ground-sunk); }
.m-sea { fill: color-mix(in srgb, var(--ez-ink) 13%, var(--ez-ground-sunk)); }
.m-waves path { fill: none; stroke: var(--ez-ground-lit); stroke-width: 1.4; stroke-linecap: round; opacity: .7; }
.m-park { fill: color-mix(in srgb, var(--ez-accent) 22%, var(--ez-ground-sunk)); }
.m-blocks rect { fill: color-mix(in srgb, var(--ez-ink) 6%, var(--ez-ground-sunk)); }
.m-streets path { fill: none; stroke: var(--ez-ground-lit); stroke-width: 9; stroke-linecap: round; }
.m-streets .m-ave { stroke-width: 13; }
[data-theme="anthracite"] .m-streets path { stroke: color-mix(in srgb, var(--ez-ink) 16%, var(--ez-ground-sunk)); }
.route { fill: none; stroke: var(--ez-accent); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1600ms var(--ez-ease-inout) 200ms; }

.mpin { position: absolute; width: 8cqw; color: var(--ez-ink-3); transform: translate(-50%, -100%); transform-origin: 50% 100%;
  transition: transform 900ms var(--ez-ease-out), opacity 500ms var(--ez-ease-out); filter: drop-shadow(0 1.4cqw 1.2cqw rgba(0,0,0,.25)); }
.mpin svg { width: 100%; aspect-ratio: 24 / 32; height: auto; }
.mpin.p1 { left: 21%; top: 20%; } .mpin.p2 { left: 82%; top: 17%; } .mpin.p3 { left: 54%; top: 41.7%; }
.mpin.p4 { left: 21%; top: 53%; } .mpin.p5 { left: 32%; top: 72%; }
.mpin.me { left: 61.4%; top: 58.7%; width: 11cqw; color: var(--ez-ink); --pin-dot: var(--ez-accent); z-index: 2; }
.mpin.me b { position: absolute; left: 50%; bottom: calc(100% + 1.6cqw); translate: -50% 0; padding: .3em .7em; font-size: 3.6cqw; font-weight: 700; white-space: nowrap;
  background: var(--ez-ground); color: var(--ez-ink); border-radius: 1.4cqw; box-shadow: 0 0 0 1px var(--ez-line-strong), 0 1.6cqw 3cqw -2cqw rgba(0,0,0,.4);
  transition: opacity 500ms var(--ez-ease-out) 300ms; }
.p2 { transition-delay: 90ms; } .p3 { transition-delay: 160ms; } .p4 { transition-delay: 230ms; } .p5 { transition-delay: 300ms; } .mpin.me { transition-delay: 420ms; }
.you-dot { position: absolute; left: 17.1%; top: 83%; width: 4.6cqw; height: 4.6cqw; translate: -50% -50%; border-radius: 50%; background: var(--ez-accent);
  box-shadow: 0 0 0 1.2cqw var(--ez-ground); transition: opacity 500ms var(--ez-ease-out); }
.you-dot i { position: absolute; inset: 0; border-radius: 50%; background: var(--ez-accent); opacity: .5; }

/* the search field */
.sbar { position: absolute; left: 5.5cqw; right: 5.5cqw; top: 9cqw; z-index: 4; display: flex; align-items: center; gap: 2.6cqw; height: 13cqw; padding: 0 4cqw;
  background: var(--ez-ground); border-radius: 2.4cqw; box-shadow: 0 0 0 1px var(--ez-line-strong), 0 2cqw 5cqw -3cqw rgba(0,0,0,.45); }
.sbar .si { width: 5.6cqw; height: 5.6cqw; flex: none; color: var(--ez-ink-2); }
.sbar .q { font-size: 4.6cqw; font-weight: 500; white-space: nowrap; overflow: hidden; }
.sbar .caret { width: 1.5px; height: 5.4cqw; margin-left: -1.6cqw; background: var(--ez-accent); animation: gm-caret 1s steps(1) infinite; }
@keyframes gm-caret { 50% { opacity: 0; } }
.gm-story[data-s="2"] .caret, .gm-story[data-s="3"] .caret, .gm-story[data-s="4"] .caret, .gm-story[data-s="5"] .caret { opacity: 0; animation: none; }

.sugg { position: absolute; left: 0; right: 0; top: 25cqw; bottom: 0; padding: 0 5.5cqw; transition: opacity 500ms var(--ez-ease-out), transform 700ms var(--ez-ease-out); }
.filters { margin: 0 0 5cqw; display: flex; gap: 2cqw; flex-wrap: wrap; }
.filters span { padding: .35em .9em; font-size: 3.5cqw; font-weight: 500; color: var(--ez-ink-2); border: 1px solid var(--ez-line-strong); border-radius: 1.4cqw; }
.sugg ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 5.4cqw; }
.sugg li { display: flex; align-items: center; gap: 3.4cqw; color: var(--ez-ink-3); transition: opacity 500ms var(--ez-ease-out), transform 700ms var(--ez-ease-out); }
.sugg li svg { width: 4.6cqw; height: 4.6cqw; flex: none; }
.sugg li i { height: 2.4cqw; border-radius: 1.2cqw; background: var(--ez-line); width: 62%; }
.sugg li:nth-child(2) i { width: 48%; } .sugg li:nth-child(3) i { width: 70%; }
.sugg li:nth-child(2) { transition-delay: 80ms; } .sugg li:nth-child(3) { transition-delay: 160ms; }

/* the profile sheet */
.sheet { position: absolute; left: 0; right: 0; bottom: 0; height: 86%; z-index: 5; overflow: hidden; background: var(--ez-ground);
  border-radius: 6cqw 6cqw 0 0; box-shadow: 0 -0.5px 0 var(--ez-line-strong), 0 -4cqw 8cqw -6cqw rgba(0,0,0,.45);
  transform: translateY(102%); transition: transform 900ms var(--ez-ease-out); }
.grab { display: block; width: 11cqw; height: 1.3cqw; margin: 2.6cqw auto 0; border-radius: 1cqw; background: var(--ez-line-strong); }
.sheet-in { padding: 3.4cqw 5.5cqw 6cqw; display: grid; gap: 2.8cqw; transition: transform 900ms var(--ez-ease-out); }
.sheet-in > * { margin: 0; transition: opacity 600ms var(--ez-ease-out), transform 800ms var(--ez-ease-out); }
.ph-strip { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 1.2cqw; height: 30cqw; border-radius: 2.6cqw; overflow: hidden; }
.ph-strip img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1200ms var(--ez-ease-out); }
.f-name { display: flex; justify-content: space-between; align-items: baseline; gap: 2cqw; }
.f-name > span { font-family: var(--mincho); font-weight: 700; font-size: 6.6cqw; line-height: 1.1; }
.f-name em, .f-review::after { font-style: normal; font-size: 3.2cqw; padding: .2em .6em; border: 1px solid var(--ez-line-strong); border-radius: 1.2cqw; color: var(--ez-ink-2); white-space: nowrap; }
.f-rate { display: flex; align-items: center; gap: 2cqw; font-size: 3.6cqw; color: var(--ez-ink-2); }
.rstars { display: inline-flex; gap: .5cqw; }
.rstars svg { width: 4.2cqw; height: 4.2cqw; fill: var(--ez-line-strong); transition: fill 400ms var(--ez-ease-out), transform 600ms var(--ez-ease-out); }
.rstars svg:nth-child(2) { transition-delay: 90ms; } .rstars svg:nth-child(3) { transition-delay: 180ms; } .rstars svg:nth-child(4) { transition-delay: 270ms; } .rstars svg:nth-child(5) { transition-delay: 360ms; }
.f-cat { font-size: 3.6cqw; color: var(--ez-ink-3); margin-top: -1.6cqw !important; }
.f-open { display: flex; align-items: center; gap: 1.8cqw; font-size: 3.6cqw; color: var(--ez-ink-2); }
.f-open svg { width: 4cqw; height: 4cqw; color: var(--ez-accent-ink); }
.f-open b { color: var(--ez-accent-ink); font-weight: 700; }
.f-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4cqw; }
.f-btns .b { display: flex; align-items: center; justify-content: center; gap: 1.6cqw; height: 10cqw; font-size: 3.6cqw; font-weight: 700; border-radius: 1.6cqw; white-space: nowrap;
  transition: transform 500ms var(--ez-ease-out), box-shadow 500ms var(--ez-ease-out); }
.f-btns .b svg { width: 4.2cqw; height: 4.2cqw; flex: none; }
.f-btns .go { background: var(--ez-ink); color: var(--ez-on-ink); }
.f-btns .call { box-shadow: inset 0 0 0 1px var(--ez-line-strong); color: var(--ez-ink); }
.f-sec { font-family: var(--mincho); font-weight: 700; font-size: 4.6cqw; padding-top: 2.4cqw; border-top: 1px solid var(--ez-line); }
.f-media { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 1.6cqw; align-items: start; }
.f-media > img, .reel { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2cqw; }
.reel { position: relative; overflow: hidden; }
.reel img { width: 100%; height: 100%; object-fit: cover; display: block; transform-origin: 40% 40%; }
.reel .pl { position: absolute; left: 50%; top: 46%; width: 8cqw; height: 8cqw; translate: -50% -50%; color: #fff; filter: drop-shadow(0 .6cqw 1.4cqw rgba(0,0,0,.5)); }
.reel small { position: absolute; left: 2cqw; top: 1.6cqw; font-size: 3cqw; font-weight: 700; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.rp { position: absolute; left: 2cqw; right: 2cqw; bottom: 2cqw; height: .9cqw; border-radius: 1cqw; background: rgba(255,255,255,.4); overflow: hidden; }
.rp i { display: block; height: 100%; background: #fff; transform: scaleX(0); transform-origin: left; }
.f-review { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 2.6cqw; row-gap: 2cqw; }
.f-review .av { grid-row: span 2; width: 8.6cqw; height: 8.6cqw; border-radius: 50%; background: var(--ez-ground-sunk); box-shadow: inset 0 0 0 1px var(--ez-line); }
.f-review .ln { grid-column: 1 / -1; height: 2.2cqw; border-radius: 1.1cqw; background: var(--ez-line); }
.f-review .ln.s { width: 64%; }
.rstars.s-sm svg { width: 3.4cqw; height: 3.4cqw; }

/* arrival: a door at the end of the route */
.arrive { position: absolute; left: 5.5cqw; right: 5.5cqw; bottom: 6cqw; z-index: 6; display: flex; align-items: center; gap: 4cqw; padding: 4.4cqw 5cqw;
  background: var(--ez-ink); color: var(--ez-on-ink); border-radius: 3cqw; box-shadow: 0 3cqw 6cqw -4cqw rgba(0,0,0,.6);
  transform: translateY(calc(100% + 8cqw)); transition: transform 900ms var(--ez-ease-out) 900ms; }
.arrive p { margin: 0; display: grid; gap: .4cqw; }
.arrive b { font-family: var(--mincho); font-weight: 700; font-size: 5.6cqw; line-height: 1.1; }
.arrive span { font-size: 3.5cqw; color: color-mix(in srgb, var(--ez-on-ink) 78%, transparent); }
.gdoor { position: relative; flex: none; width: 11cqw; height: 15cqw; border: .9cqw solid currentColor; border-bottom: 0; border-radius: 5.5cqw 5.5cqw 0 0; perspective: 40cqw;
  background: linear-gradient(color-mix(in srgb, var(--ez-accent-soft) 85%, transparent), var(--ez-accent-soft)); }
.gdoor .leaf { position: absolute; inset: 0; border-radius: 4.6cqw 4.6cqw 0 0; background: color-mix(in srgb, var(--ez-on-ink) 55%, var(--ez-ink)); transform-origin: left center;
  transition: transform 1300ms var(--ez-ease-out) 1500ms; }
.gdoor .leaf::after { content: ""; position: absolute; right: 1.6cqw; top: 55%; width: 1.4cqw; height: 1.4cqw; border-radius: 50%; background: var(--ez-ink); }

/* ---------- states (only with JS; without it the finished profile simply stands) ---------- */
html.js .gm-story .map { opacity: 0; transform: translateY(4cqw); }
html.js .gm-story .mpin { opacity: 0; transform: translate(-50%, -100%) translateY(-60cqw); }
html.js .gm-story .mpin.me b { opacity: 0; }
html.js .gm-story .you-dot { opacity: 0; }

.gm-story[data-s="0"] .sugg li, .gm-story[data-s="0"] .filters { opacity: .0; transform: translateY(3cqw); }
.gm-story[data-s="2"] .sugg, .gm-story[data-s="3"] .sugg, .gm-story[data-s="4"] .sugg, .gm-story[data-s="5"] .sugg { opacity: 0; transform: translateY(6cqw); }

html.js .gm-story:is([data-s="2"], [data-s="3"], [data-s="4"], [data-s="5"]) .map { opacity: 1; transform: none; }
html.js .gm-story:is([data-s="2"], [data-s="3"], [data-s="4"], [data-s="5"]) .mpin { opacity: 1; transform: translate(-50%, -100%); }
html.js .gm-story:is([data-s="2"], [data-s="5"]) .mpin.me b { opacity: 1; }

/* 3 · the pin is chosen: it lifts, the others step back, the map slides up for the sheet */
html.js .gm-story:is([data-s="3"], [data-s="4"]) .map { transform: translateY(-36%) scale(1.12); }
html.js .gm-story:is([data-s="3"], [data-s="4"]) .mpin.me { transform: translate(-50%, -100%) scale(1.3); transition-delay: 0ms; }
html.js .gm-story:is([data-s="3"], [data-s="4"]) .mpin:not(.me) { opacity: .4; transition-delay: 0ms; }
.gm-story[data-s="3"] .sheet { transform: translateY(30%); }
.gm-story[data-s="4"] .sheet { transform: translateY(4%); }
.gm-story[data-s="4"] .sheet-in { transform: translateY(-52cqw); }

/* the profile builds itself, station by station */
.sheet-in > :nth-child(2) { transition-delay: 140ms; } .sheet-in > :nth-child(3) { transition-delay: 240ms; } .sheet-in > :nth-child(4) { transition-delay: 320ms; }
.sheet-in > :nth-child(5) { transition-delay: 400ms; } .sheet-in > :nth-child(6) { transition-delay: 520ms; }
.gm-story:is([data-s="0"], [data-s="1"], [data-s="2"], [data-s="5"]) .sheet-in > * { opacity: 0; transform: translateY(4cqw); transition-delay: 0ms; }
.gm-story:is([data-s="3"], [data-s="4"]) .rstars svg { fill: var(--ez-ink); }
.gm-story:is([data-s="0"], [data-s="1"], [data-s="2"]) .ph-strip img { transform: scale(1.12); }
.gm-story[data-s="3"] .f-btns .go { box-shadow: 0 0 0 1.2cqw color-mix(in srgb, var(--ez-accent) 35%, transparent); }

/* 4 · photos and the reel come alive */
.gm-story[data-s="4"] .reel img { animation: gm-kb 7s var(--ez-ease-inout) infinite alternate; }
.gm-story[data-s="4"] .rp i { animation: gm-reel 6s linear infinite; }
@keyframes gm-kb { from { transform: scale(1); } to { transform: scale(1.14) translate(-3%, 2%); } }
@keyframes gm-reel { to { transform: none; } }

/* 5 · the route draws to the door */
.gm-story[data-s="5"] .route { stroke-dashoffset: 0; }
html.js .gm-story[data-s="5"] .you-dot { opacity: 1; }
.gm-story[data-s="5"] .you-dot i { animation: gm-ping 2.4s var(--ez-ease-out) infinite; }
@keyframes gm-ping { from { transform: scale(1); opacity: .5; } to { transform: scale(3.4); opacity: 0; } }
.gm-story[data-s="5"] .sbar { opacity: 0; transform: translateY(-4cqw); }
.sbar { transition: opacity 500ms var(--ez-ease-out), transform 700ms var(--ez-ease-out); }
.gm-story[data-s="5"] .arrive { transform: none; }
.gm-story[data-s="5"] .gdoor .leaf { transform: rotateY(-68deg); }
html.js .gm-story[data-s="5"] .mpin:not(.me) { opacity: .35; }

/* phones: at the last step the phone stays; the beds dissolve as on /fokus/ */

/* ---------- what I do ---------- */
.gm-do h2, .gm-offer h2 { font-family: var(--mincho); font-weight: 700; font-size: var(--ez-fs-h2); line-height: 1.08; letter-spacing: -.02em; margin: 0; max-width: 20ch; }
.gm-do h2 .soft { display: block; font-weight: 400; color: var(--ez-ink-2); }
.gm-do-grid { margin-top: clamp(28px, 4vw, 52px); display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
.gm-photos { position: relative; display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: auto auto; gap: 12px; }
.gm-photos .ph { margin: 0; border-radius: var(--ez-r-photo); overflow: hidden; background: var(--ez-ground-sunk); box-shadow: var(--ez-shadow-action); }
.gm-photos .ph img { display: block; width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.gm-photos .a { grid-row: span 2; }
.gm-photos .b, .gm-photos .c { width: 88%; }
.gm-photos .c { justify-self: end; }
/* the photos develop like prints in the tray: a clip opens upwards, the image settles */
html.js .gm-photos[data-reveal] .ph { clip-path: inset(100% 0 0 0 round var(--ez-r-photo)); transition: clip-path 1200ms var(--ez-ease-out); }
html.js .gm-photos[data-reveal] .ph img { transform: scale(1.16); transition: transform 1600ms var(--ez-ease-out); }
html.js .gm-photos.in .ph { clip-path: inset(0 0 0 0 round var(--ez-r-photo)); }
html.js .gm-photos.in .ph img { transform: none; }
.gm-photos .b, .gm-photos .b img { transition-delay: 160ms !important; } .gm-photos .c, .gm-photos .c img { transition-delay: 320ms !important; }

.gm-rows { list-style: none; margin: 0; padding: 0; display: grid; }
.gm-rows li { display: grid; gap: 4px; padding: 16px 0; border-top: 1px solid var(--ez-line); }
.gm-rows li:last-child { border-bottom: 1px solid var(--ez-line); }
.gm-rows b { font-family: var(--mincho); font-weight: 700; font-size: clamp(1.2rem, 1.7vw, 1.45rem); line-height: 1.2; }
.gm-rows span { color: var(--ez-ink-2); max-width: 46ch; }
.gm-path { counter-reset: p; }
.gm-path li { counter-increment: p; grid-template-columns: 2.2rem 1fr; column-gap: 12px; }
.gm-path li::before { content: counter(p); grid-row: 1 / span 2; font-family: var(--mincho); font-size: 1.6rem; line-height: 1.1; color: var(--ez-ink-3); font-variant-numeric: tabular-nums; }
.gm-do .you { margin-top: 22px; font-family: var(--mincho); font-weight: 700; font-size: var(--ez-fs-lede); color: var(--ez-ink); }
.gm-cap { margin-top: 10px; color: var(--ez-ink-3); }

/* ---------- the offer ---------- */
.gm-offer .rows { margin-top: clamp(24px, 3vw, 40px); }
.gm-offer .row .acts { grid-column: 1 / -1; margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px 26px; }
.gm-offer .row .acts .go { margin-top: 0; display: inline-flex; align-items: center; gap: 8px; }
.gm-offer .row .acts .go svg { width: 18px; height: 18px; }
.gm-sub { margin: clamp(30px, 4vw, 48px) 0 0; font-family: var(--mincho); font-weight: 700; font-size: clamp(1.25rem, 1.9vw, 1.6rem); }
.gm-offer .pieces { margin-top: 14px; }
.gm-ticks { margin-top: clamp(26px, 3.4vw, 40px); }
.gm-ticks li { grid-template-columns: 22px 1fr; align-items: baseline; gap: 12px; }
.gm-ticks li::before { content: ""; width: 14px; height: 8px; border-left: 2px solid var(--ez-ink-3); border-bottom: 2px solid var(--ez-ink-3); transform: translateY(-3px) rotate(-45deg); }
.gm-ticks span { color: var(--ez-ink); }
.gm-ticks li:first-child { border-top: 0; }
.gm-brands { margin-top: 16px; color: var(--ez-ink-3); }

/* ---------- wider screens ---------- */
@media (min-width: 700px) {
  .gm-device { --pw: min(268px, calc((100svh - 120px) * .485)); }
  .gm-rows li { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); column-gap: 32px; align-items: baseline; }
  .gm-ticks li { grid-template-columns: 22px 1fr; }
  .gm-path li { grid-template-columns: 2.2rem minmax(0, 2fr) minmax(0, 3fr); }
  .gm-path li::before { grid-row: auto; }
}
@media (min-width: 900px) {
  .gm-do-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .gm-do-t .gm-rows li { grid-template-columns: 2.2rem 1fr; }
  .gm-do-t .gm-path li::before { grid-row: 1 / span 2; }
}
@media (min-width: 1000px) {
  .gm-story { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: clamp(32px, 4vw, 64px);
    margin-top: max(12px, calc(var(--sec-gap) - 110px)); }
  .gm-stage { grid-column: 2; grid-row: 1; align-self: start; justify-content: center; gap: 22px; padding-top: 0; }
  .gm-pin { grid-column: 2; grid-row: 1; align-self: start; top: 22px; }
  .gm-pin + .gm-stage { padding-top: 96px; justify-content: flex-start; }
  .gm-steps { grid-column: 1; grid-row: 1; margin-top: 0; }
  .gm-step, .gm-step:first-child { min-height: 100vh; align-items: center; padding-bottom: 0; }
  .gm-bed { padding: clamp(28px, 3vw, 44px); }
  .gm-device { --pw: min(300px, calc((100vh - 170px) * .485)); }
}
@media (max-width: 380px) { .gm-trail li { min-width: 46px; font-size: .7rem; } .gm-pin .tag { left: auto; right: 4px; } }

@media (prefers-reduced-motion: reduce) {
  .map, .mpin, .mpin.me b, .you-dot, .sugg, .sugg li, .sheet, .sheet-in, .sheet-in > *, .ph-strip img, .rstars svg, .f-btns .b, .arrive, .gdoor .leaf, .route, .sbar,
  .gm-story .gm-bed, .gm-pin, .gm-trail li, .gm-trail li::before, .gm-trail li::after, .gm-photos .ph, .gm-photos .ph img { transition: none !important; }
  .reel img, .rp i, .you-dot i, .caret { animation: none !important; }
  .rp i { transform: scaleX(.35); }
}
