/* TechinWallet — inner pages of the 3D site (about, services, service detail, contact).
   Loaded after site-3d.css and uses its tokens and components. */

/* ---------- page hero ---------- */
.phero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-height: min(900px, 100svh);
    padding: 150px 0 96px;
    overflow: hidden;
    background:
        radial-gradient(900px 600px at 76% 42%, rgba(30, 115, 255, .17), transparent 62%),
        radial-gradient(760px 520px at 6% 100%, rgba(30, 58, 122, .34), transparent 62%),
        var(--bg);
}

/* a perspective grid that runs towards the horizon */
.phero__floor {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    perspective: 520px;
    perspective-origin: 50% 46%;
    -webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, .55) 30%, transparent 52%);
    mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, .55) 30%, transparent 52%);
    pointer-events: none;
}

.phero__floor::before {
    content: "";
    position: absolute;
    left: -60%;
    right: -60%;
    bottom: 0;
    height: 150%;
    background-image:
        linear-gradient(rgba(79, 147, 255, .24) 1px, transparent 1px),
        linear-gradient(90deg, rgba(79, 147, 255, .24) 1px, transparent 1px);
    background-size: 84px 84px;
    transform: rotateX(78deg);
    transform-origin: 50% 100%;
    animation: floorRun 4s linear infinite;
}

@keyframes floorRun {
    to {
        background-position: 0 84px, 0 0;
    }
}

.phero__inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    gap: clamp(32px, 5vw, 80px);
    align-items: center;
    width: 100%;
}

.crumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 26px;
    color: var(--muted);
    font-size: 13.5px;
}

.crumb a {
    color: var(--text-2);
    transition: color .3s;
}

.crumb a:hover {
    color: #fff;
}

.crumb i {
    font-size: 10px;
    opacity: .6;
}

.crumb [aria-current] {
    color: var(--brand-3);
}

.phero__title {
    margin: 24px 0 26px;
    font-size: clamp(40px, 5.6vw, 84px);
    font-weight: 600;
    line-height: 1.02;
    letter-spacing: -.045em;
    text-wrap: balance;
}

.phero__desc {
    max-width: 520px;
    color: var(--text-2);
    font-size: clamp(15px, 1.25vw, 18px);
    line-height: 1.7;
}

.phero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 36px;
}

/* the 3D object on the right of each page hero */
.phero__art {
    position: relative;
    width: 100%;
    max-width: 560px;
    aspect-ratio: 1;
    margin-inline: auto;
    perspective: 1400px;
    transform: translate3d(calc(var(--mx, 0) * -16px), calc(var(--my, 0) * -12px), 0);
    transition: transform 1.2s var(--ease);
}

.phero__stage {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    transform: rotateX(calc(var(--my, 0) * -8deg)) rotateY(calc(var(--mx, 0) * 12deg));
    transition: transform 1.4s var(--ease);
}

.phero__glow {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 78%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(30, 115, 255, .34), rgba(30, 115, 255, .08) 60%, transparent);
    transform: translate(-50%, -50%);
    filter: blur(10px);
}

.phero__shadow {
    position: absolute;
    left: 50%;
    bottom: 9%;
    width: 52%;
    height: 7%;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(0, 0, 0, .7), transparent);
    transform: translateX(-50%);
    filter: blur(6px);
}

/* glass tags floating around the object (they use the hero's .chip__body look) */
.ptag {
    position: absolute;
    z-index: 4;
    transform: translate3d(calc(var(--mx, 0) * var(--z, 20) * 1px), calc(var(--my, 0) * var(--z, 20) * 1px), 0);
    transition: transform 1.2s var(--ease);
}

.ptag .chip__float {
    animation-duration: 6.5s;
}

.ptag--1 {
    --z: -24;
    top: 12%;
    left: -2%;
}

.ptag--2 {
    --z: 30;
    top: 46%;
    right: -4%;
}

.ptag--2 .chip__float {
    animation-delay: -2.2s;
}

.ptag--3 {
    --z: 16;
    bottom: 12%;
    left: 6%;
}

.ptag--3 .chip__float {
    animation-delay: -4.1s;
}

/* ---------- extruded TW mark (layers are added by the script) ---------- */
.mark3d {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 64%;
    aspect-ratio: 920 / 465;
    transform-style: preserve-3d;
    transform: translate(-50%, -50%);
}

.mark3d__sway {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    animation: markSway 10s ease-in-out infinite;
}

@keyframes markSway {

    0%,
    100% {
        transform: rotateY(-26deg) rotateX(6deg) translateY(0);
    }

    50% {
        transform: rotateY(26deg) rotateX(-4deg) translateY(-10px);
    }
}

.mark3d__layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    filter: drop-shadow(0 0 22px rgba(30, 115, 255, .35));
}

.mark3d.is-built .mark3d__layer {
    filter: none;
}

.mark3d__layer.is-side {
    transform: translateZ(calc(var(--z) * -2.6px));
    filter: brightness(calc(.62 - var(--k) * .34));
}

/* ---------- rings in perspective ---------- */
.pring {
    --rx: 72deg;
    --ry: 0deg;
    position: absolute;
    left: 50%;
    top: 50%;
    aspect-ratio: 1;
    border: 1px solid rgba(160, 190, 250, .26);
    border-radius: 50%;
    transform-style: preserve-3d;
    animation: pringSpin 20s linear infinite;
}

.pring::after {
    content: "";
    position: absolute;
    left: 50%;
    top: -5px;
    width: 10px;
    height: 10px;
    margin-left: -5px;
    border-radius: 50%;
    background: var(--brand-2);
    box-shadow: 0 0 16px 3px rgba(79, 147, 255, .8);
}

.pring--1 {
    width: 96%;
}

.pring--2 {
    --rx: 64deg;
    --ry: 34deg;
    width: 78%;
    border-color: rgba(30, 115, 255, .4);
    animation-duration: 14s;
    animation-direction: reverse;
}

.pring--3 {
    --rx: 80deg;
    --ry: -28deg;
    width: 116%;
    border-style: dashed;
    border-color: rgba(160, 190, 250, .14);
    animation-duration: 34s;
}

@keyframes pringSpin {
    from {
        transform: translate(-50%, -50%) rotateY(var(--ry)) rotateX(var(--rx)) rotateZ(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotateY(var(--ry)) rotateX(var(--rx)) rotateZ(360deg);
    }
}

/* ---------- services: a carousel of service tiles turning in 3D ---------- */
.sring {
    --r: clamp(150px, 15vw, 215px);
    position: absolute;
    left: 50%;
    top: 50%;
    width: 0;
    height: 0;
    transform-style: preserve-3d;
    animation: sringSpin 26s linear infinite;
}

@keyframes sringSpin {
    from {
        transform: rotateX(-14deg) rotateY(0deg);
    }

    to {
        transform: rotateX(-14deg) rotateY(-360deg);
    }
}

.sring__tile {
    position: absolute;
    left: 0;
    top: 0;
    width: clamp(96px, 9vw, 128px);
    height: clamp(118px, 11vw, 156px);
    transform: translate(-50%, -50%) rotateY(calc(var(--i) * 360deg / var(--n, 6))) translateZ(var(--r));
    transform-style: preserve-3d;
}

.sring__face {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid rgba(160, 190, 250, .24);
    border-radius: 20px;
    background: linear-gradient(160deg, rgba(30, 60, 130, .72), rgba(8, 14, 32, .86));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 20px 40px -20px rgba(0, 0, 0, .9);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    text-align: center;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.sring__face i {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--brand);
    box-shadow: 0 10px 24px -8px rgba(30, 115, 255, .9);
    font-size: 17px;
}

.sring__face--back {
    transform: rotateY(180deg);
    background: linear-gradient(160deg, rgba(20, 34, 70, .6), rgba(6, 10, 22, .8));
}

.sring__face--back::before {
    content: "";
    width: 34%;
    aspect-ratio: 1;
    border: 1px solid rgba(160, 190, 250, .3);
    border-radius: 50%;
}

.phero__art--services .mark3d {
    width: 44%;
}

/* ---------- service detail: stacked browser windows ---------- */
.bstack {
    position: absolute;
    left: 8%;
    right: 8%;
    top: 20%;
    transform-style: preserve-3d;
    animation: bstackSway 12s ease-in-out infinite;
}

@keyframes bstackSway {

    0%,
    100% {
        transform: rotateY(-20deg) rotateX(10deg);
    }

    50% {
        transform: rotateY(-8deg) rotateX(4deg) translateY(-10px);
    }
}

.bstack .browser {
    box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .95);
}

.bstack__back {
    position: absolute;
    inset: 0;
    transform: translate3d(9%, -14%, -120px);
    opacity: .55;
}

.bstack__back--2 {
    transform: translate3d(18%, -28%, -240px);
    opacity: .3;
}

.bstack__front {
    position: relative;
    transform: translateZ(40px);
}

.bstack .browser__screen {
    aspect-ratio: 16 / 10;
}

.bstack .browser__screen img {
    height: 100%;
}

/* ---------- contact: a wireframe globe ---------- */
.globe {
    --R: clamp(120px, 14vw, 200px);
    position: absolute;
    left: 50%;
    top: 50%;
    width: calc(var(--R) * 2);
    height: calc(var(--R) * 2);
    margin: calc(var(--R) * -1) 0 0 calc(var(--R) * -1);
    transform-style: preserve-3d;
    animation: globeSpin 30s linear infinite;
}

@keyframes globeSpin {
    from {
        transform: rotateZ(-14deg) rotateX(-10deg) rotateY(0deg);
    }

    to {
        transform: rotateZ(-14deg) rotateX(-10deg) rotateY(360deg);
    }
}

.globe__m,
.globe__p {
    position: absolute;
    border: 1px solid rgba(160, 190, 250, .3);
    border-radius: 50%;
}

.globe__m {
    inset: 0;
    transform: rotateY(calc(var(--i) * 30deg));
}

.globe__m:first-child {
    border-color: rgba(79, 147, 255, .7);
}

.globe__p {
    left: 50%;
    width: var(--w);
    aspect-ratio: 1;
    transform: translate(-50%, -50%) rotateX(90deg);
}

.globe__pin {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 14px;
    height: 14px;
    margin: -7px 0 0 -7px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 0 6px rgba(30, 115, 255, .25), 0 0 26px 4px rgba(79, 147, 255, .9);
    transform: rotateY(70deg) rotateX(-12deg) translateZ(var(--R));
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.globe__pin::after {
    content: "";
    position: absolute;
    inset: -10px;
    border: 1px solid rgba(79, 147, 255, .8);
    border-radius: 50%;
    animation: pinPing 2.2s ease-out infinite;
}

@keyframes pinPing {
    from {
        transform: scale(.4);
        opacity: 1;
    }

    to {
        transform: scale(2.2);
        opacity: 0;
    }
}

/* ---------- about: mission & vision ---------- */
.purpose {
    overflow-x: clip;
}

.purpose::before {
    content: "";
    position: absolute;
    right: -240px;
    top: 20%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(30, 115, 255, .14), transparent 65%);
    pointer-events: none;
}

.mv-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.mv {
    perspective: 1300px;
}

.mv__inner {
    position: relative;
    height: 100%;
    padding: clamp(30px, 4vw, 48px);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 30px;
    background:
        radial-gradient(500px circle at var(--gx, 80%) var(--gy, 0%), rgba(30, 115, 255, .16), transparent 55%),
        linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015));
    transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transform-style: preserve-3d;
    transition: transform .8s var(--ease), border-color .4s;
}

.mv:hover .mv__inner {
    border-color: rgba(79, 147, 255, .3);
}

.mv__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: clamp(36px, 5vw, 64px);
}

.mv__index {
    color: var(--brand-3);
    font-family: var(--display);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.mv .orb {
    width: 92px;
    height: 92px;
    flex: none;
    transform: translateZ(50px);
}

.mv__kicker {
    display: block;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.mv h3 {
    margin-bottom: 16px;
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 600;
    letter-spacing: -.03em;
    transform: translateZ(30px);
}

.mv p {
    color: var(--text-2);
    font-size: 16px;
}

.mv__big {
    position: absolute;
    right: -10px;
    bottom: -46px;
    color: transparent;
    font-family: var(--display);
    font-size: 220px;
    font-weight: 700;
    line-height: 1;
    -webkit-text-stroke: 1px rgba(160, 190, 250, .12);
    pointer-events: none;
}

/* ---------- service detail ---------- */
.overview__grid {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: clamp(36px, 6vw, 100px);
    align-items: start;
}

.overview__head {
    position: sticky;
    top: 120px;
}

.overview__text p {
    color: var(--text-2);
    font-size: clamp(16px, 1.4vw, 19px);
    line-height: 1.8;
}

.overview__text p + p {
    margin-top: 22px;
}

.overview__text p:first-child {
    color: var(--text);
    font-size: clamp(19px, 1.9vw, 25px);
    line-height: 1.55;
}

.dlv-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.dlv-grid .svc {
    min-height: 290px;
}

.others {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: clamp(48px, 6vw, 72px);
    padding-top: 32px;
    border-top: 1px solid var(--line);
}

.others__label {
    margin-right: 8px;
    color: var(--muted);
    font-size: 14px;
}

.others a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    color: var(--text-2);
    font-size: 14px;
    transition: border-color .3s, color .3s, background-color .3s;
}

.others a i {
    font-size: 11px;
    transition: transform .4s var(--ease);
}

.others a:hover {
    border-color: rgba(79, 147, 255, .5);
    background: rgba(30, 115, 255, .1);
    color: #fff;
}

.others a:hover i {
    transform: translateX(3px);
}

/* ---------- enquiry / contact ---------- */
.enquiry__grid,
.contact__grid {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: clamp(36px, 6vw, 90px);
    align-items: start;
}

.enquiry__grid .lead,
.contact__grid .lead {
    margin-top: 22px;
}

.cinfo {
    display: grid;
    gap: 14px;
    margin-top: 36px;
}

.cinfo__item {
    display: block;
    perspective: 900px;
}

.cinfo__card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 22px 18px 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
    transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform .7s var(--ease), border-color .4s, background-color .4s;
}

a.cinfo__item:hover .cinfo__card {
    border-color: rgba(79, 147, 255, .4);
    background-color: rgba(30, 115, 255, .06);
}

.cinfo__ico {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    flex: none;
    border-radius: 16px;
    background: linear-gradient(145deg, var(--brand-2), var(--brand) 55%, var(--navy));
    box-shadow: 0 14px 30px -12px rgba(30, 115, 255, .9), inset 0 1px 0 rgba(255, 255, 255, .3);
    color: #fff;
    font-size: 18px;
}

.cinfo__text {
    flex: 1;
    min-width: 0;
}

.cinfo__text small {
    display: block;
    color: var(--muted);
    font-size: 13px;
}

.cinfo__text b {
    display: block;
    overflow-wrap: anywhere;
    font-size: 17px;
    font-weight: 500;
}

.cinfo__go {
    color: var(--muted);
    font-size: 13px;
    transition: transform .4s var(--ease), color .3s;
}

a.cinfo__item:hover .cinfo__go {
    color: #fff;
    transform: translateX(4px);
}

.fcard {
    position: relative;
    padding: clamp(26px, 4vw, 48px);
    border: 1px solid var(--line);
    border-radius: 30px;
    background:
        radial-gradient(600px circle at 100% 0%, rgba(30, 115, 255, .14), transparent 55%),
        linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015));
    box-shadow: 0 60px 120px -60px rgba(0, 0, 0, .9);
}

.fcard__title {
    margin-bottom: 8px;
    font-size: clamp(24px, 2.4vw, 32px);
    font-weight: 600;
    letter-spacing: -.03em;
}

.fcard__sub {
    margin-bottom: 30px;
    color: var(--text-2);
}

.form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.field {
    display: grid;
    gap: 9px;
}

.field--full,
.form__foot {
    grid-column: 1 / -1;
}

.field__label {
    color: var(--text-2);
    font-size: 14px;
    font-weight: 500;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 54px;
    padding: 14px 18px;
    border: 1px solid var(--line-2);
    border-radius: 16px;
    outline: none;
    background: rgba(5, 7, 13, .55);
    color: var(--text);
    font: inherit;
    font-size: 15px;
    transition: border-color .3s, box-shadow .3s, background-color .3s;
}

.field textarea {
    min-height: 140px;
    resize: vertical;
}

.field select {
    appearance: none;
    padding-right: 44px;
    background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%);
    background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%;
    background-size: 6px 6px;
    background-repeat: no-repeat;
}

.field select option {
    background: #0b1222;
}

.field input::placeholder,
.field textarea::placeholder {
    color: #5f6782;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--brand-2);
    background-color: rgba(5, 7, 13, .8);
    box-shadow: 0 0 0 4px rgba(30, 115, 255, .18);
}

.form__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    margin-top: 6px;
}

.form__hint {
    color: var(--muted);
    font-size: 13.5px;
}

.form__note {
    grid-column: 1 / -1;
    display: none;
    padding: 14px 18px;
    border: 1px solid rgba(79, 147, 255, .35);
    border-radius: 14px;
    background: rgba(30, 115, 255, .08);
    color: var(--brand-3);
    font-size: 14px;
}

.form__note.is-on {
    display: block;
}

/* ---------- map ---------- */
.map__head {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: clamp(36px, 5vw, 56px);
}

.map__stage {
    perspective: 1600px;
}

.map__frame {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line-2);
    border-radius: 30px;
    background: var(--bg-2);
    box-shadow: 0 60px 140px -60px rgba(30, 115, 255, .45), 0 40px 80px -40px rgba(0, 0, 0, .9);
}

.map__frame iframe {
    display: block;
    width: 100%;
    height: clamp(340px, 42vw, 520px);
    border: 0;
    filter: invert(.92) hue-rotate(180deg) saturate(.7) brightness(.95) contrast(.95);
}

.map__pin {
    position: absolute;
    left: 22px;
    bottom: 22px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px 12px 12px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 18px;
    background: rgba(8, 12, 24, .78);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    pointer-events: none;
}

.map__pin .cinfo__ico {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 15px;
}

.map__pin b {
    display: block;
    font-size: 15px;
    font-weight: 600;
}

.map__pin small {
    color: var(--muted);
    font-size: 12.5px;
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
    .dlv-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .phero {
        min-height: 0;
        padding: 128px 0 72px;
    }

    .phero__inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .phero__art {
        max-width: 440px;
    }

    .mv-grid,
    .overview__grid,
    .enquiry__grid,
    .contact__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .overview__head {
        position: static;
    }
}

@media (max-width: 640px) {
    .phero {
        padding: 112px 0 56px;
    }

    .phero__actions .btn {
        flex: 1 1 auto;
    }

    .phero__art {
        max-width: 340px;
    }

    .ptag .chip__body {
        padding: 6px 12px 6px 6px;
        font-size: 12px;
    }

    .ptag .chip__body i {
        width: 26px;
        height: 26px;
        font-size: 11px;
    }

    .ptag--1 {
        left: 0;
    }

    .ptag--2 {
        right: 0;
    }

    .dlv-grid,
    .form {
        grid-template-columns: minmax(0, 1fr);
    }

    .dlv-grid .svc {
        min-height: 0;
    }

    .mv__big {
        font-size: 160px;
    }

    .form__foot .btn {
        width: 100%;
    }

    .map__frame {
        border-radius: 22px;
    }

    .map__pin {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .phero__floor,
    .mark3d__sway,
    .pring,
    .sring,
    .bstack,
    .globe,
    .globe__pin::after {
        animation: none !important;
    }

    .mark3d__sway {
        transform: rotateY(-18deg) rotateX(4deg);
    }

    .sring {
        transform: rotateX(-14deg) rotateY(-20deg);
    }

    .globe {
        transform: rotateZ(-14deg) rotateX(-10deg) rotateY(-40deg);
    }
}

.pring--hide {
    display: none;
}

/* ==========================================================
   Service pages (generated by tools/build_services.py)
   ========================================================== */

/* ---------- technologies & tools ---------- */
.tech__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    max-width: 980px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.tech__item {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 8px 20px 8px 8px;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015));
    color: var(--text);
    font-size: 14.5px;
    font-weight: 500;
    transition: border-color .3s, background-color .3s, transform .5s var(--ease);
}

.tech__item i {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    flex: none;
    border-radius: 50%;
    background: linear-gradient(145deg, #5c9bff, #1e73ff 45%, #1e3a7a);
    box-shadow: 0 10px 22px -10px rgba(30, 115, 255, .9), inset 0 1px 0 rgba(255, 255, 255, .3);
    color: #fff;
    font-size: 15px;
}

.tech__item:hover {
    border-color: rgba(79, 147, 255, .5);
    background-color: rgba(30, 115, 255, .1);
    transform: translateY(-3px);
}

/* ---------- FAQs ---------- */
.faq .lead {
    margin-top: 22px;
}

.faq__ask {
    color: var(--brand-3);
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: rgba(160, 190, 250, .4);
    transition: color .3s, text-decoration-color .3s;
}

.faq__ask:hover {
    color: #fff;
    text-decoration-color: currentColor;
}

.faq__list {
    display: grid;
    gap: 14px;
}

.faq__item {
    border: 1px solid var(--line);
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .012));
    transition: border-color .4s, background-color .4s;
}

.faq__item[open] {
    border-color: rgba(79, 147, 255, .32);
    background-color: rgba(30, 115, 255, .05);
}

.faq__item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 24px;
    color: var(--text);
    font-size: clamp(16px, 1.3vw, 18px);
    font-weight: 500;
    line-height: 1.45;
    cursor: pointer;
    list-style: none;
}

.faq__item summary::-webkit-details-marker {
    display: none;
}

.faq__item summary:focus-visible {
    outline: 2px solid var(--brand-2);
    outline-offset: 4px;
    border-radius: 22px;
}

.faq__item summary i {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    flex: none;
    border: 1px solid var(--line-2);
    border-radius: 50%;
    font-size: 12px;
    transition: transform .5s var(--ease), background-color .3s, border-color .3s;
}

.faq__item[open] summary i {
    border-color: var(--brand);
    background: var(--brand);
    transform: rotate(45deg);
}

.faq__body {
    padding: 0 24px 24px;
}

.faq__body p {
    max-width: 640px;
    color: var(--text-2);
    font-size: 15.5px;
    line-height: 1.75;
}

/* ---------- services list: directory of every sub-service ---------- */
.catalog__list {
    border-top: 1px solid var(--line);
}

.cat {
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
    gap: clamp(28px, 4vw, 64px);
    padding: clamp(32px, 4vw, 48px) 0;
    border-bottom: 1px solid var(--line);
    scroll-margin-top: 110px;
}

.cat__head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    column-gap: 18px;
    align-items: start;
}

.cat__num {
    grid-column: 1 / -1;
    margin-bottom: 18px;
    color: var(--brand-3);
    font-family: var(--display);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .18em;
}

.cat__head .svc__icon {
    /* the phone layout of .svc cards gives .svc__icon a named grid area; pin it here */
    grid-area: auto;
    grid-column: 1;
    grid-row: 2;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    font-size: 21px;
}

.cat h3 {
    margin-bottom: 8px;
    font-size: clamp(21px, 2vw, 26px);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -.02em;
}

.cat h3 a {
    transition: color .3s;
}

.cat h3 a:hover {
    color: var(--brand-3);
}

.cat__head p {
    color: var(--text-2);
    font-size: 15px;
}

.cat__more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
}

.cat__more i {
    font-size: 11px;
    transition: transform .4s var(--ease);
}

.cat__more:hover i {
    transform: translateX(4px);
}

.cat__links {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cat__links a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px 9px 10px;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    color: var(--text-2);
    font-size: 14px;
    transition: border-color .3s, color .3s, background-color .3s;
}

.cat__links a i {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    flex: none;
    border-radius: 50%;
    background: rgba(30, 115, 255, .16);
    color: var(--brand-3);
    font-size: 11px;
    transition: background-color .3s, color .3s;
}

.cat__links a:hover {
    border-color: rgba(79, 147, 255, .5);
    background: rgba(30, 115, 255, .1);
    color: #fff;
}

.cat__links a:hover i {
    background: var(--brand);
    color: #fff;
}

@media (max-width: 991px) {
    .cat {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
    }
}

@media (max-width: 640px) {
    .tech__list {
        justify-content: flex-start;
        gap: 10px;
    }

    .tech__item {
        padding: 6px 14px 6px 6px;
        font-size: 13px;
    }

    .tech__item i {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }

    .faq__item summary {
        padding: 18px;
    }

    .faq__body {
        padding: 0 18px 20px;
    }

    .cat__links a {
        font-size: 13px;
    }
}

/* ==========================================================
   Blog & News (generated by tools/build_blog.py)
   ========================================================== */

/* filter chips (blog topics, gallery categories) */
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: clamp(28px, 4vw, 44px);
}

.filter {
    padding: 10px 18px;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    background: transparent;
    color: var(--text-2);
    font: 500 14px var(--font);
    cursor: pointer;
    transition: color .3s, border-color .3s, background-color .3s, box-shadow .3s;
}

.filter:hover {
    border-color: rgba(79, 147, 255, .5);
    color: #fff;
}

.filter[aria-pressed="true"] {
    border-color: var(--brand);
    background: var(--brand);
    box-shadow: 0 8px 22px -8px rgba(30, 115, 255, .9);
    color: #fff;
}

.filter:focus-visible {
    outline: 2px solid var(--brand-2);
    outline-offset: 3px;
}

.filters__empty {
    padding: 40px 0;
    color: var(--muted);
    text-align: center;
}

/* latest article: one wide card */
.feat {
    display: block;
    perspective: 1400px;
}

.feat__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015));
    transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform .8s var(--ease), border-color .4s;
}

.feat:hover .feat__inner {
    border-color: rgba(79, 147, 255, .32);
}

.feat__cover .cover {
    height: 100%;
    min-height: 340px;
}

.feat__cover .cover__icon {
    max-width: 120px;
}

.feat__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(28px, 4vw, 56px);
}

.feat__title {
    display: block;
    margin: 18px 0 16px;
    color: var(--text);
    font-size: clamp(26px, 3vw, 40px);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -.03em;
}

.feat__excerpt {
    color: var(--text-2);
    font-size: 16.5px;
}

.feat__btn {
    align-self: flex-start;
    margin-top: 30px;
}

/* article hero */
.phero--post {
    min-height: min(820px, 100svh);
}

.phero__title--post {
    font-size: clamp(34px, 4.3vw, 62px);
    line-height: 1.06;
}

.pmeta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.pmeta > span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 14px;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    color: var(--text-2);
    font-size: 13.5px;
}

.pmeta i {
    color: var(--brand-2);
}

/* article body + sidebar */
.article__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: clamp(40px, 6vw, 90px);
    align-items: start;
}

.prose {
    max-width: 740px;
}

.prose p {
    margin: 0 0 22px;
    color: var(--text-2);
    font-size: clamp(16px, 1.25vw, 18px);
    line-height: 1.85;
}

.prose > p:first-child {
    color: var(--text);
    font-size: clamp(19px, 1.7vw, 23px);
    line-height: 1.6;
}

.prose h2 {
    margin: 52px 0 18px;
    font-size: clamp(24px, 2.4vw, 32px);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -.03em;
    scroll-margin-top: 110px;
}

.prose h3 {
    margin: 32px 0 12px;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -.02em;
}

.prose a {
    color: var(--brand-3);
    text-decoration: underline;
    text-decoration-color: rgba(160, 190, 250, .4);
    text-underline-offset: 4px;
    transition: color .3s, text-decoration-color .3s;
}

.prose a:hover {
    color: #fff;
    text-decoration-color: currentColor;
}

.prose ul,
.prose ol {
    display: grid;
    gap: 12px;
    margin: 0 0 28px;
    padding: 0;
    list-style: none;
}

.prose li {
    position: relative;
    padding-left: 36px;
    color: var(--text-2);
    font-size: clamp(15.5px, 1.2vw, 17px);
    line-height: 1.7;
}

.prose ul li::before {
    content: "";
    position: absolute;
    left: 5px;
    top: .5em;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--brand-2) 0 3px, rgba(30, 115, 255, .2) 4px);
}

.prose ol {
    counter-reset: step;
}

.prose ol li {
    counter-increment: step;
}

.prose ol li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: .15em;
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font: 600 12px var(--display);
}

.prose__tip {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin: 30px 0;
    padding: 20px 22px;
    border: 1px solid rgba(79, 147, 255, .32);
    border-radius: 20px;
    background: rgba(30, 115, 255, .07);
}

.prose .prose__tip p {
    margin: 0;
    color: var(--text);
}

.prose__tip-ico {
    flex: none;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--brand);
    box-shadow: 0 10px 22px -8px rgba(30, 115, 255, .9);
    color: #fff;
}

.prose blockquote {
    margin: 38px 0;
    padding: 4px 0 4px 26px;
    border-left: 3px solid var(--brand);
}

.prose blockquote p {
    margin: 0;
    color: var(--text);
    font-size: clamp(20px, 2vw, 26px);
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: -.01em;
}

.article__tags {
    margin-top: 48px;
}

.article__aside {
    position: sticky;
    top: 110px;
    display: grid;
    gap: 18px;
}

.aside-card {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015));
}

.aside-card__title {
    margin-bottom: 14px;
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.toc {
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: toc;
}

.toc li {
    counter-increment: toc;
}

.toc a {
    display: flex;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 12px;
    color: var(--text-2);
    font-size: 14px;
    line-height: 1.45;
    transition: background-color .3s, color .3s;
}

.toc a::before {
    content: counter(toc, decimal-leading-zero);
    padding-top: 1px;
    color: var(--brand-2);
    font: 600 12px var(--display);
}

.toc a:hover,
.toc a.is-current {
    background: rgba(30, 115, 255, .12);
    color: #fff;
}

.aside-svc {
    display: grid;
    gap: 10px;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}

.aside-svc a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    font-size: 14.5px;
    font-weight: 500;
    line-height: 1.35;
    transition: color .3s;
}

.aside-svc a:hover {
    color: var(--brand-3);
}

.aside-svc i {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    flex: none;
    border-radius: 11px;
    background: linear-gradient(145deg, #5c9bff, #1e73ff 45%, #1e3a7a);
    box-shadow: 0 10px 22px -10px rgba(30, 115, 255, .9);
    color: #fff;
    font-size: 14px;
}

.aside-card__btn {
    width: 100%;
    justify-content: center;
}

.share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 0 4px;
}

.share__label {
    margin-right: 4px;
    color: var(--muted);
    font-size: 13px;
}

.share a {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-2);
    border-radius: 50%;
    color: var(--text-2);
    font-size: 14px;
    transition: background-color .3s, border-color .3s, color .3s;
}

.share a:hover {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
}

/* ==========================================================
   Gallery (generated by tools/build_gallery.py)
   ========================================================== */
.sring__face--img {
    padding: 0;
    overflow: hidden;
}

.sring__face--img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.phero__art--gallery .sring {
    --r: clamp(160px, 16vw, 230px);
}

.phero__art--gallery .sring__tile {
    width: clamp(104px, 9.6vw, 140px);
    height: clamp(132px, 12vw, 176px);
}

.gal {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: clamp(200px, 21vw, 280px);
    grid-auto-flow: dense;
    gap: 18px;
}

.gal__item {
    position: relative;
    display: block;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    perspective: 1000px;
    cursor: pointer;
}

.gal__item[hidden] {
    display: none;
}

.gal__item--wide {
    grid-column: span 2;
}

.gal__item--tall {
    grid-row: span 2;
}

.gal__frame {
    position: absolute;
    inset: 0;
    display: block;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--bg-2);
    box-shadow: 0 30px 60px -36px rgba(0, 0, 0, .9);
    transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform .7s var(--ease), border-color .4s, box-shadow .5s;
}

.gal__frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease);
}

.gal__item:hover .gal__frame {
    border-color: rgba(79, 147, 255, .4);
    box-shadow: 0 40px 80px -30px rgba(30, 115, 255, .35);
}

.gal__item:hover .gal__frame img {
    transform: scale(1.05);
}

/* full-length website screenshots scroll through the page on hover */
.gal__item[data-scroll] .gal__frame img {
    object-position: 50% 0;
    transition: object-position 7s cubic-bezier(.45, 0, .55, 1);
}

.gal__item[data-scroll]:hover .gal__frame img {
    object-position: 50% 100%;
    transform: none;
}

.gal__item:focus-visible {
    outline: none;
}

.gal__item:focus-visible .gal__frame {
    outline: 2px solid var(--brand-2);
    outline-offset: 3px;
}

.gal__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5, 7, 13, .92), rgba(5, 7, 13, .25) 42%, transparent 68%);
    transition: opacity .5s;
}

.gal__item[data-scroll]:hover .gal__shade {
    opacity: .5;
}

.gal__cap {
    position: absolute;
    left: 20px;
    right: 68px;
    bottom: 18px;
    display: grid;
    gap: 2px;
}

.gal__cap small {
    color: var(--brand-3);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.gal__cap b {
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
}

.gal__cap span {
    color: var(--text-2);
    font-size: 13px;
    line-height: 1.45;
}

.gal__zoom {
    position: absolute;
    right: 16px;
    bottom: 16px;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 50%;
    background: rgba(12, 18, 36, .6);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 13px;
    transition: background-color .3s, border-color .3s;
}

.gal__item:hover .gal__zoom {
    border-color: var(--brand);
    background: var(--brand);
}

/* lightbox */
.lb {
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: transparent;
    color: var(--text);
}

.lb[open] {
    display: grid;
    place-items: center;
}

.lb::backdrop {
    background: rgba(3, 5, 10, .88);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.lb__stage {
    width: min(1100px, calc(100vw - 160px));
    perspective: 1600px;
}

.lb__fig {
    display: grid;
    gap: 14px;
    margin: 0;
    transform-origin: 50% 100%;
    animation: lbIn .7s var(--ease);
}

@keyframes lbIn {
    from {
        opacity: 0;
        transform: rotateX(16deg) translateY(40px) scale(.94);
    }
}

.lb__media {
    display: grid;
    place-items: center;
    max-height: calc(100dvh - 170px);
    overflow: hidden;
    border: 1px solid var(--line-2);
    border-radius: 22px;
    background: var(--bg-2);
}

.lb__img {
    max-width: 100%;
    max-height: calc(100dvh - 170px);
    object-fit: contain;
}

.lb.is-scroll .lb__media {
    place-items: start center;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.lb.is-scroll .lb__img {
    width: 100%;
    max-height: none;
}

.lb__cap {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 14px;
}

.lb__title {
    font-size: 18px;
    font-weight: 600;
}

.lb__text {
    color: var(--text-2);
    font-size: 14.5px;
}

.lb__btn {
    position: fixed;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 50%;
    background: rgba(12, 18, 36, .6);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: background-color .3s, border-color .3s;
}

.lb__btn:hover,
.lb__btn:focus-visible {
    border-color: var(--brand);
    background: var(--brand);
    outline: none;
}

.lb__close {
    top: 20px;
    right: 20px;
}

.lb__prev,
.lb__next {
    top: 50%;
    transform: translateY(-50%);
}

.lb__prev {
    left: 24px;
}

.lb__next {
    right: 24px;
}

.lb__count {
    position: fixed;
    top: 36px;
    left: 26px;
    color: var(--muted);
    font: 600 13px var(--display);
    letter-spacing: .14em;
}

@media (max-width: 1100px) {
    .article__grid {
        grid-template-columns: minmax(0, 1fr) 280px;
    }
}

@media (max-width: 991px) {
    .feat__inner,
    .article__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .feat__cover .cover {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .article__aside {
        position: static;
    }

    .prose {
        max-width: none;
    }

    .gal {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .phero--post {
        min-height: 0;
    }

    .pmeta > span {
        padding: 6px 12px;
        font-size: 12.5px;
    }

    .feat__body {
        padding: 22px;
    }

    .gal {
        grid-auto-rows: 150px;
        gap: 12px;
    }

    .gal__frame {
        border-radius: 18px;
    }

    .gal__cap {
        left: 14px;
        right: 50px;
        bottom: 12px;
    }

    .gal__cap b {
        font-size: 14.5px;
    }

    .gal__cap span,
    .gal__cap small {
        display: none;
    }

    .gal__zoom {
        right: 10px;
        bottom: 10px;
        width: 32px;
        height: 32px;
        font-size: 11px;
    }

    .lb__stage {
        width: calc(100vw - 32px);
    }

    .lb__media,
    .lb__img {
        max-height: calc(100dvh - 200px);
    }

    .lb__prev,
    .lb__next {
        top: auto;
        bottom: 20px;
        transform: none;
    }

    .lb__prev {
        left: calc(50% - 62px);
    }

    .lb__next {
        right: calc(50% - 62px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .lb__fig {
        animation: none;
    }

    .gal__item[data-scroll] .gal__frame img {
        transition: none;
    }
}

/* ---------- gallery: YouTube videos ---------- */
.gal__play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    margin: -36px 0 0 -36px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 18px 40px -10px rgba(30, 115, 255, .95), inset 0 1px 0 rgba(255, 255, 255, .35);
    color: #fff;
    font-size: 22px;
    transition: transform .6s var(--ease);
}

.gal__play i {
    margin-left: 4px;
}

.gal__play::before {
    content: "";
    position: absolute;
    inset: -10px;
    border: 1px solid rgba(79, 147, 255, .8);
    border-radius: 50%;
    animation: pinPing 2.4s ease-out infinite;
}

.gal__item--video:hover .gal__play {
    transform: scale(1.1);
}

.gal__item--video .gal__shade {
    background: linear-gradient(to top, rgba(5, 7, 13, .92), rgba(5, 7, 13, .35) 45%, rgba(5, 7, 13, .15));
}

.lb.is-video .lb__stage {
    width: min(1100px, calc(100vw - 160px), calc((100dvh - 170px) * 16 / 9));
}

.lb.is-video .lb__img {
    display: none;
}

.lb.is-video .lb__media {
    display: block;
}

.lb__video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
}

@media (max-width: 640px) {
    .gal__play {
        width: 52px;
        height: 52px;
        margin: -26px 0 0 -26px;
        font-size: 16px;
    }

    .lb.is-video .lb__stage {
        width: calc(100vw - 32px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .gal__play::before {
        animation: none;
    }
}

/* ==========================================================
   Portfolio (generated by tools/build_portfolio.py)
   ========================================================== */
.pgrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.pcard {
    display: flex;
}

.pcard[hidden] {
    display: none;
}

.pcard__link {
    flex: 1;
    display: flex;
    perspective: 1300px;
}

.pcard__inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015));
    transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform .8s var(--ease), border-color .4s;
}

.pcard__link:hover .pcard__inner {
    border-color: rgba(79, 147, 255, .32);
}

/* the preview sits in its own little 3D scene and straightens up on hover */
.pcard__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    perspective: 1100px;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(90% 80% at 50% 0%, rgba(79, 147, 255, .35), transparent 60%),
        linear-gradient(160deg, #0f2150, #060a18 72%);
}

.pcard__browser {
    position: absolute;
    left: 9%;
    right: 9%;
    top: 12%;
    -webkit-box-reflect: unset;
    box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .95);
    transform: rotateX(14deg) translateY(4%);
    transform-origin: 50% 0%;
    transition: transform 1s var(--ease);
}

.pcard__browser .browser__screen {
    aspect-ratio: 16 / 9;
}

.pcard__browser.is-tall .browser__screen img {
    object-position: 50% 0;
    transition: object-position 6s cubic-bezier(.45, 0, .55, 1);
}

.pcard__link:hover .pcard__browser {
    transform: rotateX(0deg) translateY(-2%);
}

.pcard__link:hover .pcard__browser.is-tall .browser__screen img {
    object-position: 50% 100%;
}

.pcard__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease);
}

.pcard__link:hover .pcard__photo {
    transform: scale(1.05);
}

.pcard__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 24px 26px 26px;
}

.pcard__title {
    display: block;
    margin: 14px 0 8px;
    color: var(--text);
    font-size: clamp(22px, 2vw, 28px);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -.025em;
}

.pcard__text {
    display: block;
    color: var(--text-2);
    font-size: 15px;
    line-height: 1.65;
}

.pcard__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.pcard__tags span {
    padding: 5px 11px;
    border: 1px solid var(--line-2);
    border-radius: 999px;
    color: var(--text-2);
    font-size: 12.5px;
}

/* project page: facts, highlights, screens */
.facts {
    display: grid;
    gap: 0;
    margin: 32px 0 0;
    border-top: 1px solid var(--line);
}

.facts > div {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.facts dt {
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.facts dd {
    margin: 0;
    color: var(--text);
    font-size: 15px;
    line-height: 1.6;
}

.facts a {
    color: var(--brand-3);
    transition: color .3s;
}

.facts a:hover {
    color: #fff;
}

.hl-list {
    display: grid;
    gap: 12px;
    margin: 30px 0 0;
    padding: 0;
    list-style: none;
}

.hl-list li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    color: var(--text-2);
    font-size: 16px;
    line-height: 1.6;
}

.hl-list i {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    flex: none;
    margin-top: 1px;
    border-radius: 50%;
    background: rgba(30, 115, 255, .18);
    color: var(--brand-3);
    font-size: 11px;
}

.screens__list {
    display: grid;
    gap: clamp(28px, 4vw, 48px);
    max-width: 1080px;
    margin: 0 auto;
}

.pscreen__browser {
    -webkit-box-reflect: unset;
}

/* the full page scrolls inside the frame as the visitor scrolls (set up by the script) */
.pscreen__browser[data-scroll-screen] .browser__screen {
    aspect-ratio: auto;
    height: min(680px, 72vh);
}

.pscreen__browser[data-scroll-screen] .browser__screen img {
    height: auto;
    object-fit: initial;
    will-change: transform;
}

.pscreen__hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
    color: var(--muted);
    font-size: 13.5px;
}

/* extra project images (logos, posters, app screens...): even tiles, each picture shown whole */
.pshots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 340px));
    justify-content: center;
    gap: clamp(16px, 2vw, 24px);
}

.pshots--after {
    margin-top: clamp(40px, 6vw, 72px);
}

.pshots__item {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border: 1px solid var(--line-2);
    border-radius: 22px;
    background: radial-gradient(90% 60% at 50% 0%, rgba(30, 115, 255, .16), transparent 70%), var(--bg-2);
    box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9);
    transition: border-color .4s, box-shadow .6s var(--ease);
}

.pshots__item img {
    position: absolute;
    inset: 18px;
    width: calc(100% - 36px);
    height: calc(100% - 36px);
    object-fit: contain;
    transition: transform .9s var(--ease);
}

.pshots__item:hover,
.pshots__item:focus-visible {
    border-color: rgba(79, 147, 255, .45);
    box-shadow: 0 40px 90px -40px rgba(30, 115, 255, .55);
    outline: none;
}

.pshots__item:hover img {
    transform: scale(1.04);
}

/* round "view full size" badge on portfolio images */
.pzoom {
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 2;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 50%;
    background: rgba(12, 18, 36, .6);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: #fff;
    font-size: 15px;
    transition: transform .5s var(--ease), background-color .3s, border-color .3s;
}

.pshots__item:hover .pzoom,
.pshots__item:focus-visible .pzoom,
.showcase__frame:hover .pzoom,
.showcase__frame:focus-visible .pzoom {
    border-color: var(--brand);
    background: var(--brand);
    transform: scale(1.08);
}

/* ---------- "In real life": the device mockup photo on a lit stage ---------- */
.showcase__panel {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: clamp(36px, 5vw, 80px);
    align-items: center;
    padding: clamp(26px, 5.5vw, 76px);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: clamp(26px, 4vw, 44px);
    background:
        radial-gradient(55% 75% at 72% 48%, rgba(30, 115, 255, .2), transparent 70%),
        linear-gradient(155deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .012) 55%),
        var(--bg-2);
    box-shadow: 0 60px 120px -50px rgba(0, 0, 0, .95), inset 0 1px 0 rgba(255, 255, 255, .07);
}

/* moving grid floor, like the page hero and the call-to-action panel */
.showcase__floor {
    position: absolute;
    left: -50%;
    right: -50%;
    bottom: -38%;
    z-index: -1;
    height: 80%;
    background-image: linear-gradient(rgba(79, 147, 255, .16) 1px, transparent 1px), linear-gradient(90deg, rgba(79, 147, 255, .16) 1px, transparent 1px);
    background-size: 60px 60px;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 55%);
    mask-image: linear-gradient(180deg, transparent, #000 55%);
    transform: perspective(420px) rotateX(62deg);
    transform-origin: 50% 0;
    animation: floorMove 2.6s linear infinite;
    pointer-events: none;
}

/* "in real life." moves to its own line as one piece */
.showcase__text .grad {
    display: inline-block;
}

.showcase__lead {
    max-width: 34ch;
    margin: 20px 0 0;
    color: var(--text-2);
    font-size: 16.5px;
    line-height: 1.7;
}

.showcase__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.showcase__visual {
    position: relative;
    display: flex;
    justify-content: center;
    padding: 26px 0 44px;          /* room for the floating tags and the floor shadow */
}

.showcase__glow {
    position: absolute;
    left: 50%;
    top: 46%;
    z-index: -1;
    width: 96%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(30, 115, 255, .42), rgba(30, 115, 255, .1) 55%, transparent);
    transform: translate(-50%, -50%);
    filter: blur(18px);
    pointer-events: none;
}

/* the photo and its tags lean towards the pointer (data-tilt sets --rx / --ry / --gx / --gy) */
.showcase__tilt {
    position: relative;
    min-width: 0;
    max-width: 100%;
    transform: perspective(1300px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transform-style: preserve-3d;
    transition: transform .7s var(--ease);
}

.showcase__frame {
    position: relative;
    display: block;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 24px;
    background: #0d1322;
    box-shadow: 0 50px 100px -35px rgba(0, 0, 0, .95), 0 30px 90px -40px rgba(30, 115, 255, .6);
    transform: translateZ(0);
}

/* shown at its own size or smaller, never stretched; tall phone mockups are capped in height */
.showcase__frame img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: min(620px, 72vh);
    transition: transform 1.2s var(--ease);
}

/* size known from the file: the frame is laid out at its final size before the photo arrives,
   with the same limits (column width, the photo's own width, the height cap) */
.showcase__visual.has-size .showcase__tilt {
    width: min(100%, calc(var(--w) * 1px), calc(min(620px, 72vh) * var(--w) / var(--h)));
}

.showcase__visual.has-size .showcase__frame img {
    width: 100%;
    max-height: none;
    aspect-ratio: var(--w) / var(--h);
}

.showcase__frame:hover img {
    transform: scale(1.035);
}

.showcase__frame:focus-visible {
    outline: 2px solid var(--brand-2);
    outline-offset: 4px;
}

/* soft light that follows the pointer */
.showcase__glare {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--gx, 30%) var(--gy, 20%), rgba(255, 255, 255, .3), transparent 50%);
    mix-blend-mode: soft-light;
    opacity: 0;
    transition: opacity .5s;
    pointer-events: none;
}

.showcase__visual:hover .showcase__glare {
    opacity: 1;
}

/* glass tags floating in front of the photo (they use the hero's .chip__body look) */
.showcase__chip {
    position: absolute;
    z-index: 3;
    transform: translateZ(70px);
    pointer-events: none;
}

.showcase__chip--1 {
    top: 9%;
    left: -28px;
}

.showcase__chip--2 {
    right: -24px;
    bottom: 22%;
}

.showcase__chip--2 .chip__float {
    animation-delay: -3s;
}

.showcase__shadow {
    position: absolute;
    left: 50%;
    bottom: 8px;
    z-index: -1;
    width: 66%;
    height: 36px;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(0, 0, 0, .8), transparent);
    transform: translateX(-50%);
    filter: blur(8px);
    pointer-events: none;
}

/* the image viewer with a single picture has nothing to step through */
.lb.is-single .lb__prev,
.lb.is-single .lb__next,
.lb.is-single .lb__count {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    .showcase__floor,
    .showcase__chip .chip__float {
        animation: none;
    }

    .showcase__frame img,
    .pshots__item img {
        transition: none;
    }
}

@media (max-width: 991px) {
    .facts > div {
        grid-template-columns: 100px minmax(0, 1fr);
    }

    .showcase__panel {
        grid-template-columns: minmax(0, 1fr);
    }

    .showcase__lead {
        max-width: 52ch;
    }
}

@media (max-width: 760px) {
    .pgrid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .pcard__body {
        padding: 20px;
    }

    .pscreen__browser[data-scroll-screen] .browser__screen {
        height: 62vh;
    }

    .showcase__visual {
        padding: 22px 0 36px;
    }

    .showcase__frame {
        border-radius: 18px;
    }

    /* opposite corners, clear of the full-size button */
    .showcase__chip--1 {
        top: -14px;
        right: -6px;
        left: auto;
    }

    .showcase__chip--2 {
        right: auto;
        bottom: -16px;
        left: -6px;
    }

    .showcase__chip .chip__body {
        gap: 8px;
        padding: 6px 12px 6px 6px;
        font-size: 12px;
    }

    .showcase__chip .chip__body i {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }

    .pzoom {
        right: 12px;
        bottom: 12px;
        width: 38px;
        height: 38px;
        font-size: 13px;
    }
}

/* a button in place of the lead text in a section heading keeps its natural size */
.sec-head > .btn {
    justify-self: end;
    align-self: end;
}

@media (max-width: 991px) {
    .sec-head > .btn {
        justify-self: start;
    }
}
