/* services.html · the Home Screen: eleven app icons in the category colours that wiggle and spring open a field sheet;
   then a People | Services switch over a fixed-price shelf; an orange close band. */

/* ═══ 1. hero + home screen ═══ */
.hs { position: relative; padding: 112px 0 clamp(56px, 7vw, 96px); background: radial-gradient(70% 60% at 85% 10%, #fff1da 0%, rgba(255, 241, 218, 0) 70%), #fff; }
.hs__grid { display: grid; gap: 28px; align-items: center; }
.hs__tag { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px; background: #fff1da; color: var(--orange-text); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.hs__tag span { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.hs__title { margin-top: 18px; font-family: var(--display); font-weight: 700; font-size: clamp(44px, 5.6vw, 86px); line-height: .95; letter-spacing: -.035em; color: var(--ink); text-wrap: balance; }
.hs__title em { font-style: normal; display: block; background: linear-gradient(90deg, var(--cat-engineering), var(--coral) 45%, var(--cat-writing) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }
.hs__lead { margin-top: 20px; max-width: 30em; font-size: 18px; color: var(--text); }
.hs__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hs__hint { display: flex; align-items: center; gap: 10px; margin-top: 22px; font-size: 15px; color: var(--muted); font-weight: 700; }
.hs__finger { position: relative; width: 22px; height: 22px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 6px rgba(250, 162, 27, .2); animation: hs-tap 2.4s ease-in-out infinite; }
@keyframes hs-tap { 0%, 100% { transform: scale(1); } 45% { transform: scale(.78); } 55% { transform: scale(.78); box-shadow: 0 0 0 12px rgba(250, 162, 27, 0); } }

/* the screen */
.scr { position: relative; isolation: isolate; overflow: hidden; padding: 16px 18px 14px; border-radius: 34px; background: #fbf6ee; box-shadow: var(--shadow-l), inset 0 0 0 1px rgba(3, 21, 20, .06); --rx: 0deg; --ry: 0deg; transform: perspective(1400px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .5s var(--spring); }
.scr__wall { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.scr__wall i { position: absolute; border-radius: 50%; filter: blur(30px); opacity: .55; will-change: transform; }
.scr__wall .b1 { width: 60%; aspect-ratio: 1; left: -12%; top: -18%; background: #ffd59a; animation: wall1 16s ease-in-out infinite alternate; }
.scr__wall .b2 { width: 55%; aspect-ratio: 1; right: -14%; top: 20%; background: #f7c4dc; animation: wall2 19s ease-in-out infinite alternate; }
.scr__wall .b3 { width: 50%; aspect-ratio: 1; left: 20%; bottom: -24%; background: #c9d8fb; animation: wall1 22s ease-in-out infinite alternate-reverse; }
@keyframes wall1 { to { transform: translate(18%, 12%) scale(1.1); } }
@keyframes wall2 { to { transform: translate(-16%, -10%) scale(.92); } }
.scr:not(.is-live) .scr__wall i { animation-play-state: paused; }
.scr__bar { display: flex; justify-content: space-between; align-items: center; padding: 0 12px 10px; font-size: 14px; color: var(--ink); }
.scr__bar b { font-variant-numeric: tabular-nums; }
.scr__sig { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.scr__sig i { width: 3px; border-radius: 1px; background: var(--ink); }
.scr__sig i:nth-child(1) { height: 4px; } .scr__sig i:nth-child(2) { height: 6px; } .scr__sig i:nth-child(3) { height: 9px; } .scr__sig i:nth-child(4) { height: 12px; }

.scr__apps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 6px; }
.app { display: grid; justify-items: center; gap: 7px; width: 100%; padding: 4px 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; border-radius: 18px; }
.app__i { position: relative; display: grid; place-items: center; width: clamp(58px, 6.4vw, 84px); aspect-ratio: 1; border-radius: 28%; background: linear-gradient(150deg, color-mix(in srgb, var(--c) 82%, #fff) 0%, var(--c) 45%, var(--cd) 120%); box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 12px 22px -12px var(--cd), 0 2px 4px rgba(3, 21, 20, .12); transition: transform .45s var(--spring); }
.app__i::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0) 48%); pointer-events: none; }
.app__i svg { width: 52%; height: 52%; fill: none; stroke: #fff; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.app__i svg .f { fill: #fff; stroke: none; }
.app__l { max-width: 13ch; font-weight: 700; font-size: 12.5px; line-height: 1.15; text-align: center; color: var(--ink); }
.app:hover .app__i, .app:focus-visible .app__i { animation: wiggle .5s ease-in-out infinite; }
.app:active .app__i { transform: scale(.88); animation: none; }
.app.is-hint .app__i { animation: hint 1.1s var(--spring); }
@keyframes wiggle { 0%, 100% { transform: rotate(0deg) scale(1.04); } 25% { transform: rotate(-5deg) scale(1.04); } 75% { transform: rotate(5deg) scale(1.04); } }
@keyframes hint { 0% { transform: scale(1); } 30% { transform: scale(1.14) rotate(-6deg); } 55% { transform: scale(1.02) rotate(4deg); } 100% { transform: scale(1); } }
.app.is-hint .app__i { box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 30%, transparent), 0 12px 22px -12px var(--cd); }

/* the twelfth slot: a small widget */
.scr__widget { display: grid; justify-items: center; }
.wd { position: relative; display: grid; align-content: center; justify-items: center; width: clamp(58px, 6.4vw, 84px); aspect-ratio: 1; border-radius: 28%; background: #fff; box-shadow: inset 0 0 0 1px var(--line), 0 10px 20px -14px rgba(3, 21, 20, .5); overflow: hidden; }
.wd b { font-family: var(--display); font-size: clamp(22px, 2.4vw, 32px); line-height: 1; color: var(--ink); }
.wd small { font-weight: 700; font-size: 11px; color: var(--muted); }
.wd i { position: absolute; inset-inline: 0; bottom: 0; height: 5px; background: linear-gradient(90deg, var(--cat-engineering), var(--cat-writing), var(--cat-design), var(--cat-tech), var(--cat-lifestyle), var(--cat-admin)); }

/* dock */
.scr__dock { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 16px; padding: 10px; border-radius: 26px; background: rgba(255, 255, 255, .62); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7); }
.dk { display: grid; justify-items: center; gap: 6px; padding: 4px 0; border: 0; background: none; text-decoration: none; color: var(--ink); cursor: pointer; border-radius: 16px; }
.dk__i { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; transition: transform .35s var(--spring); }
.dk:hover .dk__i { transform: translateY(-4px); }
.dk__i svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.dk__i--o { background: var(--orange); } .dk__i--o svg { stroke: var(--ink); }
.dk__i--t { background: var(--teal); } .dk__i--p { background: var(--cat-design-d); } .dk__i--b { background: var(--cat-tech-d); }
.dk__l { font-weight: 700; font-size: 11.5px; line-height: 1.15; text-align: center; }

@media (min-width: 960px) {
  .hs__grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); grid-template-areas: "copy scr" "more scr"; gap: 0 56px; align-items: center; }
  .hs__copy { grid-area: copy; align-self: end; }
  .hs__more { grid-area: more; align-self: start; }
  .scr { grid-area: scr; }
  .hs { padding-top: 104px; }
}
@media (min-width: 960px) and (max-height: 800px) {
  .app__i, .wd { width: 74px; }
  .scr__apps { gap: 8px 6px; }
  .scr__dock { margin-top: 10px; padding: 8px; }
  .dk__i { width: 40px; height: 40px; }
  .hs__title { font-size: clamp(44px, 5vw, 70px); }
}
@media (max-width: 599px) {
  .hs { padding-top: 96px; }
  .hs__title { font-size: 42px; }
  .hs__lead { margin-top: 0; font-size: 17px; }
  .hs__cta .btn { flex: 1 1 auto; height: 52px; padding: 0 18px; font-size: 16px; }
  .scr { padding: 12px 10px 10px; border-radius: 28px; }
  .app__l { font-size: 11px; }
  .dk__l { font-size: 10.5px; }
  .dk__i { width: 40px; height: 40px; }
}

/* ═══ field sheet (springs from the icon) ═══ */
.cs { width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; border: 0; background: transparent; overflow: visible; }
.cs[open] { display: grid; place-items: end center; }
.cs::backdrop { background: rgba(3, 21, 20, .4); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: cs-fade .3s ease; }
@keyframes cs-fade { from { opacity: 0; } }
.cs__card { position: relative; width: 100%; max-height: 92vh; overflow: auto; padding: 22px 22px 24px; border-radius: 28px 28px 0 0; background: #fff; box-shadow: var(--shadow-l); transform-origin: 50% 50%; }
.cs__card::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: var(--c); }
.cs__card.is-spring { transition: transform .62s cubic-bezier(.2, 1.25, .35, 1), opacity .25s ease; }
.cs__head { display: flex; align-items: center; gap: 14px; }
.cs__head > div { flex: 1; min-width: 0; }
.cs__icon { display: grid; place-items: center; flex: none; width: 60px; height: 60px; border-radius: 28%; background: linear-gradient(150deg, color-mix(in srgb, var(--c) 82%, #fff), var(--c) 45%, var(--cd) 120%); }
.cs__icon svg { width: 52%; height: 52%; fill: none; stroke: #fff; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.cs__icon svg .f { fill: #fff; stroke: none; }
.cs__k { font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--cd); }
.cs__title { font-family: var(--display); font-size: clamp(24px, 3vw, 32px); line-height: 1.05; letter-spacing: -.02em; color: var(--ink); }
.cs__desc { margin-top: 14px; font-size: 17px; color: var(--text); }
.cs__mini { margin-top: 18px; font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.cs__skills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.cs__skills li { padding: 7px 12px; border-radius: 999px; background: var(--cs); color: var(--cd); font-weight: 700; font-size: 14px; animation: pop .45s var(--spring) both; animation-delay: calc(var(--i) * 40ms + 120ms); }
.cs__prices { display: grid; margin-top: 8px; }
.cs__prices li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 14px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 16px; animation: up .45s var(--spring) both; animation-delay: calc(var(--i) * 50ms + 200ms); }
.cs__prices b { font-weight: 700; color: var(--ink); white-space: nowrap; }
.cs__prices small { font-weight: 300; color: var(--muted); }
.cs__note { margin-top: 12px; font-size: 13.5px; color: var(--muted); }
.cs__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.cs__cta .btn { flex: 1 1 180px; }
@media (min-width: 640px) {
  .cs[open] { place-items: center; }
  .cs__card { width: min(560px, calc(100% - 48px)); border-radius: 30px; padding: 26px 28px 28px; }
}

/* ═══ 2. shelf ═══ */
.sh { padding: clamp(72px, 8vw, 128px) 0; }
.sh__head { display: grid; gap: 24px; align-items: end; margin-bottom: 30px; }
@media (min-width: 960px) { .sh__head { grid-template-columns: minmax(0, 1fr) auto; } }
.sh .title { font-size: clamp(40px, 5.6vw, 84px); }
.shelf__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.shelf__label { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.shelf__label span { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.shelf__nav { display: flex; gap: 8px; }
.shelf__arrow { display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line-2); cursor: pointer; transition: box-shadow .2s, transform .3s var(--spring); }
.shelf__arrow:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.shelf__arrow:active { transform: scale(.92); }
.shelf__arrow svg { width: 18px; height: 18px; transform: rotate(90deg); }
.shelf__arrow[data-shelf="1"] svg { transform: rotate(-90deg); }
.shelf__arrow:disabled { opacity: .35; cursor: default; }
.shelf { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 2px; padding: 4px 2px 18px; scrollbar-width: none; }
.shelf::-webkit-scrollbar { display: none; }
@media (min-width: 960px) { .shelf { grid-auto-columns: calc((100% - 48px) / 4); } }
.shelf li { scroll-snap-align: start; }
.svc { display: flex; flex-direction: column; height: 100%; border-radius: 24px; background: #fff; box-shadow: var(--shadow-s), inset 0 0 0 1px rgba(3, 21, 20, .05); text-decoration: none; color: inherit; overflow: hidden; transition: transform .45s var(--spring), box-shadow .3s; }
.svc:hover { transform: translateY(-5px); box-shadow: var(--shadow-l), inset 0 0 0 1px rgba(3, 21, 20, .05); }
.svc__body { display: grid; gap: 9px; padding: 16px 18px 18px; flex: 1; align-content: start; }
.svc__chip { justify-self: start; padding: 5px 10px; border-radius: 999px; background: var(--cs); color: var(--cd); font-weight: 700; font-size: 12.5px; }
.svc__t { font-weight: 700; font-size: 18px; line-height: 1.25; color: var(--ink); }
.svc__by { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--text); }
.svc__by img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.vf { width: 16px; height: 16px; color: var(--teal-m); }
.svc__foot { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.svc__foot b { font-size: 16px; color: var(--ink); margin-inline-end: auto; }

/* code-drawn covers */
.svc__art { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--cs); }
.svc__art i, .svc__art b, .svc__art em { position: absolute; display: block; }
.svc:hover .svc__art > * { transition: transform .8s var(--spring); }
.svc__art--logo i.c1 { width: 44%; aspect-ratio: 1; left: 28%; top: 14%; border-radius: 50%; background: var(--c); }
.svc__art--logo i.c2 { width: 22%; aspect-ratio: 1; left: 50%; top: 24%; border-radius: 50%; background: #fff; }
.svc__art--logo b { left: 0; right: 0; bottom: 10%; text-align: center; font-family: var(--display); font-size: 22px; color: var(--cd); letter-spacing: -.02em; }
.svc:hover .svc__art--logo i.c2 { transform: translate(-30%, 20%); }
.svc__art--web i:nth-child(1) { left: 10%; right: 10%; top: 14%; bottom: 0; border-radius: 12px 12px 0 0; background: #fff; box-shadow: 0 10px 30px -14px var(--cd); }
.svc__art--web i:nth-child(2) { left: 16%; width: 42%; top: 30%; height: 10%; border-radius: 6px; background: var(--c); }
.svc__art--web i:nth-child(3) { left: 16%; width: 30%; top: 46%; height: 6%; border-radius: 4px; background: var(--cs); }
.svc__art--web em { right: 16%; width: 26%; top: 30%; height: 50%; border-radius: 10px; background: linear-gradient(160deg, var(--cs), var(--c)); }
.svc:hover .svc__art--web em { transform: translateY(-8%); }
.svc__art--reel { background: var(--cd); }
.svc__art--reel i { top: 12%; bottom: 12%; width: 20%; border-radius: 10px; background: color-mix(in srgb, var(--c) 70%, #fff); }
.svc__art--reel i:nth-child(1) { left: 14%; transform: rotate(-8deg); opacity: .6; }
.svc__art--reel i:nth-child(2) { left: 40%; background: #fff; }
.svc__art--reel i:nth-child(3) { left: 66%; transform: rotate(8deg); opacity: .6; }
.svc__art--reel em { left: 47%; top: 40%; width: 0; height: 0; border-style: solid; border-width: 12px 0 12px 18px; border-color: transparent transparent transparent var(--c); }
.svc:hover .svc__art--reel i:nth-child(1) { transform: rotate(-14deg) translateX(-6px); }
.svc:hover .svc__art--reel i:nth-child(3) { transform: rotate(14deg) translateX(6px); }
.svc__art--copy b { left: 10%; top: 12%; font-family: var(--display); font-size: 54px; line-height: 1; color: var(--c); }
.svc__art--copy i { left: 10%; height: 7%; border-radius: 4px; background: var(--cd); opacity: .75; }
.svc__art--copy i:nth-of-type(1) { top: 56%; width: 74%; } .svc__art--copy i:nth-of-type(2) { top: 68%; width: 60%; } .svc__art--copy i:nth-of-type(3) { top: 80%; width: 40%; background: var(--c); }
.svc__art--tr b { top: 18%; font-family: var(--display); font-size: 58px; line-height: 1; color: var(--cd); }
.svc__art--tr b:first-child { left: 18%; }
.svc__art--tr b.ar { right: 18%; font-family: "Geeza Pro", "Noto Sans Arabic", Tahoma, sans-serif; color: var(--c); }
.svc__art--tr i { left: 40%; right: 40%; top: 44%; height: 4px; border-radius: 2px; background: var(--cd); }
.svc__art--tr i::after { content: ""; position: absolute; right: -2px; top: -5px; width: 10px; height: 10px; border-top: 4px solid var(--cd); border-right: 4px solid var(--cd); transform: rotate(45deg); }
.svc__art--ads i { bottom: 16%; width: 11%; border-radius: 6px 6px 2px 2px; background: var(--c); }
.svc__art--ads i:nth-child(1) { left: 16%; height: 22%; opacity: .5; } .svc__art--ads i:nth-child(2) { left: 31%; height: 34%; opacity: .65; } .svc__art--ads i:nth-child(3) { left: 46%; height: 30%; opacity: .8; } .svc__art--ads i:nth-child(4) { left: 61%; height: 50%; } .svc__art--ads i:nth-child(5) { left: 76%; height: 66%; background: var(--cd); }
.svc__art--ads i { transform-origin: bottom; }
.svc:hover .svc__art--ads i { transform: scaleY(1.12); }
.svc__art--books i { left: 14%; right: 14%; height: 12%; border-radius: 6px; background: #fff; box-shadow: inset 4px 0 0 var(--c); }
.svc__art--books i:nth-child(1) { top: 16%; } .svc__art--books i:nth-child(2) { top: 34%; } .svc__art--books i:nth-child(3) { top: 52%; }
.svc__art--books i:nth-child(4) { top: 70%; left: 50%; background: var(--cd); box-shadow: none; }
.svc__art--room i:nth-child(1) { left: 0; right: 0; bottom: 0; height: 30%; background: color-mix(in srgb, var(--c) 45%, #fff); }
.svc__art--room i:nth-child(2) { left: 18%; bottom: 22%; width: 40%; height: 22%; border-radius: 12px 12px 4px 4px; background: var(--cd); }
.svc__art--room i:nth-child(3) { right: 18%; top: 16%; width: 18%; aspect-ratio: 1; border-radius: 50%; background: #fff; box-shadow: 0 0 0 6px color-mix(in srgb, var(--c) 40%, transparent); }
.shelf__note { margin-top: 10px; }

/* people panel */
.ppl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 760px) { .ppl { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .ppl { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.ppl a { display: grid; gap: 2px; padding: 10px 10px 14px; border-radius: 22px; background: var(--cs); text-decoration: none; color: var(--ink); transition: transform .45s var(--spring); animation: pop .5s var(--spring) both; }
.ppl li:nth-child(2) a { animation-delay: 40ms; } .ppl li:nth-child(3) a { animation-delay: 80ms; } .ppl li:nth-child(4) a { animation-delay: 120ms; } .ppl li:nth-child(5) a { animation-delay: 160ms; } .ppl li:nth-child(6) a { animation-delay: 200ms; }
.ppl a:hover { transform: translateY(-4px) rotate(-1deg); }
.ppl img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; margin-bottom: 8px; }
.ppl b { font-size: 17px; }
.ppl span { font-size: 14px; color: var(--cd); font-weight: 700; }
.ppl__more { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 22px; }

/* ═══ 3. close band ═══ */
.sv-close__in { display: grid; gap: 36px; align-items: end; }
@media (min-width: 960px) { .sv-close__in { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
.sv-close .title { margin-top: 0; font-size: clamp(42px, 6vw, 92px); }
.sv-close__lead { margin-top: 18px; max-width: 30em; font-size: 19px; color: var(--ink); }
.sv-close__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.sv-close__note { padding: 22px 24px; border-radius: 22px; background: rgba(255, 255, 255, .88); font-size: 16px; color: var(--text); }
.sv-close__note b { display: block; margin-bottom: 6px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-text); }

@media (prefers-reduced-motion: reduce) {
  .app:hover .app__i, .app:focus-visible .app__i, .app.is-hint .app__i, .hs__finger { animation: none; }
  .scr__wall i, .cs__skills li, .cs__prices li, .ppl a { animation: none; }
  .scr { transform: none; }
}
