/* Icherisheher case study: page-specific designs on top of the shared kit (assets/case-study/case.css), which keeps the site's
   type and section styles. Everything here borrows from the product: the Old City's real street map in an arched window,
   the app's account sheet wired to the screens it opens, its category chips, a walking route you can scrub, faces from
   the app's avatar set, an event ticket, a utility bill and a car that drives in, the survey flow as a rail, a dial for
   empty and error states, and the palette as three towers. Colours are the app's own tokens (walnut #7C6446,
   sandstone #BE8B67, olive #7F7B50). */
.ec-case {
  --mn-accent:#d3b199; --ec-walnut:#7c6446; --ec-walnut-d:#584732; --ec-walnut-dd:#2a2116; --ec-sand:#be8b67; --ec-sand-l:#e1cab9;
  --ec-olive:#7f7b50; --ec-olive-l:#c4c2af; --ec-cream:#f2f0ed; --ec-green:#3b9d2a; --ec-line:rgba(255,255,255,.1);
  --ec-panel:linear-gradient(160deg,rgba(190,139,103,.14),rgba(124,100,70,.05)),rgba(20,16,12,.6);
}
/* Screens fill their frame from the top; the frame's radius does the rounding. */
.ec-case :is(.mn-screen) > img { height:100%; object-fit:cover; object-position:top; border-radius:0; }
.ec-case .mn-screen { background:#f2f2f2; }
.ec-visually-hidden { position:absolute !important; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

/* A phone that swaps between stacked screens (crossfade; --slide adds a sideways move like the app's tabs). */
.ec-shots > img { opacity:0; transition:opacity .55s var(--mn-ease), translate .7s var(--mn-ease), scale .8s var(--mn-ease); }
.ec-shots > img.is-on { opacity:1; z-index:1; }
.ec-shots--slide > img { translate:8% 0; }
.ec-shots--slide > img.is-on { translate:0 0; }
.ec-shots--slide > img.is-past { translate:-8% 0; }
.ec-case .ec-shots > img.mn-autoscroll { height:auto; object-fit:initial; }

/* App-style controls: 12px radius, walnut when active. */
.ec-case button { font:inherit; color:inherit; }
.ec-case button:focus-visible { outline:2px solid var(--ec-sand-l); outline-offset:3px; }

/* ── Hero ── */
.ec-hero { position:relative; padding:clamp(30px, 5vw, 70px) 0 30px; overflow:clip; }
.ec-hero-glow { position:absolute; inset:-10% 0 0; pointer-events:none; background:radial-gradient(40% 46% at 72% 50%,rgba(190,139,103,.34),transparent 70%),radial-gradient(28% 32% at 14% 84%,rgba(127,123,80,.22),transparent 70%);
  -webkit-mask-image:linear-gradient(transparent,#000 12%,#000 78%,transparent); mask-image:linear-gradient(transparent,#000 12%,#000 78%,transparent); }
.ec-hero-grid { position:relative; z-index:1; display:grid; grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr); gap:40px; align-items:center; }
.ec-case h1.ec-title { font-size:clamp(44px, 6.4vw, 92px); }
.ec-title .mn-w > span { background:linear-gradient(100deg,#fff 25%,#ebdbd0 60%,#be8b67); -webkit-background-clip:text; background-clip:text; color:transparent; }
.ec-hero-stage { position:relative; height:640px; }
/* The arch: an Old City gate shape holding the real street map, tinted to walnut. */
.ec-arch { position:absolute; left:6%; right:6%; top:4%; bottom:6%; border-radius:999px 999px 28px 28px; overflow:hidden; isolation:isolate;
  box-shadow:inset 0 0 0 1px rgba(225,202,185,.22), 0 40px 90px -40px rgba(190,139,103,.5); opacity:0; scale:.94; transition:opacity 1s var(--mn-ease), scale 1.4s var(--mn-ease); }
.ec-arch::after { content:""; position:absolute; inset:0; z-index:2; background:radial-gradient(80% 70% at 50% 40%,transparent 55%,rgba(10,8,6,.6)); pointer-events:none; }
.ec-arch-map, .ec-map-tile { position:absolute; inset:-6%; background:url("/assets/icherisheher/screens/map-base.webp?v=1") center/cover no-repeat; filter:invert(1) sepia(.9) saturate(1.5) hue-rotate(-12deg) brightness(.6) contrast(1.2); }
.ec-arch-map { animation:ec-drift 26s ease-in-out infinite alternate; }
@keyframes ec-drift { to { transform:translate3d(-3%,2%,0) scale(1.06); } }
.ec-arch-route { position:absolute; inset:0; width:100%; height:100%; z-index:1; overflow:visible; }
.ec-arch-route path { fill:none; stroke:#ebdbd0; stroke-width:3; stroke-linecap:round; stroke-dasharray:2 9; opacity:0; transition:opacity 1s ease 1.2s; }
.ec-hero.is-in .ec-arch-route path { opacity:.9; animation:ec-march 1.6s linear infinite; }
@keyframes ec-march { to { stroke-dashoffset:-22; } }
.ec-pin { position:absolute; z-index:1; left:var(--x); top:var(--y); width:26px; height:26px; margin:-26px 0 0 -13px; border-radius:50% 50% 50% 0; rotate:-45deg; background:var(--c); box-shadow:0 0 0 3px rgba(255,255,255,.18), 0 10px 20px -6px rgba(0,0,0,.8);
  opacity:0; translate:0 -18px; transition:opacity .4s ease, translate .7s cubic-bezier(.34,1.56,.64,1); transition-delay:calc(.8s + var(--i) * .18s); }
.ec-pin::after { content:""; position:absolute; inset:8px; border-radius:50%; background:#fff; }
.ec-hero.is-in .ec-arch { opacity:1; scale:1; }
.ec-hero.is-in .ec-pin { opacity:1; translate:0 0; }
.ec-hero-phone { --w:272px; position:absolute; left:50%; bottom:0; margin-left:-136px; z-index:3; opacity:0; translate:0 40px; transition:opacity .9s var(--mn-ease) .4s, translate 1s var(--mn-ease) .4s; }
.ec-hero-phone .mn-phone-frame { box-shadow:0 60px 110px -40px rgba(190,139,103,.55), inset 0 0 0 1.5px rgba(255,255,255,.14), inset 0 0 0 4px #08080b; }
.ec-hero.is-in .ec-hero-phone { opacity:1; translate:0 0; }
.ec-tag { position:absolute; z-index:4; display:grid; gap:2px; margin:0; padding:11px 14px; border-radius:12px; background:rgba(28,22,16,.78); border:1px solid rgba(225,202,185,.22); -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px); box-shadow:0 18px 40px -18px rgba(0,0,0,.9);
  opacity:0; translate:0 14px; transition:opacity .6s ease, translate .8s var(--mn-ease); }
.ec-tag b { font-size:14px; }
.ec-tag span { font-size:12.5px; color:var(--mn-mute); }
.ec-tag--a { left:0; top:30%; transition-delay:1.6s; }
.ec-tag--b { right:0; top:56%; transition-delay:1.85s; }
.ec-hero.is-in .ec-tag { opacity:1; translate:0 0; animation:mn-bob 5s ease-in-out 2.6s infinite alternate; }

/* ── Stats, in walnut and sandstone ── */
.ec-stats { margin-top:clamp(48px, 6vw, 80px); }

/* ── Who are you ── */
.ec-who { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,.9fr); gap:clamp(32px, 5vw, 72px); align-items:center; }
.ec-who-list { display:grid; gap:10px; margin-top:32px; max-width:470px; position:relative; z-index:2; }
.ec-who-list button { display:grid; grid-template-columns:44px minmax(0,1fr); grid-template-rows:auto auto; column-gap:14px; align-items:center; padding:14px 16px; border-radius:12px; text-align:left; cursor:pointer;
  border:1px solid var(--ec-line); background:rgba(255,255,255,.03); transition:background-color .35s ease, border-color .35s ease, translate .4s var(--mn-ease); }
.ec-who-list img { grid-row:1 / 3; width:44px; height:44px; border-radius:50%; }
.ec-who-list b { font-size:16px; }
.ec-who-list span { font-size:13.5px; color:var(--mn-mute); }
.ec-who-list button:hover { border-color:rgba(225,202,185,.3); }
.ec-who-list button.is-on { background:linear-gradient(135deg,rgba(124,100,70,.55),rgba(190,139,103,.25)); border-color:rgba(225,202,185,.45); translate:6px 0; }
.ec-who-list button.is-on span { color:rgba(255,255,255,.82); }
.ec-who-stage { display:flex; justify-content:center; padding:20px 0; }
.ec-who-phone { --w:280px; position:relative; z-index:1; }
/* A wire from the chosen row to the phone, redrawn on each pick. */
.ec-who-wire { position:absolute; left:0; top:0; width:100%; height:100%; pointer-events:none; overflow:visible; z-index:0; }
.ec-who-wire path { fill:none; stroke:rgba(225,202,185,.55); stroke-width:1.5; stroke-dasharray:var(--len,600); stroke-dashoffset:var(--len,600); }
.ec-who-wire.is-drawn path { stroke-dashoffset:0; transition:stroke-dashoffset .9s var(--mn-ease); }
.ec-who-wire circle { fill:var(--ec-sand-l); opacity:0; }
.ec-who-wire.is-drawn circle { opacity:1; transition:opacity .3s ease .8s; }

/* ── Explore ── */
.ec-explore-body { position:relative; display:grid; justify-items:center; margin-top:44px; }
.ec-chips { position:relative; z-index:2; display:flex; flex-wrap:wrap; justify-content:center; gap:8px; margin-bottom:28px; padding:6px; border-radius:16px; border:1px solid var(--ec-line); background:rgba(255,255,255,.03); }
.ec-chips button { padding:11px 16px; border-radius:12px; border:0; background:transparent; color:var(--mn-mute); font-weight:600; font-size:14.5px; cursor:pointer; transition:background-color .35s ease, color .35s ease; }
.ec-chips button:hover { color:#fff; }
.ec-chips button.is-on { background:var(--ec-walnut); color:#fff; box-shadow:0 10px 24px -10px rgba(124,100,70,.9); }
.ec-explore-phone { --w:290px; position:relative; z-index:2; }
/* The other nine categories run past behind the phone like a street sign. */
.ec-street { position:absolute; left:50%; width:100vw; translate:-50% 0; top:58%; z-index:1; overflow:hidden; padding:16px 0; rotate:-4deg;
  background:linear-gradient(90deg,rgba(124,100,70,.0),rgba(124,100,70,.35) 20%,rgba(124,100,70,.35) 80%,rgba(124,100,70,0)); border-block:1px solid rgba(225,202,185,.14); }
.ec-street-track { display:flex; gap:44px; width:max-content; animation:ec-street 42s linear infinite; }
.ec-street span { font:700 clamp(22px, 2.6vw, 34px)/1.2 Satoshi,Inter,sans-serif; letter-spacing:-.02em; color:rgba(235,219,208,.38); white-space:nowrap; }
.ec-street span::after { content:""; display:inline-block; width:8px; height:8px; margin-left:44px; border-radius:2px; rotate:45deg; background:rgba(190,139,103,.6); vertical-align:middle; }
@keyframes ec-street { to { transform:translateX(-50%); } }

/* ── The map ── */
.ec-map-board { position:relative; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:clamp(24px, 4vw, 56px); align-items:center; margin-top:48px; padding:clamp(22px, 3vw, 40px); border-radius:28px; overflow:hidden; isolation:isolate; border:1px solid rgba(225,202,185,.16); }
.ec-map-tile { z-index:-1; inset:0; opacity:.9; }
.ec-map-board::before { content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(90deg,rgba(14,11,8,.35),rgba(14,11,8,.1) 55%,rgba(14,11,8,.7)); }
.ec-map-ui { position:relative; display:grid; gap:20px; align-content:center; min-height:100%; }
.ec-stops { position:relative; list-style:none; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin:0; padding:0; }
.ec-stops button { width:100%; height:100%; display:grid; gap:4px; align-content:start; text-align:left; padding:14px; border-radius:12px; cursor:pointer; border:1px solid rgba(225,202,185,.18); background:rgba(20,16,12,.72); -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px); transition:background-color .35s ease, border-color .35s ease, translate .4s var(--mn-ease); }
.ec-stops b { font-size:16px; display:flex; align-items:center; gap:8px; }
.ec-stops b::before { content:""; width:12px; height:12px; flex:none; border-radius:50% 50% 50% 0; rotate:-45deg; background:rgba(235,219,208,.4); transition:background-color .35s ease; }
.ec-stops span { font-size:13px; color:var(--mn-mute); }
.ec-stops li.is-on button { background:rgba(124,100,70,.88); border-color:rgba(235,219,208,.45); translate:0 -4px; }
.ec-stops li.is-on b::before { background:#e74a4a; }
.ec-stops li.is-on span { color:rgba(255,255,255,.82); }
.ec-scrub { position:relative; display:block; }
.ec-scrub input { -webkit-appearance:none; appearance:none; width:100%; height:44px; margin:0; background:transparent; cursor:grab; }
.ec-scrub input:active { cursor:grabbing; }
.ec-scrub input::-webkit-slider-runnable-track { height:6px; background:linear-gradient(90deg,transparent calc(var(--k,0) * 100%),rgba(20,16,12,.72) 0),radial-gradient(circle,#6ea4ff 2.6px,transparent 3px) 0 50% / 14px 6px repeat-x; }
.ec-scrub input::-moz-range-track { height:6px; background:radial-gradient(circle,#4b8df8 2.6px,transparent 3px) 0 50% / 14px 6px repeat-x; }
.ec-scrub input::-webkit-slider-thumb { -webkit-appearance:none; width:30px; height:30px; margin-top:-12px; border-radius:50%; background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c6446' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='13' cy='4' r='1.8'/%3E%3Cpath d='M9 21l2-5 3 2v4M7 12l2.5-3 3.5.5 2 3h3M10 9.5 9 14'/%3E%3C/svg%3E") center/18px no-repeat; box-shadow:0 0 0 6px rgba(75,141,248,.28), 0 8px 18px rgba(0,0,0,.5); }
.ec-scrub input::-moz-range-thumb { width:30px; height:30px; border:0; border-radius:50%; background:#fff; box-shadow:0 0 0 6px rgba(75,141,248,.28); }
.ec-scrub input:focus-visible { outline:2px solid var(--ec-sand-l); outline-offset:4px; border-radius:8px; }
.ec-modes { list-style:none; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; margin:0; padding:0; opacity:.35; transition:opacity .5s ease; }
.ec-map-sec[data-stop="3"] .ec-modes { opacity:1; }
.ec-modes li { display:grid; gap:2px; padding:10px 12px; border-radius:12px; background:rgba(20,16,12,.72); border:1px solid rgba(225,202,185,.14); }
.ec-modes b { font-size:15px; }
.ec-modes span { font-size:12.5px; color:var(--mn-mute); }
.ec-modes .is-pick { background:var(--ec-walnut); border-color:transparent; }
.ec-modes .is-pick span { color:rgba(255,255,255,.8); }
.ec-map-phone { --w:270px; position:relative; z-index:1; }

/* ── People ── */
.ec-people { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:clamp(32px, 5vw, 72px); align-items:center; }
.ec-friend { display:flex; align-items:center; gap:14px; margin-top:32px; max-width:420px; padding:14px 16px; border-radius:16px; background:#fff; color:#1a1c20; box-shadow:0 30px 60px -30px rgba(0,0,0,.9); }
.ec-friend img { width:52px; height:52px; border-radius:50%; flex:none; }
.ec-friend > span { display:grid; flex:1; }
.ec-friend b { font-size:16px; }
.ec-friend small { font-size:13px; color:#8c8c8c; }
.ec-friend-btn { position:relative; display:grid; padding:10px 16px; border:0; border-radius:12px; cursor:pointer; background:var(--ec-walnut); color:#fff !important; font-weight:700; font-size:14px; transition:background-color .4s ease, scale .3s cubic-bezier(.34,1.56,.64,1); }
.ec-friend-btn > span { grid-area:1 / 1; text-align:center; transition:opacity .3s ease, translate .4s var(--mn-ease); }
.ec-friend-sent { opacity:0; translate:0 8px; }
.ec-friend-btn[aria-pressed="true"] { background:var(--ec-green); }
.ec-friend-btn[aria-pressed="true"] .ec-friend-add { opacity:0; translate:0 -8px; }
.ec-friend-btn[aria-pressed="true"] .ec-friend-sent { opacity:1; translate:0 0; }
.ec-friend-btn:active { scale:.94; }
.ec-people-stage { position:relative; display:grid; place-items:center; min-height:620px; }
.ec-people-phone { --w:270px; position:relative; z-index:1; }
.ec-faces { position:absolute; inset:0; animation:ec-orbit 60s linear infinite; }
.ec-faces img { position:absolute; left:50%; top:50%; width:var(--s); height:var(--s); margin:calc(var(--s) / -2) 0 0 calc(var(--s) / -2); border-radius:50%;
  transform:rotate(var(--a)) translateY(calc(var(--r) * -280px)) rotate(calc(var(--a) * -1)); box-shadow:0 0 0 3px rgba(255,255,255,.12), 0 14px 30px -12px rgba(0,0,0,.9); }
.ec-faces img { animation:ec-counter 60s linear infinite; }
@keyframes ec-orbit { to { rotate:1turn; } }
@keyframes ec-counter { to { rotate:-1turn; } }

/* ── Activities ── */
.ec-acts { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:clamp(32px, 6vw, 96px); align-items:center; }
.ec-acts-tabs { display:inline-flex; gap:6px; margin-top:30px; padding:6px; border-radius:16px; border:1px solid var(--ec-line); background:rgba(255,255,255,.03); }
.ec-acts-tabs button { padding:11px 18px; border-radius:12px; border:0; background:transparent; color:var(--mn-mute); font-weight:600; font-size:14.5px; cursor:pointer; transition:background-color .35s ease, color .35s ease; }
.ec-acts-tabs button.is-on { background:var(--ec-walnut); color:#fff; }
.ec-tickets { display:grid; margin-top:24px; max-width:520px; perspective:1200px; }
/* A cream ticket with a perforated stub, as the app's event card; the old one tears away to the left. */
.ec-ticket { grid-area:1 / 1; display:grid; grid-template-columns:minmax(0,1fr) 132px; border-radius:16px; color:#1a1c20; background:var(--ec-cream); box-shadow:0 30px 60px -30px rgba(0,0,0,.9);
  opacity:0; transform:rotateY(-14deg) scale(.97); transform-origin:left center; transition:opacity .5s ease, transform .8s var(--mn-ease); pointer-events:none;
  -webkit-mask:radial-gradient(circle 11px at calc(100% - 132px) 0,#0000 98%,#000) top / 100% 51% no-repeat, radial-gradient(circle 11px at calc(100% - 132px) 100%,#0000 98%,#000) bottom / 100% 51% no-repeat;
  mask:radial-gradient(circle 11px at calc(100% - 132px) 0,#0000 98%,#000) top / 100% 51% no-repeat, radial-gradient(circle 11px at calc(100% - 132px) 100%,#0000 98%,#000) bottom / 100% 51% no-repeat; }
.ec-ticket.is-on { opacity:1; transform:none; pointer-events:auto; }
.ec-ticket.is-gone { opacity:0; transform:rotate(-6deg) translate(-40px,20px); }
.ec-ticket-main { display:grid; gap:6px; align-content:center; padding:22px 22px 22px 24px; }
.ec-ticket-main small { justify-self:start; padding:5px 9px; border-radius:8px; background:var(--ec-walnut); color:#fff; font-size:12px; font-weight:700; }
.ec-ticket-main b { font-size:21px; line-height:1.2; letter-spacing:-.01em; }
.ec-ticket-main span { font-size:14px; color:#595959; }
.ec-ticket-stub { display:grid; align-content:center; justify-items:center; gap:2px; padding:18px 12px; text-align:center; border-left:2px dashed rgba(124,100,70,.35); background:linear-gradient(160deg,#ebdbd0,#e1cab9); }
.ec-ticket-stub b { font-size:40px; line-height:1; color:var(--ec-walnut-d); letter-spacing:-.03em; }
.ec-ticket-stub span { font-size:13px; font-weight:700; color:var(--ec-walnut-d); }
.ec-ticket-stub small { font-size:12px; color:#715b40; line-height:1.35; }
.ec-acts-phone { --w:280px; }

/* ── Residents ── */
.ec-home-body { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:clamp(32px, 6vw, 96px); align-items:center; margin-top:48px; }
.ec-home-stage { position:relative; display:grid; gap:28px; justify-items:center; padding:clamp(22px, 3vw, 36px); border-radius:28px; min-height:420px; align-content:start;
  background:radial-gradient(80% 90% at 100% 0%,rgba(127,123,80,.32),transparent 65%),linear-gradient(160deg,rgba(124,100,70,.32),rgba(20,16,12,.6)); border:1px solid rgba(225,202,185,.16); overflow:hidden; }
.ec-switch { display:inline-flex; gap:6px; padding:6px; border-radius:16px; background:rgba(0,0,0,.25); border:1px solid var(--ec-line); }
.ec-switch button { padding:11px 18px; border-radius:12px; border:0; background:transparent; color:var(--mn-mute); font-weight:600; font-size:14.5px; cursor:pointer; transition:background-color .35s ease, color .35s ease; }
.ec-switch button.is-on { background:var(--ec-olive); color:#fff; }
.ec-home[data-mode="car"] .ec-switch button.is-on { background:var(--ec-walnut); }
/* The bill slides up out of a slot, the debt counts up. */
.ec-bill { grid-area:2 / 1; width:min(420px, 100%); display:grid; gap:14px; padding:20px; border-radius:16px; background:#fff; color:#1a1c20; box-shadow:0 30px 60px -30px rgba(0,0,0,.9);
  clip-path:inset(0 0 100% 0); translate:0 30px; transition:clip-path 1s var(--mn-ease), translate 1s var(--mn-ease); }
.ec-home.is-in[data-mode="bill"] .ec-bill { clip-path:inset(0 0 0 0); translate:0 0; }
.ec-bill-row { display:grid; gap:3px; padding-bottom:14px; border-bottom:1.5px dashed #d9d9d9; }
.ec-bill-row:nth-child(2) { border-bottom:0; padding-bottom:0; }
.ec-bill small { font-size:12px; color:#8c8c8c; }
.ec-bill b { font-size:15px; }
.ec-bill strong { font:800 44px/1 Satoshi,Inter,sans-serif; letter-spacing:-.03em; font-variant-numeric:tabular-nums; }
.ec-bill strong em { font-style:normal; font-size:14px; font-weight:700; color:#595959; letter-spacing:0; }
.ec-bill-split { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.ec-bill-split > div { display:grid; gap:3px; padding:12px; border-radius:12px; background:#f5f5f5; }
.ec-bill-split > div:last-child { background:var(--ec-walnut); color:#fff; }
.ec-bill-split > div:last-child small { color:rgba(255,255,255,.7); }
/* The car drives in from the left and the plate flips up under it. */
.ec-garage { grid-area:2 / 1; width:100%; display:grid; gap:22px; justify-items:center; opacity:0; pointer-events:none; transition:opacity .4s ease; }
.ec-home.is-in[data-mode="car"] .ec-garage { opacity:1; pointer-events:auto; }
.ec-road { position:relative; width:100%; height:190px; display:grid; align-items:end; justify-items:center; overflow:hidden; }
.ec-road > i { position:absolute; left:0; right:0; bottom:8px; height:2px; background:repeating-linear-gradient(90deg,rgba(235,219,208,.5) 0 26px,transparent 26px 46px); animation:ec-lane .5s linear infinite; animation-play-state:paused; }
.ec-car { position:relative; z-index:1; width:min(360px, 86%); height:auto; margin-bottom:12px; translate:-140% 0; transition:translate 1.6s cubic-bezier(.2,.9,.25,1); }
.ec-home.is-in[data-mode="car"] .ec-car { translate:0 0; }
.ec-home.is-in[data-mode="car"] .ec-road > i { animation-play-state:running; animation-iteration-count:3; }
@keyframes ec-lane { to { background-position:-46px 0; } }
.ec-plate { display:flex; align-items:center; gap:12px; padding:10px 18px 10px 12px; border-radius:12px; background:#fff; color:#1a1c20; border:2px solid #1a1c20; box-shadow:0 20px 40px -20px rgba(0,0,0,.9);
  transform:perspective(600px) rotateX(80deg); opacity:0; transition:transform .8s cubic-bezier(.34,1.4,.64,1) 1.2s, opacity .3s ease 1.2s; }
.ec-home.is-in[data-mode="car"] .ec-plate { transform:none; opacity:1; }
.ec-plate b { font:800 34px/1 Satoshi,Inter,sans-serif; letter-spacing:.01em; }
.ec-plate-flag { display:grid; justify-items:center; gap:0; }
.ec-plate-flag i { display:block; width:20px; height:5px; }
.ec-plate-flag i:nth-child(1) { background:#00b5e2; border-radius:3px 3px 0 0; }
.ec-plate-flag i:nth-child(2) { background:#ef3340; }
.ec-plate-flag i:nth-child(3) { background:#509e2f; border-radius:0 0 3px 3px; }
.ec-plate-flag small { margin-top:3px; font-size:10px; font-weight:800; }
.ec-home-phone { --w:280px; }

/* ── Surveys ── */
.ec-survey { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:clamp(32px, 6vw, 96px); align-items:center; }
.ec-rail { position:relative; list-style:none; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin:32px 0 0; padding:0; max-width:560px; }
.ec-rail button { width:100%; height:100%; display:grid; gap:3px; text-align:left; padding:12px 14px; border-radius:12px; cursor:pointer; border:1px solid var(--ec-line); background:rgba(255,255,255,.03); transition:background-color .35s ease, border-color .35s ease; }
.ec-rail b { font-size:15px; }
.ec-rail span { font-size:13px; color:var(--mn-mute); }
.ec-rail button:hover { border-color:rgba(225,202,185,.3); }
.ec-rail li.is-on button { background:var(--ec-walnut); border-color:transparent; }
.ec-rail li.is-on span { color:rgba(255,255,255,.8); }
.ec-rail li.is-done button { border-color:rgba(225,202,185,.24); }
.ec-survey-stage { position:relative; }
.ec-survey-stage::before { content:""; position:absolute; inset:-8% -20%; background:radial-gradient(closest-side,rgba(59,157,42,0),transparent); transition:background .8s ease; pointer-events:none; }
.ec-survey.is-thanks .ec-survey-stage::before { background:radial-gradient(closest-side,rgba(59,157,42,.38),transparent); }
.ec-survey-phone { --w:280px; position:relative; }

/* ── States ── */
.ec-states-body { display:flex; justify-content:center; align-items:center; gap:clamp(32px, 7vw, 110px); margin-top:48px; }
.ec-dial { position:relative; width:300px; aspect-ratio:1; flex:none; border-radius:50%;
  background:radial-gradient(circle at 50% 50%,rgba(124,100,70,.3) 0 34%,transparent 35%),repeating-conic-gradient(from 0deg,rgba(235,219,208,.16) 0 1deg,transparent 1deg 15deg),rgba(255,255,255,.02); border:1px solid var(--ec-line); }
.ec-dial-knob { position:absolute; inset:31%; border-radius:50%; background:radial-gradient(circle at 35% 30%,#a79783,#584732 70%); box-shadow:0 20px 40px -14px rgba(0,0,0,.9), inset 0 2px 0 rgba(255,255,255,.25);
  rotate:var(--turn,-45deg); transition:rotate .8s cubic-bezier(.34,1.3,.64,1); }
.ec-dial-knob i { position:absolute; left:50%; top:8px; width:6px; height:24%; margin-left:-3px; border-radius:3px; background:#f2f0ed; }
.ec-dial button { position:absolute; left:50%; top:50%; width:96px; margin:-18px 0 0 -48px; padding:8px 0; border-radius:12px; border:0; background:transparent; color:var(--mn-mute); font-weight:700; font-size:14px; cursor:pointer;
  transform:rotate(var(--a)) translateY(-122px) rotate(calc(var(--a) * -1)); transition:color .3s ease, background-color .3s ease; }
.ec-dial button.is-on { color:#fff; background:rgba(124,100,70,.85); }
.ec-states-phone { --w:260px; }

/* ── System ── */
.ec-towers { position:relative; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)) minmax(0,.7fr); gap:16px; align-items:end; margin-top:56px; }
.ec-tower { margin:0; display:grid; gap:14px; }
.ec-tower-steps { display:grid; grid-template-rows:repeat(10,minmax(0,1fr)); height:calc(300px + var(--i) * 40px); border-radius:999px 999px 14px 14px; overflow:hidden; box-shadow:0 30px 60px -30px rgba(0,0,0,.9), inset 0 0 0 1px rgba(255,255,255,.08); }
.ec-tower-steps i { background:var(--c); transform-origin:bottom; scale:1 0; transition:scale .5s var(--mn-ease); transition-delay:calc(var(--i) * .15s + (10 - var(--n, 0)) * 40ms); }
.ec-towers.is-in .ec-tower-steps i { scale:1 1; }
.ec-tower figcaption { display:grid; gap:2px; }
.ec-tower figcaption b { font-size:17px; }
.ec-tower code { font:500 12.5px ui-monospace,SFMono-Regular,Menlo,monospace; color:var(--mn-accent); }
.ec-tower figcaption span { font-size:13.5px; color:var(--mn-mute); }
.ec-signals { display:grid; gap:10px; align-self:end; padding-bottom:58px; }
.ec-signals span { display:flex; align-items:center; gap:10px; padding:12px 14px; border-radius:12px; background:color-mix(in srgb, var(--c) 14%, transparent); border:1px solid color-mix(in srgb, var(--c) 40%, transparent); font-size:14px; font-weight:600; }
.ec-signals i { width:12px; height:12px; border-radius:4px; background:var(--c); box-shadow:0 0 14px var(--c); }
.ec-kit { display:grid; grid-template-columns:minmax(0,1.3fr) minmax(0,1fr); gap:16px; margin-top:16px; align-items:stretch; }
.ec-type { margin-top:0; height:100%; }
.ec-type .mn-typeface-aa { background:linear-gradient(160deg,#fff 30%,var(--ec-sand)); -webkit-background-clip:text; background-clip:text; }
.ec-scale { list-style:none; margin:14px 0 0; padding:0; display:grid; }
.ec-scale li { display:flex; align-items:baseline; justify-content:space-between; gap:12px; padding:8px 0; border-top:1px solid var(--ec-line); font-family:'Helvetica Neue',Helvetica,Arial,sans-serif; }
.ec-scale b { font-weight:700; white-space:nowrap; }
.ec-scale span { font:500 12.5px ui-monospace,SFMono-Regular,Menlo,monospace; color:var(--mn-mute); white-space:nowrap; }
.ec-live { display:grid; align-content:center; justify-items:center; gap:18px; padding:clamp(24px, 3vw, 40px); border-radius:24px; border:1px solid var(--mn-line); background:rgba(255,255,255,.03); }
.ec-tabbar { position:relative; display:grid; grid-template-columns:repeat(5,52px); gap:10px; padding:10px; border-radius:20px; background:#fff; box-shadow:0 30px 60px -30px rgba(0,0,0,.9); }
.ec-tabbar i { position:relative; z-index:1; display:grid; place-items:center; height:52px; border-radius:12px; background:#f5f5f5; color:#1a1c20; transition:color .35s ease, background-color .35s ease; }
.ec-tabbar i.is-on { color:#fff; background:transparent; }
.ec-tabbar svg { width:24px; height:24px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.ec-tabbar-glow { position:absolute; z-index:0; left:10px; top:10px; width:52px; height:52px; border-radius:12px; background:var(--ec-walnut); box-shadow:0 10px 24px -8px rgba(124,100,70,.9); translate:calc(var(--t,0) * 62px) 0; transition:translate .6s cubic-bezier(.34,1.3,.64,1); }
.ec-live-label { margin:0; font:600 15px/1.2 'Helvetica Neue',Helvetica,Arial,sans-serif; color:var(--mn-mute); }
.ec-live-row { display:flex; flex-wrap:wrap; justify-content:center; gap:10px; }
.ec-btn { display:inline-grid; place-items:center; min-width:140px; padding:14px 22px; border-radius:12px; background:var(--ec-walnut); color:#fff; font:700 15px/1 'Helvetica Neue',Helvetica,Arial,sans-serif; }
.ec-btn--ghost { background:#f5f5f5; color:#1a1c20; }

/* ── Outcome ── */
.ec-outcome-list { list-style:none; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; max-width:760px; margin:34px 0 0; padding:0; }
.ec-outcome-list li { padding:12px 16px; border-radius:12px; border:1px solid rgba(225,202,185,.3); background:rgba(124,100,70,.18); font-size:15px; font-weight:500; }

/* ── Responsive ── */
@media (max-width:1024px) {
  .ec-hero-grid, .ec-who, .ec-people, .ec-acts, .ec-survey { grid-template-columns:1fr; }
  .ec-hero-stage { height:600px; max-width:560px; width:100%; margin:0 auto; }
  .ec-who-wire { display:none; }
  .ec-who-list { max-width:none; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .ec-who-list button.is-on { translate:0 0; }
  .ec-map-board { grid-template-columns:1fr; justify-items:center; }
  .ec-map-ui { width:100%; }
  .ec-acts-phone, .ec-survey-stage { justify-self:center; }
  .ec-home-body { grid-template-columns:1fr; justify-items:center; }
  .ec-home-stage { width:100%; }
  .ec-rail { max-width:none; grid-template-columns:repeat(4,minmax(0,1fr)); }
  .ec-towers { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .ec-signals { grid-column:1 / -1; grid-template-columns:repeat(3,minmax(0,1fr)); padding-bottom:0; }
  .ec-kit { grid-template-columns:1fr; }
}
@media (max-width:767px) {
  .ec-hero-stage { height:520px; }
  .ec-hero-phone { --w:220px; margin-left:-110px; }
  .ec-arch { left:0; right:0; }
  .ec-tag { padding:9px 11px; }
  .ec-tag b { font-size:13px; } .ec-tag span { font-size:11.5px; }
  .ec-tag--a { top:22%; } .ec-tag--b { top:50%; }
  .ec-who-list { grid-template-columns:1fr; }
  .ec-who-phone, .ec-explore-phone, .ec-acts-phone, .ec-home-phone, .ec-survey-phone { --w:240px; }
  .ec-chips { flex-wrap:nowrap; justify-content:flex-start; max-width:100%; overflow-x:auto; scrollbar-width:none; }
  .ec-chips::-webkit-scrollbar { display:none; }
  .ec-chips button { flex:none; padding:10px 12px; font-size:13.5px; }
  .ec-street { top:62%; }
  .ec-map-board { padding:16px; border-radius:22px; }
  .ec-stops { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .ec-modes { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .ec-map-phone { --w:230px; }
  .ec-people-stage { min-height:480px; }
  .ec-faces img { transform:rotate(var(--a)) translateY(calc(var(--r) * -200px)) rotate(calc(var(--a) * -1)); }
  .ec-people-phone { --w:210px; }
  .ec-friend { gap:10px; padding:12px; }
  .ec-friend img { width:44px; height:44px; }
  .ec-friend-btn { padding:10px 12px; font-size:13px; }
  .ec-ticket { grid-template-columns:minmax(0,1fr) 104px;
    -webkit-mask:radial-gradient(circle 10px at calc(100% - 104px) 0,#0000 98%,#000) top / 100% 51% no-repeat, radial-gradient(circle 10px at calc(100% - 104px) 100%,#0000 98%,#000) bottom / 100% 51% no-repeat;
    mask:radial-gradient(circle 10px at calc(100% - 104px) 0,#0000 98%,#000) top / 100% 51% no-repeat, radial-gradient(circle 10px at calc(100% - 104px) 100%,#0000 98%,#000) bottom / 100% 51% no-repeat; }
  .ec-ticket-main { padding:18px 16px; }
  .ec-ticket-main b { font-size:18px; }
  .ec-ticket-stub b { font-size:32px; }
  .ec-ticket-stub small { font-size:11px; white-space:nowrap; }
  .ec-home-stage { min-height:380px; }
  .ec-bill strong { font-size:36px; }
  .ec-road { height:150px; }
  .ec-plate b { font-size:28px; }
  .ec-rail { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .ec-states-body { flex-direction:column; }
  .ec-dial { width:260px; }
  .ec-dial button { transform:rotate(var(--a)) translateY(-104px) rotate(calc(var(--a) * -1)); width:84px; margin-left:-42px; font-size:13px; }
  .ec-states-phone { --w:230px; }
  .ec-towers { grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
  .ec-tower-steps { height:calc(200px + var(--i) * 30px); }
  .ec-tower figcaption span { display:none; }
  .ec-signals { grid-template-columns:1fr; }
  .ec-outcome-list { grid-template-columns:1fr; }
  .ec-tabbar { grid-template-columns:repeat(5,44px); gap:8px; padding:8px; }
  .ec-tabbar i { height:44px; }
  .ec-tabbar-glow { left:8px; top:8px; width:44px; height:44px; translate:calc(var(--t,0) * 52px) 0; }
  .ec-scale li { flex-wrap:wrap; }
}
@media (prefers-reduced-motion:reduce) {
  .ec-arch, .ec-pin, .ec-hero-phone, .ec-tag { opacity:1 !important; scale:none !important; translate:none !important; }
  .ec-arch-map, .ec-arch-route path, .ec-street-track, .ec-faces, .ec-faces img, .ec-tag, .ec-road > i { animation:none !important; }
  .ec-arch-route path { opacity:.9 !important; }
  .ec-tower-steps i { scale:1 1 !important; }
  .ec-car { transition:none !important; }
  .ec-bill { transition:none !important; }
  .ec-plate { transition:none !important; }
}

/* Glass cards and statistics tiles in the app's own colours (walnut to sandstone, olive light); the shared bend,
   shading and count-up come from about-cards. */
.ec-case {
  --glass-fill:color-mix(in srgb, rgb(124 100 70) 10%, rgba(12,11,20,.8)); --glass-edge:rgba(190,139,103,.24); --glass-highlight:rgba(190,139,103,.5);
  --glass-drop:rgba(0,0,0,.9); --glass-glow:rgba(190,139,103,.55); --glass-shade:#000; --glass-shine:rgb(235 219 208);
  --stat-bg:linear-gradient(160deg,rgba(124,100,70,.9),rgba(190,139,103,.55)); --stat-border:rgba(255,255,255,.18); --stat-border-hover:rgba(255,255,255,.32);
  --stat-glow:rgba(124,100,70,.7); --stat-glow-hover:rgba(190,139,103,.85); --stat-shade:#1d150c; --stat-shine:#fff; --stat-number:#fff; --stat-label:#fff;
}
