/* profile.html · one sample profile (Nour). Tall header: photo on a wall of drifting, code-drawn UI fragments;
   then a sticky section rail with scroll-spy (and a mini hire bar once the header is gone); overview, a six-piece
   drawn gallery with a lightbox, two service cards, "A client" reviews, a vertical level ladder, a purple close band. */

.pf { --pf-c: var(--cat-design); --pf-cs: var(--cat-design-s); --pf-cd: var(--cat-design-d); }

/* ═══ header ═══ */
.ph-hd { position: relative; padding: 100px 0 40px; background: radial-gradient(60% 80% at 20% 40%, #efeafd 0%, rgba(239, 234, 253, 0) 70%), radial-gradient(50% 60% at 95% 0%, #fff1da 0%, rgba(255, 241, 218, 0) 70%), #fff; overflow: clip; }
.ph-hd .crumbs { margin-bottom: 18px; }
.hd { display: grid; gap: 30px; align-items: center; }
@media (min-width: 900px) { .hd { grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 64px; } }
.hd__pic { position: relative; width: min(100%, 400px); margin-inline: auto; aspect-ratio: 1; --px: 0; --py: 0; }
.hd__img { position: relative; z-index: 1; width: 78%; height: 78%; margin: 11%; object-fit: cover; border-radius: 34%; box-shadow: 0 0 0 8px #fff, 0 40px 60px -30px rgba(70, 40, 140, .55); transform: translate(calc(var(--px) * -6px), calc(var(--py) * -6px)); transition: transform .6s var(--spring); }
.hd__wall { position: absolute; inset: 0; }
.fr { position: absolute; left: var(--x); top: var(--y); width: 30%; aspect-ratio: .62; padding: 7% 4% 0; border-radius: 16px; background: #fff; box-shadow: 0 18px 30px -16px rgba(70, 40, 140, .45), inset 0 0 0 1px rgba(3, 21, 20, .06); transform: translate(calc(var(--px) * 14px * var(--z)), calc(var(--py) * 14px * var(--z))) rotate(var(--r)); transition: transform .8s var(--spring); }
.fr > * { display: block; margin-bottom: 8%; border-radius: 4px; }
.fr i { height: 8px; background: var(--paper-2); }
.fr i:nth-child(2) { width: 70%; }
.fr--a i:first-child { height: 34px; border-radius: 8px; background: var(--cat-engineering); }
.fr--b b { height: 36px; width: 36px; border-radius: 50%; background: var(--cat-design); }
.fr--c i:first-child { height: 46px; border-radius: 8px; background: linear-gradient(160deg, var(--cat-tech-s), var(--cat-tech)); }
.fr--d i { height: 10px; background: var(--cat-writing-s); }
.fr--d i:first-child { background: var(--cat-writing); }
.fr span, .fr { will-change: transform; }
.hd__wall.is-drift .fr { animation: fr-float 7s ease-in-out infinite alternate; }
.hd__wall.is-drift .fr--b { animation-duration: 8.5s; animation-delay: -2s; }
.hd__wall.is-drift .fr--c { animation-duration: 6.4s; animation-delay: -4s; }
.hd__wall.is-drift .fr--d { animation-duration: 9s; animation-delay: -1s; }
@keyframes fr-float { from { translate: 0 0; } to { translate: 0 -12px; } }
.ph-hd:not(.is-live) .fr { animation-play-state: paused; }
.hd__live { position: absolute; z-index: 2; left: 50%; bottom: 2%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #fff; box-shadow: var(--shadow-s); font-weight: 700; font-size: 13.5px; color: var(--ink); white-space: nowrap; }
.hd__live i { width: 8px; height: 8px; border-radius: 50%; background: var(--cat-admin); animation: pf-ping 2s ease-out infinite; }
@keyframes pf-ping { 0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, .55); } 70%, 100% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); } }

.hd__sample { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hd__sample span { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.hd__name { display: flex; align-items: center; gap: 12px; margin-top: 8px; font-family: var(--display); font-size: clamp(56px, 7vw, 104px); line-height: .9; letter-spacing: -.04em; color: var(--ink); }
.hd__vf { width: .42em; height: .42em; }
.hd__title { margin-top: 10px; font-size: clamp(20px, 2vw, 26px); color: var(--text); }
/* the level chip (LevelBadge chip): the rung's tint and readable type, the app coin leading */
.hd__level { gap: 10px; margin-top: 14px; padding: 6px 14px 6px 6px; font-weight: 400; font-size: 15px; }
.hd__level b { color: inherit; }
.hd__coin { width: 30px; height: 30px; }
.pills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 18px; max-width: 640px; }
@media (min-width: 600px) { .pills { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pills li { display: grid; gap: 2px; padding: 10px 14px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.pills small { font-weight: 700; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.pills b { display: inline-flex; align-items: center; gap: 4px; font-size: 16.5px; color: var(--ink); white-space: nowrap; }
.pills b span { font-weight: 300; font-size: 13px; color: var(--muted); }
.pills svg { width: 15px; height: 15px; color: var(--orange); }
.trust { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.trust li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--teal-soft); color: var(--teal); font-weight: 700; font-size: 13px; }
.trust li[data-cat] { background: var(--cs); color: var(--cd); }
.trust svg { width: 15px; height: 15px; color: var(--teal-m); }
.hd__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hd__hold { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 15px; font-weight: 700; color: var(--teal); }
.hd__hold svg { width: 18px; height: 18px; }
@media (min-width: 900px) and (max-height: 800px) {
  .ph-hd { padding-top: 92px; }
  .hd__pic { width: min(100%, 360px); }
  .hd { grid-template-columns: minmax(0, 360px) minmax(0, 1fr); }
  .hd__name { font-size: clamp(56px, 6vw, 84px); }
  .hd__cta .btn--lg { height: 52px; }
}
@media (max-width: 599px) {
  .ph-hd { padding-top: 92px; }
  .hd__pic { width: 300px; }
  .hd__cta .btn { flex: 1 1 auto; }
}

/* ═══ sticky rail ═══ */
.rl { position: sticky; top: 80px; z-index: 20; margin-top: 4px; }
.rl__in { display: flex; align-items: center; gap: 12px; }
.rl__nav { position: relative; display: flex; gap: 2px; padding: 5px; border-radius: 999px; background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 10px 30px -18px rgba(3, 21, 20, .45), inset 0 0 0 1px var(--line); overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.rl__nav::-webkit-scrollbar { display: none; }
.rl__nav a { position: relative; z-index: 1; flex: none; display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 999px; font-weight: 700; font-size: 15px; color: var(--muted); text-decoration: none; transition: color .25s; }
.rl__nav a:hover { color: var(--ink); }
.rl__nav a[aria-current="true"] { color: #fff; }
.rl__bar { position: absolute; z-index: 0; top: 5px; left: 0; height: 42px; width: 0; border-radius: 999px; background: var(--pf-cd); transition: transform .5s var(--spring), width .5s var(--spring); }
.rl__mini { display: none; align-items: center; gap: 10px; margin-inline-start: auto; padding: 5px 5px 5px 6px; border-radius: 999px; background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 10px 30px -18px rgba(3, 21, 20, .45), inset 0 0 0 1px var(--line); opacity: 0; transform: translateY(-8px); transition: opacity .3s, transform .45s var(--spring); pointer-events: none; }
.rl__mini img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.rl__mini span { display: grid; line-height: 1.15; font-size: 14px; }
.rl__mini small { font-size: 12.5px; color: var(--muted); }
.rl.is-stuck .rl__mini { opacity: 1; transform: none; pointer-events: auto; }
@media (min-width: 900px) { .rl__mini { display: flex; } }
@media (max-width: 599px) { .rl { top: 78px; } .rl__nav a { padding: 0 13px; font-size: 14px; } }

/* ═══ sections ═══ */
.pf-sec { padding: clamp(56px, 7vw, 104px) 0 0; scroll-margin-top: 140px; }
.pf-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; margin-bottom: 26px; }
.pf-h { font-family: var(--display); font-size: clamp(34px, 4.2vw, 60px); line-height: 1; letter-spacing: -.03em; color: var(--ink); }
.pf-sub { font-weight: 700; font-size: 14px; color: var(--muted); }
.pf-mini { margin: 24px 0 10px; font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }

.ov__grid { display: grid; gap: 36px; }
@media (min-width: 900px) { .ov__grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 64px; } }
.ov__bio { margin-top: 20px; max-width: 34em; font-size: clamp(19px, 1.7vw, 23px); line-height: 1.5; color: var(--text); }
.sk { display: flex; flex-wrap: wrap; gap: 6px; }
.sk li { padding: 8px 14px; border-radius: 999px; background: var(--pf-cs); color: var(--pf-cd); font-weight: 700; font-size: 15px; }
.tr { padding: 4px 24px 22px; border-radius: 24px; background: var(--paper); }
.tr__nums { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 8px 14px; }
.tr__nums li { display: grid; gap: 2px; }
.tr__nums b { font-family: var(--display); font-size: clamp(34px, 3.4vw, 48px); line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.tr__nums span { font-size: 14px; color: var(--muted); }
.tr__dl { display: grid; gap: 8px; margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 15px; }
.tr__dl div { display: flex; justify-content: space-between; gap: 12px; }
.tr__dl dt { color: var(--muted); }
.tr__dl dd { margin: 0; font-weight: 700; color: var(--ink); text-align: end; }

/* gallery */
.gal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 900px) { .gal { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
.pc { display: grid; gap: 4px; width: 100%; padding: 0 0 14px; border: 0; border-radius: 24px; background: #fff; text-align: start; cursor: zoom-in; box-shadow: var(--shadow-s), inset 0 0 0 1px rgba(3, 21, 20, .05); transition: transform .45s var(--spring), box-shadow .3s; }
.pc:hover { transform: translateY(-4px); box-shadow: var(--shadow-l), inset 0 0 0 1px rgba(3, 21, 20, .05); }
.pc__art { display: grid; place-items: center; aspect-ratio: 4 / 3; margin-bottom: 8px; border-radius: 24px 24px 0 0; background: radial-gradient(80% 80% at 30% 20%, #fff 0%, var(--hs) 70%); overflow: hidden; }
.pc__t { padding: 0 16px; font-weight: 700; font-size: 16.5px; line-height: 1.25; color: var(--ink); }
.pc__d { padding: 0 16px; font-size: 14px; color: var(--muted); }
@media (max-width: 599px) { .pc__t { font-size: 15px; padding: 0 12px; } .pc__d { display: none; } }

/* a drawn screen: em-sized so the same markup scales in the lightbox */
.scrn { position: relative; display: block; width: 8.4em; height: 15em; padding: 1.4em .7em .7em; border-radius: 1.3em; background: #fff; box-shadow: 0 0 0 .32em #10181a, 0 1.4em 2em -1em rgba(3, 21, 20, .45); font-size: clamp(10px, 1.15vw, 15px); transform: rotate(-4deg); transition: transform .6s var(--spring); overflow: hidden; }
.pc:hover .scrn { transform: rotate(0deg) translateY(-.3em); }
.scrn::before { content: ""; position: absolute; left: 50%; top: .45em; width: 2.6em; height: .55em; border-radius: 1em; background: #10181a; transform: translateX(-50%); }
.scrn i { display: block; margin-bottom: .55em; border-radius: .35em; font-style: normal; }
.scrn .t { width: 60%; height: .8em; background: var(--ink); opacity: .85; }
.scrn .row { height: 1.7em; background: var(--paper); box-shadow: inset .5em 0 0 var(--h); }
.scrn .cta { position: absolute; left: .7em; right: .7em; bottom: .8em; height: 1.9em; margin: 0; border-radius: 1em; background: var(--h); }
.scrn--bake .hero { height: 4.2em; background: linear-gradient(135deg, var(--h), #ffd987); }
.scrn--clinic .cal { height: 4.6em; background: repeating-linear-gradient(90deg, var(--hs) 0 .9em, #fff .9em 1.05em), linear-gradient(var(--hs), var(--hs)); border-radius: .5em; }
.scrn--clinic .slot { height: 1.4em; background: var(--paper); }
.scrn--clinic .slot.on { background: var(--h); }
.scrn--fit .ring { position: absolute; left: 50%; border-radius: 50%; border: .55em solid var(--h); border-right-color: transparent; margin: 0; }
.scrn--fit .r1 { top: 2.8em; width: 6em; height: 6em; margin-left: -3em; transform: rotate(-30deg); }
.scrn--fit .r2 { top: 3.75em; width: 4.1em; height: 4.1em; margin-left: -2.05em; border-color: var(--cat-tech); border-bottom-color: transparent; }
.scrn--fit .r3 { top: 4.7em; width: 2.2em; height: 2.2em; margin-left: -1.1em; border-color: var(--cat-writing); border-left-color: transparent; }
.scrn--fit .row:first-of-type { margin-top: 7.6em; }
.scrn--shop { display: grid; grid-template-columns: 1fr 1fr; gap: .45em; align-content: start; }
.scrn--shop .t { grid-column: 1 / -1; margin: 0; }
.scrn--shop .tile { height: 4.2em; margin: 0; background: linear-gradient(160deg, var(--hs), var(--h)); }
.scrn--shop .tile:nth-of-type(3), .scrn--shop .tile:nth-of-type(4) { background: linear-gradient(160deg, var(--paper), var(--paper-2)); }
.scrn--map { padding: 0; }
.scrn--map .map { position: absolute; inset: 0; margin: 0; border-radius: 0; background: repeating-linear-gradient(35deg, transparent 0 2.4em, #fff 2.4em 2.7em), repeating-linear-gradient(-55deg, transparent 0 3em, #fff 3em 3.3em), #e8efe9; }
.scrn--map .route { position: absolute; left: 1.6em; top: 3em; width: 4.4em; height: 5.4em; margin: 0; border: .35em dashed var(--h); border-left: 0; border-bottom: 0; border-radius: 0 2em 0 0; }
.scrn--map .pin { position: absolute; left: 1em; top: 8em; width: 1.2em; height: 1.2em; margin: 0; border-radius: 50%; background: var(--h); box-shadow: 0 0 0 .4em color-mix(in srgb, var(--h) 30%, transparent); }
.scrn--map .sheet { position: absolute; left: 0; right: 0; bottom: 0; height: 4.4em; margin: 0; border-radius: 1em 1em 0 0; background: #fff; box-shadow: 0 -.4em 1em rgba(3, 21, 20, .15); }
.scrn--lang .blob { height: 5.6em; border-radius: 50% 50% 46% 54% / 60% 54% 46% 40%; background: var(--hs); margin-top: .4em; }
.scrn--lang .big { position: absolute; left: 0; right: 0; top: 2.3em; text-align: center; font-family: "Geeza Pro", "Noto Sans Arabic", Tahoma, sans-serif; font-weight: 700; font-size: 3.2em; line-height: 1; color: var(--h); }
.scrn--lang .dots { width: 3em; height: .6em; margin: .8em auto 0; background: radial-gradient(circle, var(--h) 45%, transparent 50%) 0 0 / 1em .6em; }

/* lightbox */
.lb { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; background: transparent; }
.lb::backdrop { background: rgba(10, 6, 30, .82); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lb[open] { display: grid; place-items: center; animation: lb-in .4s var(--spring); }
@keyframes lb-in { from { opacity: 0; transform: scale(.94); } }
.lb__in { position: relative; display: grid; justify-items: center; gap: 22px; width: min(720px, calc(100% - 32px)); padding: 24px 0; color: #fff; }
.lb__stage { display: grid; place-items: center; width: 100%; min-height: 50vh; padding: 4vh 0; border-radius: 32px; background: radial-gradient(70% 80% at 30% 20%, #fff 0%, var(--hs) 75%); }
.lb__stage .scrn { font-size: clamp(16px, 2.7vh, 24px); transform: rotate(-3deg); }
.lb__stage.is-swap .scrn { animation: lb-swap .5s var(--spring); }
@keyframes lb-swap { from { opacity: 0; transform: translateX(calc(var(--dir, 1) * 40px)) rotate(calc(var(--dir, 1) * 4deg)); } }
.lb__cap { text-align: center; }
.lb__k { font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.lb__t { margin-top: 6px; font-family: var(--display); font-size: clamp(22px, 2.6vw, 32px); letter-spacing: -.02em; }
.lb__d { margin-top: 4px; color: rgba(255, 255, 255, .82); font-size: 16px; }
.lb__x { position: absolute; top: 0; right: 0; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; }
.lb__x svg { width: 22px; height: 22px; }
.lb__nav { display: flex; gap: 10px; }
.lb__arrow { display: grid; place-items: center; width: 52px; height: 52px; border: 0; border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer; transition: transform .3s var(--spring); }
.lb__arrow:active { transform: scale(.9); }
.lb__arrow svg { width: 20px; height: 20px; transform: rotate(90deg); }
.lb__arrow[data-lb-step="1"] svg { transform: rotate(-90deg); }

/* services */
.sv2__list { display: grid; gap: 16px; }
@media (min-width: 900px) { .sv2__list { grid-template-columns: 1fr 1fr; gap: 20px; } }
.sv2__c { display: grid; grid-template-columns: 130px minmax(0, 1fr); border-radius: 24px; background: #fff; box-shadow: var(--shadow-s), inset 0 0 0 1px rgba(3, 21, 20, .05); overflow: hidden; }
@media (max-width: 599px) { .sv2__c { grid-template-columns: 1fr; } .sv2__art { height: 110px; } }
.sv2__art { position: relative; display: block; background: linear-gradient(160deg, var(--pf-cs), var(--pf-c)); overflow: hidden; }
.sv2__art i { position: absolute; display: block; border-radius: 12px; background: #fff; box-shadow: 0 10px 20px -12px rgba(3, 21, 20, .5); transition: transform .6s var(--spring); }
.sv2__art--a i { width: 44%; height: 46%; }
.sv2__art--a i:nth-child(1) { left: 12%; top: 16%; transform: rotate(-8deg); }
.sv2__art--a i:nth-child(2) { left: 30%; top: 30%; }
.sv2__art--a i:nth-child(3) { left: 48%; top: 44%; transform: rotate(8deg); }
.sv2__c:hover .sv2__art--a i:nth-child(1) { transform: rotate(-14deg) translate(-6px, -4px); }
.sv2__c:hover .sv2__art--a i:nth-child(3) { transform: rotate(14deg) translate(6px, 4px); }
.sv2__art--b i:nth-child(1) { left: 26%; top: 24%; width: 48%; aspect-ratio: 1; height: auto; border-radius: 28%; background: var(--orange); }
.sv2__art--b i:nth-child(2) { left: 36%; top: 34%; width: 28%; aspect-ratio: 1; height: auto; border-radius: 50%; background: #fff; }
.sv2__art--b i:nth-child(3) { left: 20%; right: 20%; bottom: 14%; height: 8px; background: var(--pf-cd); }
.sv2__c:hover .sv2__art--b i:nth-child(1) { transform: rotate(12deg) scale(1.06); }
.sv2__body { display: grid; gap: 10px; align-content: start; justify-items: start; padding: 20px 22px; }
.sv2__t { font-weight: 700; font-size: 19px; color: var(--ink); }
.sv2__p { font-size: 15.5px; color: var(--text); }
.sv2__dl { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; }
.sv2__dl dt { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.sv2__dl dd { margin: 0; font-weight: 700; font-size: 17px; color: var(--ink); }
.sv2 .caption { margin-top: 14px; }

/* reviews */
.rv__grid { display: grid; gap: 30px; }
@media (min-width: 900px) { .rv__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 56px; } }
.rv__big { display: flex; align-items: center; gap: 14px; margin-top: 18px; }
.rv__big b { font-family: var(--display); font-size: 72px; line-height: 1; color: var(--ink); }
.stars { display: inline-flex; gap: 3px; }
.stars i { width: 22px; height: 22px; background: var(--orange); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 3 2.7 5.6 6.1.8-4.5 4.2 1.1 6.1L12 16.8l-5.4 2.9 1.1-6.1-4.5-4.2 6.1-.8z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m12 3 2.7 5.6 6.1.8-4.5 4.2 1.1 6.1L12 16.8l-5.4 2.9 1.1-6.1-4.5-4.2 6.1-.8z'/%3E%3C/svg%3E") center / contain no-repeat; }
.stars i.part { background: linear-gradient(90deg, var(--orange) 55%, var(--paper-2) 55%); }
.stars--sm i { width: 16px; height: 16px; }
.rv__n { margin-top: 14px; font-weight: 700; color: var(--ink); }
.rv__note { margin-top: 10px; max-width: 22em; font-size: 15px; color: var(--muted); }
.rv__list { display: grid; gap: 14px; }
@media (min-width: 700px) { .rv__list { grid-template-columns: 1fr 1fr; } }
.rq { display: grid; gap: 10px; align-content: start; padding: 20px 22px; border-radius: 22px; background: var(--paper); transition: transform .45s var(--spring); }
.rq:nth-child(odd) { transform: rotate(-.6deg); }
.rq:nth-child(even) { transform: rotate(.6deg) translateY(14px); }
.rq:hover { transform: none; }
.rq__q { font-size: 17px; line-height: 1.5; color: var(--ink); }
.rq__by { font-size: 13.5px; color: var(--muted); }
.rq__by b { color: var(--ink); }
.rv__cap { margin-top: 26px; }

/* level ladder */
.lv { padding-bottom: clamp(72px, 8vw, 120px); }
.lv__grid { display: grid; gap: 36px; align-items: start; }
@media (min-width: 900px) { .lv__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 64px; } }
.lv__lead { margin-top: 16px; max-width: 26em; font-size: 18px; color: var(--text); }
.next__list { display: grid; gap: 14px; }
.next__list li { display: grid; grid-template-columns: 1fr auto; gap: 6px; font-size: 15px; }
.next__list b { color: var(--ink); }
.next__list i { grid-column: 1 / -1; position: relative; height: 8px; border-radius: 4px; background: var(--paper-2); overflow: hidden; }
.next__list i::after { content: ""; position: absolute; inset: 0; border-radius: 4px; background: linear-gradient(90deg, var(--orange), var(--coral)); transform-origin: left; transform: scaleX(var(--p)); transition: transform 1.2s var(--spring); }
.js .lv:not(.is-on) .next__list i::after { transform: scaleX(0); }
.lad { position: relative; display: grid; gap: 10px; }
.lad::before { content: ""; position: absolute; left: 25px; top: 20px; bottom: 20px; width: 3px; border-radius: 2px; background: #E5E7EB; }
.lad::after { content: ""; position: absolute; left: 25px; bottom: 20px; width: 3px; height: calc(var(--fill, 0) * (100% - 40px)); border-radius: 2px; background: #5E656E; transition: height 1.4s var(--spring); }
.rung { position: relative; display: flex; align-items: center; gap: 16px; padding: 10px 14px 10px 0; border-radius: 20px; }
/* the app's LevelLadder rung: the real coin when held, a 2px ink ring on "you", next/locked discs; a punch in the surface colour cuts the line */
.rung__c { --punch: var(--white); position: relative; z-index: 1; display: grid; place-items: center; flex: none; width: 52px; height: 52px; box-sizing: border-box; padding: 4px; border: 2px solid transparent; border-radius: 50%; background: var(--punch); background-clip: padding-box; }
.rung__c .lvc { width: 40px; height: 40px; }
.rung__c[data-state="you"] { border-color: #1A1D21; }
.rung__b { display: grid; gap: 2px; }
.rung__b b { font-size: 18px; color: var(--ink); }
.rung__b small { font-size: 14px; color: var(--muted); }
.rung.is-here { background: #FEEAE2; box-shadow: inset 0 0 0 1.5px rgba(203, 74, 42, .35); }
.rung.is-here .rung__c { --punch: #FEEAE2; }
.rung__you { position: absolute; right: 12px; top: -12px; padding: 4px 10px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; font-size: 12px; }
.lv:not(.is-on) .rung__you { opacity: 0; transform: translateY(6px); }
.rung__you { transition: opacity .4s .9s, transform .6s .9s var(--spring); }

/* close band */
.pf-close { --band: radial-gradient(110% 120% at 10% 0%, var(--cat-design) 0%, var(--cat-design-d) 55%, #3b1a7a 100%); }
.pf-close__in { display: grid; gap: 30px; align-items: center; }
@media (min-width: 800px) { .pf-close__in { grid-template-columns: 220px minmax(0, 1fr); gap: 48px; } }
.pf-close img { width: 180px; aspect-ratio: 1; object-fit: cover; border-radius: 34%; box-shadow: 0 0 0 6px rgba(255, 255, 255, .25); transform: rotate(-4deg); }
.pf-close .title { margin-top: 0; font-size: clamp(40px, 5.4vw, 80px); }
.pf-close__lead { margin-top: 16px; max-width: 30em; font-size: 19px; color: rgba(255, 255, 255, .9); }
.pf-close__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

@media (prefers-reduced-motion: reduce) {
  .hd__wall .fr, .hd__live i { animation: none !important; }
  .lv:not(.is-on) .rung__you { opacity: 1; transform: none; }
  .js .lv:not(.is-on) .next__list i::after { transform: scaleX(var(--p)); }
  .rq:nth-child(n) { transform: none; }
}

/* phone pass: the five section links share the bar (Level no longer cut); track-record numbers keep their own room */
@media (max-width: 767px) {
  .rl__nav a { flex: 1 1 auto; justify-content: center; padding: 0 6px; }
  .tr__nums { grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 8px 14px; }
}
