/* ==========================================================
   SOLSPRO v3, built from the logo
   Black, sky blue and white. Two shapes come straight from the logo:
   the pixel squares and the white tagline bar with its blue corner.
   ========================================================== */

:root {
  --bg: #05070A;
  --bg-2: #0A0E14;
  --panel: #10151D;
  --line: rgba(255, 255, 255, .14);
  --text: #F2F5F8;
  --muted: #A3AEBA;

  --brand: #1396CE;        /* sampled from the logo */
  --brand-hi: #4DB6EA;
  --brand-ink: #0B6A99;    /* brand blue for small text on white */
  --on-brand: #000;        /* black on brand blue reads best (6:1) */

  --display: "Saira", "Segoe UI", Arial, sans-serif;
  --body: "Barlow", "Segoe UI", Arial, sans-serif;
  --ease: cubic-bezier(.22, .8, .18, 1);
  --pad: clamp(20px, 4vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  background: var(--bg);
  color: var(--text);
  font: 400 1.125rem/1.65 var(--body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
address { font-style: normal; }
::selection { background: var(--brand); color: #000; }
:focus-visible { outline: 3px solid var(--brand-hi); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -80px; z-index: 2000; background: #fff; color: #000; padding: 12px 18px; font: 600 1rem var(--display); transition: top .3s; }
.skip:focus { top: 16px; }

.h2 { font: 800 clamp(2.4rem, 5.4vw, 4.9rem)/1 var(--display); letter-spacing: -.025em; }

/* The corner from the logo's tagline bar: a blue right triangle in the bottom-right.
   Any element with .corner gets it; the colour can be overridden with --tri. */
.corner { position: relative; }
.corner::after { content: ""; position: absolute; right: 0; bottom: 0; width: clamp(34px, 4.4vw, 56px); aspect-ratio: 1; background: var(--tri, var(--brand)); clip-path: polygon(100% 0, 100% 100%, 0 100%); pointer-events: none; }

/* word masks used by the headline reveals */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.wi { display: inline-block; will-change: transform; }

/* ---------- intro: pixel wall ---------- */
.curtain { display: none; }
.js .curtain { position: fixed; inset: 0; z-index: 1500; display: grid; place-items: center; overflow: hidden; background: #000; }
.curtain.built { background: transparent; }
.curtain__grid { position: absolute; inset: 0; display: grid; }
.curtain__grid i { display: block; background: #000; }
.curtain__grid i.b { background: var(--brand); }
.curtain__logo { position: relative; z-index: 1; width: min(70vw, 620px); height: auto; }

/* ---------- scroll bar + cursor ---------- */
.bar { position: fixed; left: 0; top: 0; height: 4px; width: 100%; background: var(--brand); transform: scaleX(0); transform-origin: left; z-index: 700; }
.cur { position: fixed; left: 0; top: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; background: #fff; border: 2px solid #000; box-shadow: 0 0 0 1px #fff; pointer-events: none; z-index: 1200; display: none; transition: width .25s var(--ease), height .25s var(--ease), margin .25s var(--ease), background .25s; }
.cur.is-big { width: 46px; height: 46px; margin: -23px 0 0 -23px; background: rgba(255, 255, 255, .14); }
.has-cur .cur { display: block; }
.has-cur, .has-cur a, .has-cur button { cursor: none; }

/* ---------- header ---------- */
.hdr { position: fixed; inset: 0 0 auto 0; z-index: 800; transition: transform .5s var(--ease); }
.hdr::before { content: ""; position: absolute; inset: 0; background: rgba(5, 7, 10, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); opacity: 0; transition: opacity .4s; }
.hdr.is-solid::before { opacity: 1; }
.hdr.is-hidden { transform: translateY(-100%); }
.hdr__in { position: relative; display: flex; align-items: center; gap: 28px; padding: 14px var(--pad); }
.brand { display: inline-block; position: relative; z-index: 2; }
.brand img { height: 52px; width: auto; transition: transform .5s var(--ease); }
.brand:hover img { transform: scale(1.05); }
.nav { margin-left: auto; display: flex; gap: 6px; }
.nav a { position: relative; padding: 8px 14px; font: 500 1rem var(--display); }
.nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px; background: var(--brand); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.hdr__call { display: inline-flex; align-items: center; gap: 10px; padding: 10px 20px; background: #fff; color: #000; font: 600 .95rem var(--display);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%); transition: background .3s; }
.hdr__call:hover { background: var(--brand); }
.live { width: 9px; height: 9px; background: var(--brand); animation: live 2s infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(19, 150, 206, .7); } 70%, 100% { box-shadow: 0 0 0 10px rgba(19, 150, 206, 0); } }
.burger { display: none; position: relative; z-index: 2; width: 46px; height: 46px; margin-left: auto; }
.burger i { position: absolute; left: 11px; right: 11px; height: 2px; background: #fff; transition: transform .45s var(--ease), top .45s var(--ease); }
.burger i:nth-of-type(1) { top: 19px; }
.burger i:nth-of-type(2) { top: 26px; }
.burger[aria-expanded="true"] i:nth-of-type(1) { top: 22px; transform: rotate(45deg); }
.burger[aria-expanded="true"] i:nth-of-type(2) { top: 22px; transform: rotate(-45deg); }

/* ---------- buttons: bottom-right corner cut, like the logo's bar ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; padding: 1.1em 2.1em; font: 700 1rem/1 var(--display); letter-spacing: .01em; overflow: hidden; isolation: isolate;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%); transition: color .35s, transform .35s var(--ease); }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--fill); transform: translateX(-101%); transition: transform .5s var(--ease); }
.btn:hover::before { transform: none; }
.btn--solid { background: var(--brand); color: #000; --fill: #fff; }
.btn--white { background: #fff; color: #000; --fill: var(--brand); }
.btn[hidden] { display: none; }

/* ---------- tagline bar (the logo's white strip) ---------- */
.tagbar { position: relative; display: inline-block; background: #fff; color: #000; padding: .6em 3.4em .6em 1.2em; font: 600 .8rem/1 var(--display); letter-spacing: .32em; text-transform: uppercase; }
.tagbar::after { content: ""; position: absolute; right: 0; bottom: 0; width: 1.9rem; height: 100%; background: var(--brand); clip-path: polygon(100% 0, 100% 100%, 0 100%); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 84px); align-items: center; padding: clamp(112px, 15vh, 160px) var(--pad) 86px; overflow: hidden; }
.hero__px { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__copy, .stage { position: relative; z-index: 1; }
.hero__tagbar { margin-bottom: 30px; }
.hero__title { font: 800 clamp(2.7rem, 6vw, 6.2rem)/.98 var(--display); letter-spacing: -.03em; margin-bottom: .4em; max-width: 12em; }
.hero__lead { max-width: 33em; font-size: clamp(1.1rem, 1.5vw, 1.3rem); color: var(--muted); margin-bottom: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__foot { position: absolute; left: var(--pad); bottom: 26px; z-index: 1; display: flex; align-items: center; gap: 14px; font: 500 .9rem var(--display); color: var(--muted); }
.hero__line { width: 54px; height: 2px; background: var(--brand); transform-origin: left; animation: stretch 2.4s var(--ease) infinite; }
@keyframes stretch { 0% { transform: scaleX(0); } 55% { transform: scaleX(1); transform-origin: left; } 56% { transform-origin: right; } 100% { transform: scaleX(0); transform-origin: right; } }

/* logo stage */
.stage { perspective: 1400px; }
.stage__frame { --fx: clamp(22px, 3.2vw, 44px); position: relative; background: rgba(5, 7, 10, .9); border: 1px solid rgba(19, 150, 206, .6); padding: clamp(30px, 4vw, 58px) var(--fx) 0; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease-out; }
.js:not(.intro-done) .stage__frame { transition: none; }
.stage__logo { width: 100%; height: auto; }
.stage__bar { position: relative; display: flex; align-items: baseline; gap: .6em; margin: clamp(26px, 3.4vw, 46px) calc(-1 * var(--fx) - 1px) -1px; padding: .95em 4.4em .95em var(--fx); background: #fff; color: #000; font: 600 clamp(1rem, 1.5vw, 1.2rem)/1.3 var(--display); }
.stage__bar::after { content: ""; position: absolute; right: 0; bottom: 0; width: 3.4em; height: 100%; background: var(--brand); clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.swap { position: relative; display: inline-block; flex: 1; height: 1.3em; overflow: hidden; color: var(--brand-ink); font-weight: 700; }
.swap em { position: absolute; left: 0; top: 0; font-style: normal; white-space: nowrap; transform: translateY(115%); transition: transform .6s var(--ease); }
.swap em.on { transform: none; }
.swap em.out { transform: translateY(-115%); }
.px { position: absolute; background: var(--brand); translate: 0 0; animation: bobpx 5s ease-in-out infinite; }
.px--1 { width: 22px; height: 22px; top: -11px; left: 17%; }
.px--2 { width: 12px; height: 12px; top: 22px; left: 22%; background: var(--brand-hi); animation-delay: -1.7s; }
.px--3 { width: 16px; height: 16px; top: -8px; right: 9%; animation-delay: -3.2s; }
@keyframes bobpx { 50% { translate: 0 -9px; } }

/* ---------- ticker ---------- */
.ticker { overflow: hidden; background: var(--brand); color: #000; padding: 20px 0 24px; }
.ticker__track { display: flex; width: max-content; animation: tick 46s linear infinite; }
.ticker__group { display: flex; flex: none; }
.ticker span { position: relative; flex: none; padding-right: 1.3em; font: 800 clamp(2.2rem, 5vw, 4.6rem)/1 var(--display); letter-spacing: -.02em; white-space: nowrap; }
.ticker span::after { content: ""; position: absolute; right: .42em; top: 52%; width: .24em; height: .24em; margin-top: -.12em; background: #000; }
.ticker span:nth-child(even) { color: transparent; -webkit-text-stroke: 2px #000; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 110px); padding: clamp(80px, 12vw, 170px) var(--pad); }
.about__head { position: sticky; top: 110px; align-self: start; font: 800 clamp(2.4rem, 4.6vw, 4.5rem)/1 var(--display); letter-spacing: -.03em; }
.scrub { font: 500 clamp(1.5rem, 2.6vw, 2.3rem)/1.38 var(--body); letter-spacing: -.005em; margin-bottom: 34px; }
.scrub .word { display: inline-block; }
.about__p { max-width: 36em; color: var(--muted); }
.about__fig { margin: 56px 0; background: #0A0E14; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); overflow: hidden; }
.about__fig img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; padding: 14px; }
.values > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 20px; padding: 20px 14px; border-top: 1px solid var(--line); transition: background .4s, color .4s, padding-left .45s var(--ease); }
.values > div:last-child { border-bottom: 1px solid var(--line); }
.values > div:hover { background: var(--brand); color: #000; padding-left: 28px; }
.values dt { font: 700 1.3rem/1.25 var(--display); letter-spacing: -.01em; }
.values dd { font-size: 1.05rem; }

/* ---------- services ---------- */
.services { position: relative; background: var(--bg); }
.services__pin { position: relative; }
.svc { position: relative; display: grid; gap: 36px; padding: clamp(64px, 10vw, 120px) var(--pad); }
.svc__title { font: 800 clamp(1.9rem, 3vw, 2.9rem)/1.02 var(--display); overflow-wrap: break-word; hyphens: manual; letter-spacing: -.035em; margin-bottom: .3em; }
.svc__text p { max-width: 26em; font-size: 1.2rem; margin-bottom: 28px; }
.svc--intro .svc__title { font-size: clamp(2.4rem, 5.2vw, 5rem); }
.link { display: inline-block; font: 700 1.05rem var(--display); border-bottom: 2px solid currentColor; padding-bottom: 3px; transition: letter-spacing .4s var(--ease); }
.link:hover { letter-spacing: .03em; }
.svc__img { position: relative; background: #0A0E14; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 18px; overflow: hidden; }
.svc__img img { max-height: 100%; width: auto; object-fit: contain; }
.t-blue { background: var(--brand); color: #000; }
.t-black { background: var(--bg); color: #fff; }
.t-white { background: #fff; color: #05070A; }
.svc-hud { display: none; }

/* horizontal mode: JS adds .hscroll on screens wide enough, with motion allowed */
.services.hscroll .services__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.services.hscroll .services__track { display: flex; width: max-content; height: 100%; will-change: transform; transform: translate3d(0, 0, 0); }
.services.hscroll .svc { flex: none; width: min(80vw, 1180px); height: 100%; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 3vw, 54px); padding: 0 clamp(30px, 5vw, 84px) 56px; }
.services.hscroll .svc--intro { width: min(58vw, 780px); grid-template-columns: 1fr; }
.services.hscroll .svc-hud { display: flex; position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; align-items: center; gap: 22px; padding: 16px var(--pad); background: #000; color: #fff; font: 600 1rem var(--display); }
.svc-hud__name { min-width: 11em; }
.svc-hud__bar { flex: 1; height: 4px; background: rgba(255, 255, 255, .25); }
.svc-hud__bar i { display: block; height: 100%; background: var(--brand); transform-origin: left; transform: scaleX(0); }

/* ---------- work ---------- */
.work { padding: clamp(80px, 11vw, 150px) var(--pad); background: var(--bg-2); }
.work__head { display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; margin-bottom: 40px; }
.work__lead { max-width: 28em; color: var(--muted); }
.tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.tab { padding: .7em 1.2em; border: 1px solid var(--line); font: 600 .95rem/1 var(--display); transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease); }
.tab:hover { border-color: var(--brand); transform: translateY(-3px); }
.tab[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #000; }
.tab small { margin-left: .5em; font: inherit; opacity: .65; }
.masonry { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); grid-auto-flow: dense; gap: 14px; }
.shot { position: relative; overflow: hidden; background: var(--panel); }
.shot--wide { grid-column: span 2; }
.shot__btn { display: block; width: 100%; padding: 0; cursor: zoom-in; }
.shot img { width: 100%; aspect-ratio: var(--ar, 1); object-fit: cover; transition: transform .9s var(--ease); }
.shot figcaption { position: absolute; inset: auto 0 0 0; padding: 12px 56px 12px 14px; background: #fff; color: #000; font: 600 .95rem var(--display); transform: translateY(101%); transition: transform .45s var(--ease); }
.shot figcaption::after { content: ""; position: absolute; right: 0; bottom: 0; width: 42px; height: 100%; background: var(--brand); clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.shot:hover figcaption, .shot:focus-within figcaption { transform: none; }
.shot:hover img { transform: scale(1.07); }
.shot.is-broken { aspect-ratio: var(--ar, 1); display: grid; place-items: center; }
.shot.is-broken img { display: none; }
.shot.is-broken figcaption { transform: none; position: static; background: none; color: var(--muted); padding: 0; }
.shot.is-broken figcaption::after { display: none; }
.work__more { margin-top: 44px; text-align: center; }
.js .shot { opacity: 0; transform: translateY(34px) scale(.96); transition: opacity .8s var(--ease) calc(var(--i, 0) * 60ms), transform .9s var(--ease) calc(var(--i, 0) * 60ms); }
.js .shot.in { opacity: 1; transform: none; }

/* ---------- process (white, like the tagline bar) ---------- */
.process { background: #fff; color: #05070A; padding: clamp(80px, 11vw, 150px) var(--pad); }
.process .work__lead { color: #4A5561; }
.process__head { display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; margin-bottom: 70px; }
.steps-wrap { position: relative; }
.rail { position: absolute; left: 0; right: 0; top: 19px; height: 4px; background: rgba(5, 7, 10, .14); }
.rail i { display: block; height: 100%; background: var(--brand); transform-origin: left; transform: scaleX(var(--p, 1)); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; }
.step { position: relative; padding-top: 62px; }
.step__n { position: absolute; top: 0; left: 0; width: 42px; height: 42px; display: grid; place-items: center; border: 3px solid #05070A; background: #fff; font: 700 1rem var(--display); transition: background .4s, border-color .4s, transform .6s var(--ease); }
.step.is-on .step__n { background: var(--brand); border-color: var(--brand); transform: scale(1.18) rotate(45deg); }
.step.is-on .step__n { color: #000; }
.step h3 { font: 800 1.7rem/1.1 var(--display); letter-spacing: -.02em; margin-bottom: .4em; }
.step p { color: #4A5561; max-width: 20em; }

/* ---------- contact ---------- */
.contact { background: var(--bg); padding: clamp(90px, 12vw, 170px) var(--pad) clamp(80px, 10vw, 140px); border-top: 4px solid var(--brand); }
.contact__title { font: 800 clamp(3rem, 8vw, 8.6rem)/.93 var(--display); letter-spacing: -.04em; max-width: 11em; margin-bottom: clamp(48px, 7vw, 96px); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(40px, 6vw, 100px); align-items: start; }
.biglink { display: block; width: fit-content; max-width: 100%; margin-bottom: .2em; font: 700 clamp(1.8rem, 3.8vw, 3.3rem)/1.15 var(--display); letter-spacing: -.02em; background: linear-gradient(var(--brand), var(--brand)) 0 100% / 0 3px no-repeat; transition: background-size .55s var(--ease), color .3s; overflow-wrap: anywhere; }
.biglink:hover { background-size: 100% 3px; color: var(--brand-hi); }
.contact__links address { margin-top: 34px; max-width: 24em; color: var(--muted); }
.contact__links p { margin-top: 14px; color: var(--muted); }
.form { background: #fff; color: #05070A; padding: clamp(22px, 3vw, 40px); padding-bottom: clamp(36px, 4vw, 52px); }
.fld { position: relative; margin-bottom: 22px; }
.fld input, .fld select, .fld textarea { width: 100%; padding: 24px 0 8px; border: 0; border-bottom: 2px solid #05070A; border-radius: 0; background: transparent; color: inherit; font: 500 1.1rem var(--body); outline: 0; resize: vertical; appearance: none; -webkit-appearance: none; }
.fld select { cursor: pointer; }
.fld::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.fld:focus-within::after { transform: scaleX(1); }
.fld label { position: absolute; left: 0; top: 22px; color: #4A5561; font: 500 1rem var(--display); pointer-events: none; transform-origin: left top; transition: transform .3s var(--ease), color .3s; }
.fld input:focus + label, .fld input:not(:placeholder-shown) + label,
.fld textarea:focus + label, .fld textarea:not(:placeholder-shown) + label,
.fld select:focus + label, .fld select:valid + label { transform: translateY(-20px) scale(.78); color: var(--brand-ink); }
.fld__err { display: none; margin-top: 6px; font: 500 .9rem var(--display); color: #B3123A; }
.fld.has-error::after { background: #B3123A; transform: scaleX(1); }
.fld.has-error .fld__err { display: block; }
.form .btn { margin-top: 6px; }
.form .btn--solid { --fill: #05070A; }
.form .btn--solid:hover { color: #fff; }
.form__note { margin-top: 16px; min-height: 1.5em; max-width: calc(100% - 70px); font: 500 .95rem/1.4 var(--display); }

/* ---------- footer ---------- */
.foot { background: #000; border-top: 1px solid var(--line); padding: clamp(56px, 7vw, 96px) var(--pad) 22px; overflow: hidden; }
.foot__grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1fr; gap: 40px; }
.foot__about p { max-width: 24em; margin-top: 18px; color: var(--muted); }
.foot .brand img { height: 62px; }
.foot__col h3 { font: 700 1.1rem var(--display); margin-bottom: 14px; }
.foot__col a, .foot__col p { display: block; color: var(--muted); font-size: 1rem; padding: 3px 0; transition: color .3s, transform .35s var(--ease); }
.foot__col a:hover { color: #fff; transform: translateX(6px); }
.foot__word { display: flex; justify-content: space-between; overflow: hidden; margin: clamp(40px, 6vw, 80px) 0 10px; font: 800 clamp(4rem, 19vw, 21rem)/.86 var(--display); letter-spacing: -.04em; padding-bottom: .06em; }
.foot__word i { font-style: normal; color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, .28); transition: color .4s, -webkit-text-stroke-color .4s, transform 1.1s var(--ease) calc(var(--i, 0) * 70ms); }
.foot__word i:nth-child(n+5) { -webkit-text-stroke-color: rgba(19, 150, 206, .65); }
.foot__word i:hover { color: var(--brand); -webkit-text-stroke-color: var(--brand); }
.js .foot__word i { transform: translateY(105%); }
.js .foot.in .foot__word i { transform: none; }
.foot__base { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding-top: 18px; border-top: 1px solid var(--line); font-size: .95rem; color: var(--muted); }
.foot__base a:hover { color: #fff; }

/* ---------- lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 1300; display: grid; place-items: center; padding: 70px 24px 80px; background: rgba(0, 0, 0, .95); backdrop-filter: blur(10px); opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
.lb[hidden] { display: grid; }
.lb.is-open { opacity: 1; visibility: visible; }
.lb img { max-width: min(92vw, 1200px); max-height: 78vh; background: #fff; transform: scale(.92); transition: transform .6s var(--ease); }
.lb.is-open img { transform: none; }
.lb__cap { position: absolute; bottom: 26px; left: 0; right: 0; text-align: center; color: var(--muted); font: 500 1rem var(--display); }
.lb__btn { position: absolute; padding: .75em 1.4em; background: #fff; color: #000; font: 700 .95rem/1 var(--display); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%); transition: background .3s; }
.lb__btn:hover { background: var(--brand); }
.lb__x { top: 20px; right: 20px; }
.lb__prev { left: 20px; top: 50%; margin-top: -22px; }
.lb__next { right: 20px; top: 50%; margin-top: -22px; }

/* ---------- responsive ---------- */
@media (max-width: 1050px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 50px; }
  .rail { display: none; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-bottom: 100px; }
  .about, .contact__grid { grid-template-columns: 1fr; }
  .about__head { position: static; }
  .burger { display: block; }
  .hdr__call { display: none; }
  .nav { position: fixed; inset: 0; z-index: 1; margin: 0; padding: 110px var(--pad) 40px; flex-direction: column; justify-content: center; gap: 4px; background: #000; visibility: hidden; transform: translateY(-100%); transition: transform .7s var(--ease), visibility .7s; }
  .nav.is-open { visibility: visible; transform: none; }
  .nav a { padding: 4px 0; font: 800 clamp(2.4rem, 11vw, 4.4rem)/1.05 var(--display); letter-spacing: -.03em; }
  .nav a::after { display: none; }
  .steps { grid-template-columns: 1fr; padding-left: 8px; }
  .steps-wrap .rail { display: block; left: 20px; right: auto; top: 0; bottom: 0; width: 4px; height: auto; }
  .steps-wrap .rail i { transform-origin: top; transform: scaleY(var(--p, 1)); }
  .step { padding: 0 0 0 66px; }
}
@media (max-width: 560px) {
  .shot--wide { grid-column: auto; }
  .masonry { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .values > div { grid-template-columns: 1fr; gap: 6px; }
  .foot__grid { grid-template-columns: 1fr; }
  .tagbar { letter-spacing: .22em; }
  .lb__prev, .lb__next { top: auto; bottom: 20px; margin-top: 0; }
  .lb__cap { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* images that could not be loaded from either place */
img.is-failed { display: none; }
.svc__img.is-broken, .about__fig.is-broken { display: grid; place-items: center; min-height: 220px; }
.svc__img.is-broken::before, .about__fig.is-broken::before { content: "Image unavailable"; color: var(--muted); font: 600 1rem var(--display); }

/* ---------- illustrations (service panels + About) ---------- */
.ill { width: 100%; height: 100%; max-height: 100%; }
.ill .gr { fill: none; stroke: rgba(255, 255, 255, .09); stroke-width: 1; }
.ill .l { fill: none; stroke: #F2F5F8; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.ill .fr { fill: none; stroke: #F2F5F8; stroke-width: 3; stroke-linejoin: round; }
.ill .b { fill: var(--brand); }
.ill .wh { fill: #F2F5F8; }
.ill .g { fill: #3A4452; }
.ill .tx { fill: #F2F5F8; font: 800 54px var(--display); }
.ill .guide { fill: none; stroke: rgba(19, 150, 206, .6); stroke-width: 2; stroke-dasharray: 5 8; transform-box: fill-box; transform-origin: center; animation: spin 24s linear infinite; }
.ill .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: drawIn 5s ease-in-out infinite; }
.ill .gx, .ill .vbar, .ill .pop, .ill .shine, .ill .drop, .ill .key, .ill .heart, .ill .cursor, .ill .glass, .ill .pen, .ill .caret, .ill .pxa, .ill .pxb { transform-box: fill-box; }
.ill .gx { transform-origin: left; animation: growX 4.4s var(--ease) infinite; }
.ill .g2 { animation-delay: .25s; } .ill .g3 { animation-delay: .5s; } .ill .g4 { animation-delay: .75s; }
.ill .pop { transform-origin: center; animation: popIn 4.4s var(--ease) infinite; }
.ill .p2 { animation-delay: .2s; } .ill .p3 { animation-delay: .4s; } .ill .p4 { animation-delay: .6s; }
.ill .vbar { transform-origin: bottom; animation: growY 4.4s var(--ease) infinite; }
.ill .b2 { animation-delay: .15s; } .ill .b3 { animation-delay: .3s; } .ill .b4 { animation-delay: .45s; } .ill .b5 { animation-delay: .6s; }
.ill .shine { fill: rgba(255, 255, 255, .35); animation: sweep 3.4s ease-in-out infinite; }
.ill .drop { animation: dropIn 4s var(--ease) infinite; }
.ill .d2 { animation-delay: .35s; } .ill .d3 { animation-delay: .7s; }
.ill .pxa { animation: bobpx 4.4s ease-in-out infinite; } .ill .pxb { animation: bobpx 3.6s ease-in-out -1.6s infinite; }
.ill .key { animation: keyBlink 6s steps(1) infinite; } .ill .k2 { animation-delay: 1.8s; } .ill .k3 { animation-delay: 3.4s; }
.ill .caret { animation: blink 1s steps(1) infinite; }
.ill .heart { animation: floatUp 4.6s ease-in infinite; opacity: 0; }
.ill .hh1 { transform: translate(190px, 250px); } .ill .hh2 { transform: translate(212px, 250px); animation-delay: 1.5s; } .ill .hh3 { transform: translate(176px, 250px); animation-delay: 3s; }
.ill .cursor { animation: curMove 6s ease-in-out infinite; }
.ill .glass { animation: glassMove 6s ease-in-out infinite; }
.ill .pen { animation: penMove 4.4s ease-in-out infinite; }
@keyframes drawIn { 0% { stroke-dashoffset: 1; } 45%, 75% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -1; } }
@keyframes growX { 0% { transform: scaleX(0); } 30%, 85% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
@keyframes growY { 0% { transform: scaleY(.08); } 30%, 85% { transform: scaleY(1); } 100% { transform: scaleY(.08); } }
@keyframes popIn { 0%, 10% { transform: scale(0); } 35%, 85% { transform: scale(1); } 100% { transform: scale(0); } }
@keyframes sweep { 0% { transform: translateX(-120%); } 60%, 100% { transform: translateX(520%); } }
@keyframes dropIn { 0% { transform: translateY(-70px); opacity: 0; } 35% { transform: translateY(70px); opacity: 1; } 55%, 85% { transform: translateY(70px); opacity: 1; } 100% { transform: translateY(70px); opacity: 0; } }
@keyframes keyBlink { 0%, 100% { opacity: .35; } 8%, 40% { opacity: 1; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes floatUp { 0% { opacity: 0; translate: 0 0; scale: .6; } 15% { opacity: 1; } 100% { opacity: 0; translate: 10px -190px; scale: 1.3; } }
@keyframes curMove { 0% { transform: translate(300px, 230px); } 30% { transform: translate(260px, 110px); } 60% { transform: translate(110px, 214px); } 100% { transform: translate(300px, 230px); } }
@keyframes glassMove { 0% { transform: translate(120px, 120px); } 25% { transform: translate(190px, 92px); } 50% { transform: translate(250px, 130px); } 75% { transform: translate(290px, 100px); } 100% { transform: translate(120px, 120px); } }
@keyframes penMove { 0% { transform: translate(88px, 150px); } 20% { transform: translate(210px, 150px); } 21% { transform: translate(88px, 168px); } 45% { transform: translate(190px, 168px); } 46% { transform: translate(88px, 186px); } 70% { transform: translate(220px, 186px); } 100% { transform: translate(88px, 150px); } }
.about__fig { background: #0A0E14; }
.about__fig .ill { display: block; padding: 14px; aspect-ratio: 4 / 3; height: auto; }
.svc__img .ill { width: 100%; height: 100%; }

/* ---------- case study ---------- */
.case { position: relative; background: var(--bg-2); padding: clamp(80px, 11vw, 150px) var(--pad); border-top: 1px solid var(--line); overflow: hidden; }
.case__head { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(24px, 5vw, 80px); align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.case__head > p { color: var(--muted); max-width: 32em; }
.case__tag { margin-bottom: 24px; }
.case__reveal { margin-bottom: 30px; }
.js .case:not(.in) .case__reveal { opacity: 0; transform: translateY(70px) scale(.96); }
.js .case__reveal { transition: opacity 1.1s var(--ease), transform 1.2s var(--ease); }
.case__frame { position: relative; background: #0B0F16; border: 1px solid rgba(19, 150, 206, .55); transform: perspective(1600px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease-out; box-shadow: 0 40px 120px -40px rgba(19, 150, 206, .45); }
.case__bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); font: 600 .85rem var(--display); color: var(--muted); }
.case__bar i { width: 10px; height: 10px; background: #fff; opacity: .3; }
.case__bar span { margin-left: 10px; }
.case__shot { position: relative; line-height: 0; overflow: hidden; }
.case__shot img { width: 100%; height: auto; }
.tour__hl { position: absolute; left: 0; top: 0; width: 12.7%; height: 100%; border: 2px solid var(--brand-hi); background: rgba(19, 150, 206, .14); box-shadow: 0 0 0 100vmax rgba(5, 7, 10, .5); transition: left .7s var(--ease), top .7s var(--ease), width .7s var(--ease), height .7s var(--ease); pointer-events: none; }
.case__info { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 32px; align-items: start; margin-bottom: clamp(48px, 6vw, 84px); }
.case__cap strong { display: block; font: 800 clamp(1.5rem, 2.4vw, 2.2rem)/1.1 var(--display); letter-spacing: -.02em; margin-bottom: 8px; }
.case__cap span { display: block; color: var(--muted); max-width: 30em; min-height: 4.8em; }
.tour__list { margin: 0; }
.case__mods h3 { font: 700 1.2rem var(--display); margin-bottom: 18px; }
.mods { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.mods li { padding: .6em 1.1em; border: 1px solid var(--line); font: 600 .95rem/1 var(--display); transition: background .3s, color .3s, border-color .3s, opacity .7s var(--ease), transform .7s var(--ease); }
.mods li:hover { background: var(--brand); color: #000; border-color: var(--brand); }
.js .case:not(.in) .mods li { opacity: 0; transform: translateY(16px); }
.js .case.in .mods li { transition-delay: 0s, 0s, 0s, calc(var(--i) * 60ms), calc(var(--i) * 60ms); }
@media (max-width: 900px) {
  .case__head, .case__info { grid-template-columns: 1fr; }
  .case__cap span { min-height: 0; }
}
@media (max-width: 560px) {
  .case__bar span { display: none; }
  /* the dashboard is too detailed to read at phone width: show it larger and let it slide sideways */
  .case__shot { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: thin; touch-action: pan-x pan-y; }
  .case__inner { position: relative; width: 860px; }
  .case__inner img { width: 100%; height: auto; }
  .case__bar::after { content: "Swipe sideways \2192"; margin-left: auto; font: 500 .8rem var(--display); color: var(--brand-hi); }
}

/* ---------- screen-size tuning ---------- */
/* big monitors: scale everything up a little so text and layout do not look tiny */
@media (min-width: 1700px) { html { font-size: 112.5%; } :root { --pad: clamp(48px, 5vw, 120px); } }
@media (min-width: 2200px) { html { font-size: 137.5%; } }
@media (min-width: 3000px) { html { font-size: 175%; } }
/* laptops with a short screen: keep the hero inside one screen */
@media (min-width: 901px) and (max-height: 700px) {
  .hero__title { font-size: clamp(2.4rem, 5vw, 4.4rem); }
  .hero__lead { margin-bottom: 22px; }
}
/* tablets: comfortable line length and tighter vertical gaps */
@media (min-width: 561px) and (max-width: 900px) {
  .hero__title { max-width: 14em; }
  .about__p, .svc__text p, .case__head > p { max-width: 38em; }
}
/* phones and tablets (touch): bigger tap targets */
@media (pointer: coarse), (hover: none), (max-width: 900px) {
  .foot__col a { padding: 11px 0; }
  a.link { display: inline-flex; align-items: center; min-height: 44px; }
  .tab { min-height: 44px; }
  .mods li { padding-block: 9px; }
  .nav a, .menu a { min-height: 44px; }
  .lb button { min-width: 48px; min-height: 48px; }
}
/* very small phones */
@media (max-width: 360px) {
  .hero__title { font-size: 2.35rem; }
  .btn { padding-inline: 18px; }
  .tab { padding-inline: 12px; }
  .contact__title { font-size: 2.6rem; }
}
/* notches and rounded corners */
.head, .foot { padding-left: max(var(--pad), env(safe-area-inset-left)); padding-right: max(var(--pad), env(safe-area-inset-right)); }
.case--alt { background: var(--bg); }

/* ---------- case study: mobile app block ---------- */
.case__app { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; margin-bottom: clamp(48px, 6vw, 84px); }
.phone { margin: 0; justify-self: center; width: min(300px, 78vw); padding: 10px; background: #0B0F16; border: 1px solid rgba(19, 150, 206, .55); border-radius: 0; }
.phone img { width: 100%; height: auto; }
.case__appText .tagbar { margin-bottom: 18px; }
.case__appText h3 { font: 800 clamp(1.6rem, 2.8vw, 2.4rem)/1.1 var(--display); letter-spacing: -.02em; margin-bottom: 14px; }
.case__appText > p:not(.tagbar) { color: var(--muted); max-width: 32em; margin-bottom: 18px; }
.applist { list-style: none; display: grid; gap: 8px; margin-bottom: 26px; }
.applist li { position: relative; padding-left: 22px; }
.applist li::before { content: ""; position: absolute; left: 0; top: .55em; width: 9px; height: 9px; background: var(--brand); }
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.flow span { padding: .6em 1em; border: 1px solid var(--line); font: 600 .95rem/1 var(--display); }
.flow i { font-style: normal; color: var(--brand-hi); font-weight: 800; }
@media (max-width: 800px) { .case__app { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { background: var(--bg); padding: clamp(80px, 11vw, 150px) var(--pad); border-top: 1px solid var(--line); }
.faq .h2 { margin-bottom: clamp(32px, 5vw, 60px); max-width: 14em; }
.faq__list { max-width: 56rem; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; font: 700 clamp(1.1rem, 1.8vw, 1.45rem)/1.25 var(--display); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; flex: none; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--brand-hi); font: 600 1.3rem/1 var(--display); transition: background .3s, color .3s, transform .35s var(--ease); }
.faq__item[open] summary::after { content: "\2212"; background: var(--brand); color: #000; border-color: var(--brand); }
.faq__item summary:hover { color: var(--brand-hi); }
.faq__item p { color: var(--muted); max-width: 42em; padding: 0 0 24px; }
@media (pointer: coarse), (hover: none), (max-width: 900px) { .faq__item summary { min-height: 56px; } }
@media (min-width: 2200px) { .svc__title { font-size: 2.45rem; } }
@media (max-width: 900px) { .svc__title { font-size: clamp(2.1rem, 8vw, 3.2rem); } }

/* contact form: spam trap (kept off-screen, never display:none, so bots still fill it) and captcha box */
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.ts:empty { display: none; }
.ts { margin: 0 0 14px; min-height: 65px; }
