/* ==========================================================
   Inner pages — about · team · contact
   (loaded after style.css; reuses its tokens and components)
   ========================================================== */

/* ---------- page hero ---------- */
.hero--page { height: auto; min-height: 92vh; padding: 140px 0 80px; }
.hero--short { min-height: 70vh; }
.hero--page h1 { font-size: clamp(30px, 3.4vw, 50px); max-width: 900px; }
.hero--page p { max-width: 640px; }
.eyebrow {
  font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before, .eyebrow::after { content: ""; width: 24px; height: 1px; background: var(--line-strong); }

/* corner brackets reused on cards (same as the menu hover box) */
.stat .c, .feature .c, .letter .c, .cform .c, .member__img .c { transition: transform .35s var(--ease); }

/* ---------- self-drawing deer mark ---------- */
.mark-draw { width: 74px; height: 74px; overflow: visible; }
.mark-draw path { fill: transparent; stroke: #fff; stroke-width: 6; transition: fill 1.2s ease; }
.mark-draw.is-drawn path { fill: #fff; }
.founder .mark-draw { width: 140px; height: 140px; margin-top: 40px; opacity: .9; }
.founder .mark-draw.is-drawn path { fill: rgb(255 255 255 / 6%); }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; width: 100%; max-width: 900px; margin-top: 30px; }
.stat {
  position: relative; padding: 40px 20px 34px; border: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  background: radial-gradient(80% 60% at 50% 0%, rgb(255 255 255 / 4%), transparent);
}
.stat__num { font-size: clamp(48px, 6vw, 84px); font-weight: 850; line-height: 1; font-variant-numeric: tabular-nums; }
.stat span { font-size: 14px; color: var(--muted); }
.stat:hover .c.tl { transform: translate(-5px, -5px) } .stat:hover .c.tr { transform: translate(5px, -5px) rotate(90deg) }
.stat:hover .c.br { transform: translate(5px, 5px) rotate(180deg) } .stat:hover .c.bl { transform: translate(-5px, 5px) rotate(270deg) }

/* ---------- split layout (title column + content column) ---------- */
.split { display: grid; grid-template-columns: 1fr 1.25fr; gap: 6vw; align-items: start; }
.split__head { position: sticky; top: 120px; display: flex; flex-direction: column; gap: 22px; }
.split__head h2 { max-width: none; }

/* ---------- features ---------- */
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.feature {
  position: relative; padding: 28px 24px; min-height: 170px; border: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: space-between; gap: 22px;
  background: rgb(255 255 255 / 1%);
  transition: border-color .4s, background .4s;
}
.feature:last-child { grid-column: 1 / -1; min-height: 120px; }
/* spotlight that follows the mouse (--mx/--my set in pages.js); stays inside the card via inset:0 */
.feature::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgb(255 255 255 / 7%), transparent 65%);
}
.feature:hover { border-color: var(--line-strong); }
.feature:hover::before { opacity: 1; }
.feature__num { position: absolute; left: 20px; top: 18px; font-style: normal; font-size: 11px; color: #555; transition: color .3s; }
.feature:hover .feature__num { color: var(--fg); }
.feature__ico { width: 26px; height: 26px; fill: none; stroke: #bdbdc2; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease), stroke .3s; }
.feature:hover .feature__ico { transform: translateY(-4px); stroke: #fff; }
.feature h4 { font-size: 17px; font-weight: 600; line-height: 1.6; transition: transform .5s var(--ease); }
.feature:hover h4 { transform: translateX(-4px); }
.feature .c { opacity: .55; transition: transform .4s var(--ease), opacity .3s; }
.feature:hover .c { opacity: 1; }
.feature:hover .c.tl { transform: translate(-4px, -4px) } .feature:hover .c.tr { transform: translate(4px, -4px) rotate(90deg) }
.feature:hover .c.br { transform: translate(4px, 4px) rotate(180deg) } .feature:hover .c.bl { transform: translate(-4px, 4px) rotate(270deg) }

/* ---------- clients marquee ---------- */
.clients { padding: 10vh 0; }
.marquee {
  margin-top: 40px; overflow: hidden; direction: ltr;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgb(0 0 0 / 35%) 12%, #000 30%, #000 70%, rgb(0 0 0 / 35%) 88%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, rgb(0 0 0 / 35%) 12%, #000 30%, #000 70%, rgb(0 0 0 / 35%) 88%, transparent 100%);
}
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee li { flex: none; width: 240px; height: 110px; display: grid; place-items: center; }
.marquee img { width: 112px; height: 112px; object-fit: contain; opacity: .45; transition: opacity .3s, transform .4s var(--ease); }
.marquee li:hover img { opacity: 1; transform: scale(1.06); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- team grid ---------- */
.team__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 80px 64px; max-width: 920px; margin: 0 auto; }
.member { display: flex; flex-direction: column; gap: 14px; }
.member:nth-child(4n+2), .member:nth-child(4n+4) { transform: translateY(70px); } /* staggered rhythm */
.member__img { position: relative; aspect-ratio: 4 / 5; }
.member__img img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.05) brightness(.8); transition: filter .6s, transform 1s var(--ease);
}
.member__img { overflow: visible; }
.member__img::before { content: ""; position: absolute; inset: 0; overflow: hidden; }
.member:hover .member__img img { filter: grayscale(0) brightness(1); }
.member__img .c { z-index: 3; }
/* glitch slices over team photos (colour copies of the photo, only visible while glitching) */
.member__img .glitch { z-index: 2; background: transparent; filter: none; pointer-events: none; overflow: hidden; }
.member__img .glitch__img:first-child { display: none; }
/* team photos are small, so the glitch is stronger here: thick bands + RGB split */
.member__img.is-glitching .glitch__img:nth-child(n+2) { animation-duration: .75s; animation-timing-function: steps(1); animation-fill-mode: forwards; }
.member__img.is-glitching .glitch__img:nth-child(2) { animation-name: tg-slice-1; }
.member__img.is-glitching .glitch__img:nth-child(3) { animation-name: tg-slice-2; }
.member__img.is-glitching .glitch__img:nth-child(4) { animation-name: tg-red; background-color: #ff2d2d; background-blend-mode: multiply; mix-blend-mode: screen; }
.member__img.is-glitching .glitch__img:nth-child(5) { animation-name: tg-blue; background-color: #2d5bff; background-blend-mode: multiply; mix-blend-mode: screen; }
.member__img.is-glitching img { animation: tg-flick .75s steps(1) forwards; }
@keyframes tg-slice-1 {
  0%   { opacity: 1; clip-path: inset(8% 0 78% 0);  transform: translateX(-14px); }
  14%  { clip-path: inset(40% 0 44% 0); transform: translateX(18px); }
  28%  { clip-path: inset(62% 0 24% 0); transform: translateX(-10px); }
  42%  { clip-path: inset(18% 0 70% 0); transform: translateX(22px); }
  56%  { clip-path: inset(84% 0 4% 0);  transform: translateX(-16px); }
  70%  { clip-path: inset(48% 0 40% 0); transform: translateX(9px); }
  84%  { clip-path: inset(28% 0 62% 0); transform: translateX(-20px); }
  100% { opacity: 0; clip-path: inset(50% 0 50% 0); transform: none; }
}
@keyframes tg-slice-2 {
  0%   { opacity: 1; clip-path: inset(55% 0 33% 0); transform: translateX(16px); }
  16%  { clip-path: inset(4% 0 86% 0);  transform: translateX(-12px); }
  32%  { clip-path: inset(74% 0 14% 0); transform: translateX(20px); }
  48%  { clip-path: inset(30% 0 56% 0); transform: translateX(-22px); }
  64%  { clip-path: inset(90% 0 2% 0);  transform: translateX(12px); }
  80%  { clip-path: inset(12% 0 76% 0); transform: translateX(-8px); }
  100% { opacity: 0; clip-path: inset(50% 0 50% 0); transform: none; }
}
@keyframes tg-red  { 0%, 18% { opacity: .7; transform: translateX(-7px); } 19%, 45% { opacity: 0; } 46%, 60% { opacity: .55; transform: translateX(5px); } 61%, 100% { opacity: 0; transform: none; } }
@keyframes tg-blue { 0%, 18% { opacity: .7; transform: translateX(7px); }  19%, 45% { opacity: 0; } 46%, 60% { opacity: .55; transform: translateX(-5px); } 61%, 100% { opacity: 0; transform: none; } }
@keyframes tg-flick { 0% { filter: grayscale(0) brightness(1.35); } 12% { filter: grayscale(0) brightness(.85); } 24% { filter: grayscale(0) brightness(1.2); } 36%, 100% { filter: grayscale(0) brightness(1); } }
.member:hover .c.tl { transform: translate(-6px, -6px) } .member:hover .c.tr { transform: translate(6px, -6px) rotate(90deg) }
.member:hover .c.br { transform: translate(6px, 6px) rotate(180deg) } .member:hover .c.bl { transform: translate(-6px, 6px) rotate(270deg) }
.member__meta { position: relative; display: flex; flex-direction: column; gap: 4px; }
.member__meta h4 { font-size: 16px; font-weight: 600; }
.member__meta span { font-size: 13px; color: var(--muted); }
.member__meta i { position: absolute; left: 0; top: 2px; font-style: normal; font-size: 11px; color: #555; }
.team { padding-bottom: 24vh; }

/* pixel shutter on photos (same as case images) */
[data-shutter] .shutter { position: absolute; inset: 0; z-index: 2; display: grid; grid-template-columns: repeat(5, 1fr); grid-template-rows: repeat(6, 1fr); pointer-events: none; }
[data-shutter] .shutter i { background: var(--bg); margin: -0.5px; }

/* ---------- founder letter ---------- */
.letter {
  position: relative; padding: 48px 44px 40px; border: 1px solid var(--line);
  background: linear-gradient(160deg, rgb(255 255 255 / 3%), transparent 60%);
  display: flex; flex-direction: column; gap: 20px;
}
.letter p { font-size: 16px; line-height: 2.1; color: #c9c9cc; }
.letter__quote { position: absolute; top: -8px; right: 30px; font-size: 90px; line-height: 1; color: rgb(255 255 255 / 12%); font-weight: 800; }
.letter__sign { margin-top: 14px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.letter__sign b { font-size: 20px; font-weight: 700; }
.letter__sign span { font-size: 13px; color: var(--muted); }

/* ---------- contact ---------- */
.contact { padding-top: 4vh; }
.contact__grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
.cform { position: relative; border: 1px solid var(--line); padding: 34px 34px 30px; display: flex; flex-direction: column; gap: 26px; background: rgb(255 255 255 / 1.5%); }
.cform__head { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.cform__head i { font-style: normal; font-variant-numeric: tabular-nums; }
.field { position: relative; display: flex; flex-direction: column; gap: 10px; border: 0; }
.field__label { font-size: 13px; color: var(--muted); transition: color .3s; padding: 0; }
.field input, .field textarea {
  font: inherit; font-size: 17px; color: var(--fg); background: transparent; border: 0; outline: 0;
  padding: 6px 0 12px; border-bottom: 1px solid var(--line-strong); resize: vertical; text-align: right;
}
.field input[dir="ltr"] { text-align: right; }
.field__line { position: absolute; bottom: 0; right: 0; height: 1px; width: 0; background: var(--fg); transition: width .6s var(--ease); }
.field:focus-within .field__line { width: 100%; }
.field:focus-within .field__label { color: var(--fg); }
.field.is-invalid .field__label { color: var(--red); }
.field.is-invalid .field__line { width: 100%; background: var(--red); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block; padding: 9px 16px; font-size: 13px; border: 1px solid var(--line-strong); cursor: pointer;
  transition: background .25s, color .25s, border-color .25s;
}
.chip span:hover { border-color: rgb(255 255 255 / 45%); }
.chip input:checked + span { background: var(--fg); color: var(--bg); border-color: var(--fg); font-weight: 600; }
.chip input:focus-visible + span { outline: 1px solid var(--fg); outline-offset: 3px; }
.cform__foot { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.cform__status { font-size: 13px; color: var(--muted); }
.cform__status.ok { color: var(--green); } .cform__status.err { color: var(--red); }

.cinfo { display: flex; flex-direction: column; gap: 14px; }
.ccard {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px 24px 22px;
  border: 1px solid var(--line); transition: background .35s, border-color .35s; overflow: hidden;
}
a.ccard:hover { background: rgb(255 255 255 / 4%); border-color: var(--line-strong); }
.ccard__label { font-size: 12px; color: var(--muted); }
.ccard b { font-size: 17px; font-weight: 500; line-height: 1.8; }
.ccard__big { font-size: clamp(26px, 2.6vw, 36px) !important; font-weight: 800 !important; text-align: right; }
.ccard__arrow { position: absolute; left: 22px; top: 22px; font-style: normal; opacity: .5; transition: transform .4s var(--ease), opacity .3s; }
a.ccard:hover .ccard__arrow { transform: translate(-4px, -4px); opacity: 1; }
.ccard--phone { background: linear-gradient(135deg, rgb(255 255 255 / 6%), transparent 70%); }
.clock { font-size: 12px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.clock time { color: var(--fg); font-variant-numeric: tabular-nums; }
.socials { display: flex; gap: 14px; flex-wrap: wrap; }
.socials .btn { flex: 1; }

/* stylised location panel: dot grid + pulsing pin (no external map) */
.map {
  position: relative; height: 150px; margin: -24px -24px 8px; border-bottom: 1px solid var(--line);
  background-image: radial-gradient(rgb(255 255 255 / 16%) 1px, transparent 1.2px);
  background-size: 14px 14px; background-position: 7px 7px;
  -webkit-mask-image: radial-gradient(75% 90% at 50% 50%, #000 40%, transparent);
  mask-image: radial-gradient(75% 90% at 50% 50%, #000 40%, transparent);
  overflow: hidden;
}
.map::before { /* a couple of "streets" */
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(28deg, transparent 49.6%, rgb(255 255 255 / 18%) 50%, transparent 50.4%),
    linear-gradient(-62deg, transparent 49.7%, rgb(255 255 255 / 12%) 50%, transparent 50.3%);
}
.map__pin { position: absolute; left: 52%; top: 46%; width: 9px; height: 9px; border-radius: 50%; background: var(--fg); }
.map__pin::before, .map__pin::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--fg);
  animation: pin 2.4s ease-out infinite;
}
.map__pin::after { animation-delay: 1.2s; }
@keyframes pin { from { transform: scale(.4); opacity: .9 } to { transform: scale(3.2); opacity: 0 } }
.map__tag { position: absolute; left: calc(52% + 16px); top: calc(46% - 6px); font-size: 11px; padding: 2px 8px; background: rgb(255 255 255 / 10%); }

.copy.center { text-align: center; margin-top: 70px; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .team__grid { grid-template-columns: repeat(3, 1fr); gap: 60px 44px; max-width: 700px; }
  .member:nth-child(n) { transform: none; }
}
@media (max-width: 860px) {
  .split, .contact__grid { grid-template-columns: 1fr; gap: 40px; }
  .split__head { position: static; }
  .stats { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .team__grid { grid-template-columns: repeat(2, 1fr); gap: 40px 28px; max-width: 420px; }
  .cform { padding: 26px 20px; }
  .letter { padding: 40px 24px 30px; }
  .hero--page { padding-top: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track, .map__pin::before, .map__pin::after { animation: none; }
}

/* ---------- certificate verification ---------- */
.verify { padding-top: 2vh; }
.verify__wrap { max-width: 760px; display: flex; flex-direction: column; gap: 36px; }
.vform { position: relative; border: 1px solid var(--line); padding: 30px; display: flex; flex-direction: column; gap: 16px; background: rgb(255 255 255 / 1.5%); }
.vform__label { font-size: 13px; color: var(--muted); }
.vform__row { display: flex; gap: 14px; align-items: stretch; }
.vform input {
  flex: 1; min-width: 0; font: inherit; font-size: 22px; font-weight: 600; letter-spacing: .08em !important;
  color: var(--fg); background: transparent; border: 0; border-bottom: 1px solid var(--line-strong); outline: 0;
  padding: 8px 4px; text-transform: uppercase; font-family: ui-monospace, Menlo, monospace; text-align: left;
  transition: border-color .3s;
}
.vform input:focus { border-color: var(--fg); }
.vform input::placeholder { color: #444; }
.vform__demo { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.chip-demo {
  font-family: ui-monospace, Menlo, monospace; font-size: 12px; letter-spacing: .06em !important;
  padding: 6px 12px; border: 1px dashed var(--line-strong); color: #ccc; transition: border-color .25s, color .25s, background .25s;
}
.chip-demo:hover { border-style: solid; border-color: var(--fg); color: var(--fg); background: rgb(255 255 255 / 5%); }

.vresult:empty { display: none; }
/* scanning state */
.vscan { position: relative; height: 150px; border: 1px solid var(--line); overflow: hidden; display: grid; place-items: center; font-size: 13px; color: var(--muted); }
.vscan::before {
  content: ""; position: absolute; left: 0; right: 0; height: 40%; top: -40%;
  background: linear-gradient(to bottom, transparent, rgb(255 255 255 / 10%), transparent);
  border-bottom: 1px solid rgb(255 255 255 / 45%); animation: scan 1s linear infinite;
}
@keyframes scan { to { top: 100%; } }
.vscan span { font-family: ui-monospace, Menlo, monospace; letter-spacing: .1em !important; }

/* certificate card (verified) */
.cert {
  position: relative; padding: 40px 40px 32px; border: 1px solid rgb(61 220 132 / 35%);
  background:
    radial-gradient(70% 60% at 100% 0%, rgb(61 220 132 / 8%), transparent 70%),
    repeating-linear-gradient(135deg, rgb(255 255 255 / 1.5%) 0 2px, transparent 2px 9px);
  display: grid; grid-template-columns: 1fr auto; gap: 24px 30px; overflow: hidden;
}
.cert__head { display: flex; align-items: center; gap: 14px; grid-column: 1 / -1; }
.cert__head img { width: 34px; height: 34px; }
.cert__head span { font-size: 12px; color: var(--muted); display: block; }
.cert__head b { font-size: 15px; }
.cert__name { grid-column: 1 / 2; font-size: clamp(26px, 3vw, 38px); font-weight: 800; line-height: 1.3; }
.cert__course { grid-column: 1 / 2; color: #c9c9cc; font-size: 15px; margin-top: -12px; }
.cert__fields { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); padding-top: 20px; }
.cert__fields div { display: flex; flex-direction: column; gap: 6px; padding-inline-end: 12px; }
.cert__fields div + div { border-inline-start: 1px solid var(--line); padding-inline-start: 16px; }
.cert__fields span { font-size: 11px; color: var(--muted); }
.cert__fields b { font-size: 14px; font-weight: 600; }
.cert__fields b[dir="ltr"] { font-family: ui-monospace, Menlo, monospace; font-size: 13px; text-align: right; }
.stamp {
  grid-column: 2 / 3; grid-row: 2 / 4; width: 112px; height: 112px; border-radius: 50%;
  border: 2px solid var(--green); color: var(--green); display: grid; place-items: center; text-align: center;
  font-size: 12px; font-weight: 700; line-height: 1.5; transform: rotate(-12deg); position: relative;
}
.stamp::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; border: 1px dashed rgb(61 220 132 / 60%); }
.stamp svg { width: 28px; height: 28px; display: block; margin: 0 auto 2px; stroke: var(--green); fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* not found */
.vfail {
  display: flex; gap: 18px; align-items: center; padding: 28px 30px; border: 1px solid rgb(255 107 107 / 40%);
  background: radial-gradient(60% 80% at 100% 50%, rgb(255 107 107 / 8%), transparent 70%);
}
.vfail i { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--red); display: grid; place-items: center; color: var(--red); font-style: normal; font-size: 20px; }
.vfail b { display: block; font-size: 17px; margin-bottom: 6px; }
.vfail p { font-size: 13px; color: var(--muted); line-height: 1.8; }

@media (max-width: 700px) {
  .vform__row { flex-direction: column; }
  .cert { grid-template-columns: 1fr; padding: 30px 22px; }
  .stamp { grid-column: 1; grid-row: auto; width: 92px; height: 92px; justify-self: end; margin-top: -10px; }
  .cert__fields { grid-template-columns: 1fr 1fr; gap: 16px 0; }
  .cert__fields div:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
}

/* ---------- case studies page ---------- */
.cstats-wrap { padding: 2vh 0 6vh; }
.cstats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cstat { padding: 34px 24px; display: flex; flex-direction: column; gap: 8px; }
.cstat + .cstat { border-inline-start: 1px solid var(--line); }
.cstat b { font-size: clamp(40px, 4.6vw, 68px); font-weight: 850; line-height: 1; font-variant-numeric: tabular-nums; }
.cstat span { font-size: 13px; color: var(--muted); }

.cases-list { padding-top: 6vh; }
.cfilter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.cfilter__btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; font-size: 14px; font-weight: 600;
  border: 1px solid var(--line-strong); color: #a9a9ae; transition: background .3s, color .3s, border-color .3s;
}
.cfilter__btn i { font-style: normal; font-size: 11px; opacity: .6; }
.cfilter__btn:hover { color: var(--fg); border-color: rgb(255 255 255 / 45%); }
.cfilter__btn.is-active { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* bento rhythm: 7/5, 5/7, 4/4/4 ... (uniform while a filter is active) */
.cgrid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 22px; }
.ccase { grid-column: span 4; perspective: 1200px; }
.cgrid:not(.is-filtered) .ccase:nth-child(7n+1), .cgrid:not(.is-filtered) .ccase:nth-child(7n+4) { grid-column: span 7; }
.cgrid:not(.is-filtered) .ccase:nth-child(7n+2), .cgrid:not(.is-filtered) .ccase:nth-child(7n+3) { grid-column: span 5; }
.ccase.is-hidden { display: none; }

.ccase__link {
  position: relative; display: flex; flex-direction: column; height: 100%;
  border: 1px solid var(--line); background: rgb(255 255 255 / 1.5%);
  transform-style: preserve-3d; transition: border-color .4s, background .4s;
  will-change: transform;
}
.ccase__link::before { /* mouse spotlight */
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgb(255 255 255 / 8%), transparent 60%);
}
.ccase__link:hover { border-color: rgb(255 255 255 / 30%); background: rgb(255 255 255 / 3%); }
.ccase__link:hover::before { opacity: 1; }

.ccase__cover { position: relative; aspect-ratio: 5 / 3; overflow: hidden; border-bottom: 1px solid var(--line); }
.ccase__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), filter .6s; filter: saturate(.85); }
.ccase__link:hover .ccase__img { transform: scale(1.045); filter: saturate(1.05); }
/* generated cover for cases without a banner file */
.ccase__gen {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background:
    radial-gradient(70% 90% at 50% 0%, hsl(var(--h) 45% 50% / 18%), transparent 70%),
    linear-gradient(rgb(255 255 255 / 4%) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgb(255 255 255 / 4%) 1px, transparent 1px) 0 0 / 28px 28px,
    #111114;
  transition: transform 1.1s var(--ease);
}
.ccase__link:hover .ccase__gen { transform: scale(1.04); }
.ccase__logo { width: 46%; max-width: 240px; aspect-ratio: 1; object-fit: contain; opacity: .9; }
.ccase__word { font-size: clamp(22px, 2.4vw, 34px); font-weight: 800; text-align: center; padding: 0 20px; }
.ccase__type { position: absolute; bottom: 16px; right: 18px; font-size: 11px; color: var(--muted); padding: 3px 10px; border: 1px solid var(--line-strong); background: rgb(0 0 0 / 30%); }
.ccase__cover .c { z-index: 4; opacity: 0; transition: opacity .3s, transform .4s var(--ease); }
.ccase__cover .c.tl { left: 10px; top: 10px } .ccase__cover .c.tr { right: 10px; top: 10px }
.ccase__cover .c.br { right: 10px; bottom: 10px } .ccase__cover .c.bl { left: 10px; bottom: 10px }
.ccase__link:hover .ccase__cover .c { opacity: 1; }

.ccase__body { position: relative; padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; transform: translateZ(20px); }
.ccase__num { position: absolute; left: 22px; top: 22px; font-style: normal; font-size: 11px; color: #555; }
.ccase__client { font-size: 12px; color: var(--muted); padding-inline-end: 40px; line-height: 1.7; }
.ccase__body h3 { font-size: 22px; font-weight: 700; line-height: 1.5; }
.ccase__meta { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.ccase__meta li { display: flex; flex-direction: column; gap: 3px; }
.ccase__meta span { font-size: 10px; color: #6f6f75; }
.ccase__meta b { font-size: 13px; font-weight: 500; }
.ccase__arrow { position: absolute; left: 22px; bottom: 22px; font-style: normal; font-size: 18px; opacity: .35; transition: transform .45s var(--ease), opacity .3s; }
.ccase__link:hover .ccase__arrow { opacity: 1; transform: translate(-5px, -5px); }

@media (max-width: 1000px) {
  .cgrid { grid-template-columns: repeat(2, 1fr); }
  .ccase, .cgrid:not(.is-filtered) .ccase:nth-child(n) { grid-column: span 1; }
  .cstats { grid-template-columns: repeat(2, 1fr); }
  .cstat:nth-child(3) { border-inline-start: 0; }
  .cstat:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .cgrid { grid-template-columns: 1fr; }
  .cfilter { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 6px; }
  .cfilter__btn { flex: none; }
}

/* ---------- case study detail page ---------- */
.cs-hero { min-height: 74vh; }
.cs-hero h1 { font-size: clamp(30px, 3.6vw, 54px); max-width: 980px; }
.cs-back { font-size: 13px; color: var(--muted); transition: color .3s; }
.cs-back:hover { color: var(--fg); }
.cs-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 0; margin-top: 10px; border: 1px solid var(--line); }
.cs-meta li { display: flex; flex-direction: column; gap: 6px; padding: 16px 26px; text-align: center; }
.cs-meta li + li { border-inline-start: 1px solid var(--line); }
.cs-meta span { font-size: 11px; color: var(--muted); }
.cs-meta b, .cs-meta a { font-size: 14px; font-weight: 600; }
.cs-meta a { color: var(--fg); border-bottom: 1px solid var(--line-strong); }
.cs-meta a:hover { border-color: var(--fg); }

.cs-cover { position: relative; aspect-ratio: 16 / 8.4; margin: 0 auto 8vh; overflow: visible; cursor: zoom-in; }
.cs-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 1px solid var(--line); transition: transform 1.2s var(--ease); }
.cs-cover:hover img { transform: scale(1.015); }

.cs-body { display: flex; flex-direction: column; gap: 12vh; padding-bottom: 14vh; }
.cs-sec { display: grid; grid-template-columns: 1fr 1.9fr; gap: 6vw; align-items: start; }
.cs-sec__head { position: sticky; top: 120px; }
.cs-sec__head h2 { font-size: clamp(22px, 2.2vw, 32px); font-weight: 700; max-width: none; line-height: 1.5; }
.cs-sec__body { display: flex; flex-direction: column; gap: 22px; }
.cs-sec__body p { font-size: 16px; line-height: 2.15; color: #c4c4c9; text-align: justify; }
.cs-sec__body p.cs-item { padding: 14px 18px; border: 1px solid var(--line); background: rgb(255 255 255 / 2%); color: var(--fg); text-align: right; line-height: 1.9; }
.cs-sec__body h4 { font-size: 17px; font-weight: 700; margin-top: 10px; }
.cs-step { display: flex; align-items: baseline; gap: 16px; margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--line); font-size: 20px; font-weight: 700; line-height: 1.6; }
.cs-step i { font-style: normal; font-size: 13px; font-weight: 600; color: var(--bg); background: var(--fg); padding: 2px 9px; flex: none; transform: translateY(-3px); }
.cs-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cs-list li { position: relative; padding: 12px 16px 12px 14px; padding-inline-start: 30px; border: 1px solid var(--line); font-size: 14px; line-height: 1.8; color: #d0d0d4; }
.cs-list li::before { content: ""; position: absolute; inset-inline-start: 13px; top: 21px; width: 6px; height: 6px; background: var(--green); border-radius: 50%; }

.cs-fig { position: relative; margin: 14px 0; cursor: zoom-in; }
.cs-fig img { display: block; width: 100%; height: auto; border: 1px solid var(--line); transition: transform 1s var(--ease), filter .5s; filter: saturate(.92); }
.cs-fig:hover img { transform: scale(1.012); filter: saturate(1.05); }
.cs-fig .c, .cs-cover .c { z-index: 3; opacity: 0; transition: opacity .3s, transform .4s var(--ease); }
.cs-fig:hover .c, .cs-cover:hover .c { opacity: 1; }
.cs-fig:hover .c.tl, .cs-cover:hover .c.tl { transform: translate(-6px, -6px) } .cs-fig:hover .c.tr, .cs-cover:hover .c.tr { transform: translate(6px, -6px) rotate(90deg) }
.cs-fig:hover .c.br, .cs-cover:hover .c.br { transform: translate(6px, 6px) rotate(180deg) } .cs-fig:hover .c.bl, .cs-cover:hover .c.bl { transform: translate(-6px, 6px) rotate(270deg) }

/* next project */
.cs-next { padding: 6vh 0 4vh; }
.cs-next__link {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto 1fr; gap: 10px 40px;
  padding: 44px; border: 1px solid var(--line); overflow: hidden; min-height: 320px;
  transition: border-color .4s, background .4s;
}
.cs-next__link:hover { border-color: rgb(255 255 255 / 35%); background: rgb(255 255 255 / 3%); }
.cs-next__link .eyebrow { grid-column: 1; }
.cs-next__title { grid-column: 1; font-size: clamp(30px, 4vw, 60px); font-weight: 850; line-height: 1.25; }
.cs-next__client { grid-column: 1; font-size: 14px; color: var(--muted); align-self: start; }
.cs-next__img { grid-column: 2; grid-row: 1 / 4; position: relative; overflow: hidden; border: 1px solid var(--line); min-height: 230px; }
.cs-next__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.2s var(--ease); }
.cs-next__link:hover .cs-next__img img { transform: scale(1); }
.cs-next__arrow { position: absolute; left: 44px; bottom: 36px; font-style: normal; font-size: 34px; transition: transform .5s var(--ease); }
.cs-next__link:hover .cs-next__arrow { transform: translateX(-10px); }

@media (max-width: 860px) {
  .cs-sec { grid-template-columns: 1fr; gap: 22px; }
  .cs-sec__head { position: static; }
  .cs-list { grid-template-columns: 1fr; }
  .cs-meta li { padding: 12px 16px; flex: 1 1 40%; }
  .cs-meta li:nth-child(3) { border-inline-start: 0; }
  .cs-cover { aspect-ratio: 4 / 3; }
  .cs-next__link { grid-template-columns: 1fr; padding: 28px; }
  .cs-next__img { grid-column: 1; grid-row: auto; min-height: 180px; }
  .cs-next__arrow { left: 28px; bottom: 24px; }
}

/* case videos */
.cs-video { position: relative; margin: 14px 0; border: 1px solid var(--line); background: #0d0d10; }
.cs-video video { display: block; width: 100%; height: auto; max-height: 78vh; background: #0d0d10; }
.cs-video .c { z-index: 3; opacity: .6; }

/* ---------- blog ---------- */
.blog-feature { padding: 0 0 6vh; }
.blog-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 34px; }
.blog-tools .cfilter { margin: 0; }
.bsearch { position: relative; flex: 0 1 300px; }
.bsearch input {
  width: 100%; font: inherit; font-size: 14px; color: var(--fg); background: transparent; outline: 0;
  border: 1px solid var(--line-strong); padding: 11px 40px 11px 14px; transition: border-color .3s;
}
.bsearch input:focus { border-color: var(--fg); }
.bsearch i { position: absolute; right: 14px; top: 50%; translate: 0 -50%; font-style: normal; color: var(--muted); }
.bgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.bcard.is-hidden, .bcard.is-paged { display: none; }
.bcard__link { position: relative; display: flex; flex-direction: column; height: 100%; border: 1px solid var(--line); background: rgb(255 255 255 / 1.5%); transition: border-color .4s, background .4s; }
.bcard__link:hover { border-color: rgb(255 255 255 / 30%); background: rgb(255 255 255 / 3%); }
.bcard__img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--line); background: #111114; }
.bcard__img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); transition: transform 1.1s var(--ease), filter .5s; }
.bcard__link:hover .bcard__img img { transform: scale(1.05); filter: saturate(1.05); }
.bcard__img .c { z-index: 3; opacity: 0; transition: opacity .3s, transform .4s var(--ease); }
.bcard__img .c.tl { left: 10px; top: 10px } .bcard__img .c.tr { right: 10px; top: 10px } .bcard__img .c.br { right: 10px; bottom: 10px } .bcard__img .c.bl { left: 10px; bottom: 10px }
.bcard__link:hover .bcard__img .c { opacity: 1; }
.bcard__body { position: relative; padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.bcard__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 11px; color: var(--muted); }
.bcard__meta b { color: var(--fg); font-weight: 600; }
.bcard__meta i { font-style: normal; }
.bcard h3 { font-size: 18px; font-weight: 700; line-height: 1.65; }
.bcard p { font-size: 13px; line-height: 1.9; color: #a9a9ae; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bcard__arrow { position: absolute; left: 20px; bottom: 20px; font-style: normal; opacity: .3; transition: transform .45s var(--ease), opacity .3s; }
.bcard__link:hover .bcard__arrow { opacity: 1; transform: translate(-4px, -4px); }
/* featured post */
.bcard--big .bcard__link { display: grid; grid-template-columns: 1.3fr 1fr; }
.bcard--big .bcard__img { aspect-ratio: auto; min-height: 340px; border-bottom: 0; border-inline-start: 1px solid var(--line); order: 2; }
.bcard--big .bcard__body { justify-content: center; padding: 40px; gap: 14px; }
.bcard--big h3 { font-size: clamp(24px, 2.6vw, 36px); line-height: 1.5; }
.bcard--big p { -webkit-line-clamp: 4; font-size: 15px; }
.bempty { text-align: center; color: var(--muted); padding: 60px 0; }
.bmore-wrap { display: flex; justify-content: center; margin-top: 40px; }
.bmore-wrap.is-done { display: none; }

/* article */
.ba-body { max-width: 780px; padding-bottom: 6vh; display: flex; flex-direction: column; gap: 20px; }
.ba-body h2 { font-size: clamp(22px, 2.2vw, 30px); font-weight: 800; line-height: 1.6; margin-top: 34px; max-width: none; }
.ba-body h3 { font-size: 20px; font-weight: 700; line-height: 1.7; margin-top: 14px; }
.ba-body h4 { font-size: 17px; font-weight: 700; }
.ba-body p { font-size: 16.5px; line-height: 2.15; color: #c9c9ce; text-align: justify; }
.ba-body .ba-cap { font-size: 13px; color: var(--muted); text-align: center; margin-top: -10px; }
.ba-list { display: flex; flex-direction: column; gap: 8px; padding-inline-start: 4px; }
.ba-list li { position: relative; padding-inline-start: 22px; font-size: 16px; line-height: 2; color: #d0d0d4; }
.ba-list li::before { content: ""; position: absolute; inset-inline-start: 2px; top: 14px; width: 6px; height: 6px; background: var(--green); border-radius: 50%; }
.ba-body blockquote { position: relative; padding: 22px 26px; border-inline-start: 2px solid var(--fg); background: rgb(255 255 255 / 3%); font-size: 17px; line-height: 2; color: var(--fg); }
.ba-table { overflow-x: auto; border: 1px solid var(--line); }
.ba-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ba-table th, .ba-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: right; line-height: 1.8; }
.ba-table th { background: rgb(255 255 255 / 4%); font-weight: 700; }
.ba-cover { margin-bottom: 6vh; }
.ba-related { padding-top: 4vh; }
.ba-related h2 { margin-bottom: 30px; }
.bgrid--3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 1000px) { .bgrid, .bgrid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) {
  .bgrid, .bgrid--3 { grid-template-columns: 1fr; }
  .bcard--big .bcard__link { grid-template-columns: 1fr; }
  .bcard--big .bcard__img { order: 0; min-height: 0; aspect-ratio: 16 / 9; border-inline-start: 0; border-bottom: 1px solid var(--line); }
  .bcard--big .bcard__body { padding: 24px; }
  .bsearch { flex-basis: 100%; }
}

/* ---------- product page: User Testing ---------- */
.ut-hero { min-height: 100vh; }
.ut-logo { height: 54px; width: auto; filter: brightness(0) invert(1); opacity: .95; }
.ut-hero h1 { font-size: clamp(34px, 4.2vw, 62px); }
.ut-brands { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px 58px; margin-top: 22px; } /* RTL: first item (MCI) sits rightmost */
.ut-brands img { height: 26px; width: auto; filter: brightness(0) invert(1); opacity: .45; transition: opacity .3s; }
.ut-brands li:hover img { opacity: .9; }
.ut-head { margin-bottom: 44px; }

.ut-video { position: relative; border: 1px solid var(--line); background: #0d0d10; box-shadow: 0 40px 120px rgb(0 0 0 / 60%); }
.ut-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #0d0d10; }
.ut-video .c, .ut-quote .c, .ut-int .c, .ut-tests .c, .ut-shot .c { z-index: 3; }
.ut-stats { margin-top: 8vh; }

.ut-tabs { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); margin-bottom: 26px; }
.ut-tab { display: flex; align-items: center; gap: 12px; padding: 18px 20px; font-size: 15px; font-weight: 600; color: var(--muted); text-align: right; transition: background .3s, color .3s; position: relative; }
.ut-tab + .ut-tab { border-inline-start: 1px solid var(--line); }
.ut-tab span { flex: 1; }
.ut-tab i { font-style: normal; font-size: 11px; opacity: .6; }
.ut-tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--fg); transform: scaleX(0); transition: transform .45s var(--ease); }
.ut-tab:hover { color: var(--fg); }
.ut-tab.is-active { color: var(--fg); background: rgb(255 255 255 / 4%); }
.ut-tab.is-active::after { transform: scaleX(1); }
.ut-ico { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.ut-panel { display: none; grid-template-columns: 1fr 1.3fr; gap: 6vw; align-items: start; }
.ut-panel.is-active { display: grid; }
.ut-panel__text h3 { font-size: clamp(22px, 2.2vw, 30px); font-weight: 800; line-height: 1.6; margin-bottom: 14px; }
.ut-panel__text p { font-size: 16px; line-height: 2.1; color: #c4c4c9; }
.ut-tests { display: grid; gap: 12px; }
.ut-tests li { position: relative; padding: 22px 24px; border: 1px solid var(--line); background: rgb(255 255 255 / 2%); display: flex; flex-direction: column; gap: 6px; transition: border-color .3s, background .3s; }
.ut-tests li:hover { border-color: var(--line-strong); background: rgb(255 255 255 / 4%); }
.ut-tests b { font-size: 17px; font-weight: 700; }
.ut-tests span { font-size: 14px; color: #a9a9ae; line-height: 1.9; }
.ut-tests .c { opacity: 0; transition: opacity .3s, transform .4s var(--ease); }
.ut-tests li:hover .c { opacity: 1; }

.ut-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); counter-reset: s; }
.ut-step { position: relative; padding: 34px 26px 10px 18px; display: flex; flex-direction: column; gap: 10px; }
.ut-step + .ut-step { border-inline-start: 1px solid var(--line); }
.ut-step i { font-style: normal; font-size: 13px; font-weight: 700; color: var(--bg); background: var(--fg); align-self: flex-start; padding: 2px 9px; }
.ut-step h4 { font-size: 20px; font-weight: 800; }
.ut-step p { font-size: 14px; line-height: 1.95; color: #a9a9ae; }
.ut-step::before { content: ""; position: absolute; top: -4px; right: 18px; width: 7px; height: 7px; border-radius: 50%; background: var(--fg); box-shadow: 0 0 12px rgb(255 255 255 / 60%); }

.ut-split { display: grid; grid-template-columns: 1.25fr 1fr; gap: 6vw; align-items: center; }
.ut-shot { position: relative; border: 1px solid var(--line); cursor: zoom-in; }
.ut-shot img { display: block; width: 100%; height: auto; }
.ut-split__text { display: flex; flex-direction: column; gap: 22px; }
.ut-split__text .tags { justify-content: flex-start; }
.ut-feats { display: flex; flex-direction: column; gap: 6px; }
.ut-feats li { position: relative; padding: 18px 0 18px 0; padding-inline-start: 48px; border-top: 1px solid var(--line); }
.ut-feats i { position: absolute; inset-inline-start: 0; top: 20px; font-style: normal; font-size: 12px; color: var(--muted); }
.ut-feats h4 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.ut-feats p { font-size: 14px; line-height: 1.9; color: #a9a9ae; }

.ut-int { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; padding: 50px; border: 1px solid var(--line);
  background: radial-gradient(70% 90% at 100% 0%, rgb(255 255 255 / 5%), transparent 70%); }
.ut-int__text { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.ut-int__text h2 { max-width: none; }
.ut-int__text p { font-size: 15px; line-height: 2.05; color: #c4c4c9; }
.ut-int__codes { display: flex; gap: 8px; flex-wrap: wrap; }
.ut-int__codes code { direction: ltr; unicode-bidi: isolate; }
.ut-int__codes code { font-family: ui-monospace, Menlo, monospace; font-size: 12px; padding: 6px 12px; border: 1px solid var(--line-strong); color: var(--fg); }
.ut-int__lists { display: flex; flex-direction: column; gap: 28px; justify-content: center; }
.ut-int__lists h4 { font-size: 13px; color: var(--muted); font-weight: 500; margin-bottom: 12px; }
.ut-chips { display: flex; flex-wrap: wrap; gap: 8px; } /* flows from the right, aligned with the headings */
.ut-chips li { direction: ltr; unicode-bidi: isolate; }
.ut-chips li { padding: 8px 14px; border: 1px solid var(--line-strong); font-size: 13px; font-weight: 600; transition: background .3s, color .3s; }
.ut-chips li:hover { background: var(--fg); color: var(--bg); }

.ut-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent); }
.ut-marquee__track { display: flex; gap: 20px; width: max-content; animation: utMarquee 60s linear infinite; padding: 10px 0; }
.ut-marquee:hover .ut-marquee__track { animation-play-state: paused; }
@keyframes utMarquee { to { transform: translateX(50%); } }
.ut-quote { position: relative; width: 380px; flex: none; padding: 28px 28px 24px; border: 1px solid var(--line); background: rgb(255 255 255 / 2%); display: flex; flex-direction: column; justify-content: space-between; gap: 22px; }
.ut-quote blockquote { font-size: 16px; line-height: 2; color: #e2e2e5; }
.ut-quote figcaption { display: flex; align-items: center; gap: 12px; }
.ut-quote img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; filter: grayscale(1); }
.ut-quote figcaption span { display: flex; flex-direction: column; gap: 2px; }
.ut-quote b { font-size: 14px; }
.ut-quote small { font-size: 12px; color: var(--muted); }

@media (max-width: 1000px) {
  .ut-steps { grid-template-columns: repeat(2, 1fr); }
  .ut-step:nth-child(3) { border-inline-start: 0; }
  .ut-int { grid-template-columns: 1fr; padding: 34px; }
}
@media (max-width: 860px) {
  .ut-tabs { grid-template-columns: 1fr 1fr; }
  .ut-tab:nth-child(3) { border-inline-start: 0; }
  .ut-tab:nth-child(n+3) { border-top: 1px solid var(--line); }
  .ut-panel.is-active { grid-template-columns: 1fr; gap: 24px; }
  .ut-split { grid-template-columns: 1fr; }
  .ut-steps { grid-template-columns: 1fr; }
  .ut-step + .ut-step { border-inline-start: 0; border-top: 1px solid var(--line); }
  .ut-quote { width: 300px; }
}

/* ---------- blog images toned to the site's dark monochrome theme ---------- */
.bcard__img img { filter: grayscale(1) contrast(1.08) brightness(.72); transition: transform 1.1s var(--ease), filter .6s; }
.bcard__img::after { /* soft dark wash + subtle bottom fade into the card */
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(180deg, rgb(11 11 12 / 5%) 0%, rgb(11 11 12 / 15%) 55%, rgb(11 11 12 / 65%) 100%);
  transition: opacity .6s;
}
.bcard__link:hover .bcard__img img { filter: grayscale(.35) contrast(1.05) brightness(.9); }
.bcard__link:hover .bcard__img::after { opacity: .5; }
/* inside articles: keep a hint of colour (diagrams/screens), full colour on hover */
.page--article .cs-fig img, .page--article .ba-cover img { filter: saturate(.35) contrast(1.05) brightness(.85); transition: filter .6s, transform 1s var(--ease); }
.page--article .cs-fig:hover img, .page--article .ba-cover:hover img { filter: none; }
.page--article .ba-cover::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 50%, rgb(11 11 12 / 55%)); }

.ut-brand--saraf img, .ut-brand--mobinhost img { height: 34px; }
.ut-brand--nobitex img, .ut-brand--ecogold img { height: 21px; }   /* visually heavier marks: 0.8× */

/* ---------- product design landing ---------- */
.pd-hero { min-height: 100vh; }
.pd-hero h1 { font-size: clamp(32px, 4vw, 60px); }
.pd-rot { display: inline-block; min-width: 4.5em; color: #fff; position: relative; }
.pd-rot::after { content: ""; position: absolute; left: 0; right: 0; bottom: .08em; height: 2px; background: linear-gradient(90deg, transparent, var(--fg), transparent); opacity: .5; }
.pd-proof { padding: 0 0 8vh; }

.pd-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pd-svc {
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 30px 26px 28px;
  border: 1px solid var(--line); background: rgb(255 255 255 / 1.5%); transition: border-color .4s, background .4s;
}
.pd-svc:nth-child(1), .pd-svc:nth-child(2) { grid-column: span 1; }
.pd-svc:last-child { grid-column: 1 / -1; }
.pd-svc header { display: flex; justify-content: space-between; align-items: center; }
.pd-svc header i { font-style: normal; font-size: 11px; color: #555; }
.pd-ico { width: 30px; height: 30px; fill: none; stroke: #d8d8dc; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease), stroke .3s; }
.pd-svc h3 { font-size: 21px; font-weight: 800; line-height: 1.5; margin-top: 8px; }
.pd-svc__lead { font-size: 14px; color: var(--fg) !important; font-weight: 600; }
.pd-svc p { font-size: 14px; line-height: 1.95; color: #a9a9ae; }
.pd-svc ul { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.pd-svc ul > * { overflow: hidden; }
.pd-svc ul { display: flex; flex-direction: column; gap: 6px; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .6s var(--ease), opacity .4s, margin .4s; }
.pd-svc li { position: relative; padding-inline-start: 18px; font-size: 13px; color: #d0d0d4; line-height: 1.9; }
.pd-svc li::before { content: ""; position: absolute; inset-inline-start: 0; top: 11px; width: 6px; height: 6px; background: var(--green); border-radius: 50%; }
.pd-svc:hover { border-color: rgb(255 255 255 / 30%); background: rgb(255 255 255 / 3.5%); }
.pd-svc:hover ul { max-height: 220px; opacity: 1; margin-top: 6px; }
.pd-svc:hover .pd-ico { transform: translateY(-3px) rotate(-6deg); stroke: #fff; }
.pd-svc .c { opacity: 0; transition: opacity .3s, transform .4s var(--ease); }
.pd-svc:hover .c { opacity: 1; }
@media (hover: none) { .pd-svc ul { max-height: none; opacity: 1; margin-top: 6px; } }

/* process: vertical timeline whose line fills while scrolling */
.pd-process__wrap { display: grid; grid-template-columns: 1fr 1.4fr; gap: 6vw; align-items: start; }
.pd-process__head { position: sticky; top: 120px; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.pd-process__head .tags { justify-content: flex-start; }
.pd-process__head h2 { max-width: none; }
.pd-steps { position: relative; display: flex; flex-direction: column; gap: 0; padding-inline-start: 34px; }
.pd-steps__line { position: absolute; inset-inline-start: 6px; top: 10px; bottom: 10px; width: 1px; background: var(--line); }
.pd-steps__line b { position: absolute; inset: 0 0 auto 0; height: 0; background: var(--fg); box-shadow: 0 0 10px rgb(255 255 255 / 60%); }
.pd-step { position: relative; display: flex; gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--line); opacity: .35; transition: opacity .5s; }
.pd-step.is-on { opacity: 1; }
.pd-step__dot { position: absolute; inset-inline-start: -33px; top: 34px; width: 11px; height: 11px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--bg); transition: background .4s, border-color .4s, box-shadow .4s; }
.pd-step.is-on .pd-step__dot { background: var(--fg); border-color: var(--fg); box-shadow: 0 0 12px rgb(255 255 255 / 70%); }
.pd-step > i { font-style: normal; font-size: 12px; color: var(--muted); padding-top: 8px; }
.pd-step h3 { font-size: 24px; font-weight: 800; margin-bottom: 6px; }
.pd-step p { font-size: 15px; line-height: 2; color: #c4c4c9; }
.pd-step small { display: inline-block; margin-top: 10px; font-size: 12px; color: var(--muted); padding: 4px 10px; border: 1px solid var(--line); }

/* research methods: two rows sliding in opposite directions */
.pd-rows { display: flex; flex-direction: column; gap: 14px; overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent); }
.pd-row { display: flex; gap: 12px; width: max-content; animation: pdRow 46s linear infinite; }
.pd-row--rev { animation-direction: reverse; animation-duration: 52s; }
.pd-rows:hover .pd-row { animation-play-state: paused; }
.pd-row li { padding: 16px 26px; border: 1px solid var(--line-strong); font-size: 17px; font-weight: 600; white-space: nowrap; background: rgb(255 255 255 / 2%); transition: background .3s, color .3s; }
.pd-row li:hover { background: var(--fg); color: var(--bg); }
@keyframes pdRow { from { transform: translateX(0); } to { transform: translateX(50%); } }

/* selected work */
.pd-work-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 34px; }
.pd-work-head h2 { max-width: none; }
.pd-works { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pd-work { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); overflow: hidden; transition: border-color .4s; }
.pd-work:hover { border-color: rgb(255 255 255 / 30%); }
.pd-work__img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #111114; }
.pd-work__img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.6) brightness(.85); transition: transform 1.1s var(--ease), filter .6s; }
.pd-work:hover .pd-work__img img { transform: scale(1.05); filter: none; }
.pd-work__meta { display: flex; flex-direction: column; gap: 4px; padding: 20px 22px 22px; }
.pd-work__meta small { font-size: 12px; color: var(--muted); }
.pd-work__meta b { font-size: 19px; font-weight: 700; }
.pd-work > i { position: absolute; left: 20px; bottom: 22px; font-style: normal; opacity: .3; transition: transform .45s var(--ease), opacity .3s; }
.pd-work:hover > i { opacity: 1; transform: translate(-4px, -4px); }

/* engagement models */
.pd-plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 980px; margin: 0 auto; }
.pd-plan { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 36px; border: 1px solid var(--line); background: rgb(255 255 255 / 1.5%); }
.pd-plan--plus { border-color: rgb(255 255 255 / 30%); background: radial-gradient(90% 80% at 100% 0%, rgb(255 255 255 / 7%), transparent 70%); }
.pd-plan__tag { align-self: flex-start; font-size: 11px; padding: 3px 10px; border: 1px solid var(--line-strong); color: var(--muted); }
.pd-plan h3 { font-size: 48px; font-weight: 900; direction: ltr; text-align: right; line-height: 1; }
.pd-plan h3 sup { font-size: .5em; color: var(--green); }
.pd-plan p { font-size: 15px; line-height: 2; color: #c4c4c9; }
.pd-plan ul { display: flex; flex-direction: column; gap: 8px; padding: 6px 0 10px; }
.pd-plan li { position: relative; padding-inline-start: 22px; font-size: 14px; color: #d6d6da; }
.pd-plan li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--green); font-weight: 700; }
.pd-plan .btn { align-self: flex-start; margin-top: auto; }
.pd-plan .c { opacity: .7; }

@media (max-width: 1000px) { .pd-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) {
  .pd-grid, .pd-works, .pd-plan-grid { grid-template-columns: 1fr; }
  .pd-process__wrap { grid-template-columns: 1fr; }
  .pd-process__head { position: static; }
  .pd-plan { padding: 28px 22px; }
}

/* ---------- shared "cost of waiting" section on service pages ---------- */
.fomo { position: relative; }
.fomo::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 50% at 50% 0%, rgb(255 255 255 / 4%), transparent 70%); }
.fomo__top { display: grid; grid-template-columns: 1.3fr 1fr; gap: 6vw; align-items: end; margin-bottom: 48px; }
.fomo__head { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.fomo__head .tags { justify-content: flex-start; }
.fomo__head h2 { max-width: none; }
.fomo__clock { position: relative; padding: 30px 28px; border: 1px solid var(--line-strong); background: rgb(255 255 255 / 2%); display: flex; flex-direction: column; gap: 12px; }
.fomo__clock b { font-size: clamp(54px, 6vw, 92px); font-weight: 850; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: .02em; direction: ltr; text-align: right; }
.fomo__clock p { font-size: 13.5px; line-height: 2; color: #a9a9ae; }
.fomo__live { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.fomo__live i { width: 7px; height: 7px; border-radius: 50%; background: #ff4d4d; box-shadow: 0 0 10px #ff4d4d; animation: fomoPulse 1.4s ease-in-out infinite; }
@keyframes fomoPulse { 50% { opacity: .25; } }
.fomo__costs { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fomo-cost { position: relative; padding: 34px 28px 38px; display: flex; flex-direction: column; gap: 12px; transition: background .4s; }
.fomo-cost + .fomo-cost { border-inline-start: 1px solid var(--line); }
.fomo-cost > i { font-style: normal; font-size: 11px; color: #555; }
.fomo-cost h3 { font-size: 22px; font-weight: 800; line-height: 1.55; }
.fomo-cost p { font-size: 14px; line-height: 2; color: #a9a9ae; }
.fomo-cost .c { opacity: 0; transition: opacity .3s; }
.fomo-cost:hover { background: rgb(255 255 255 / 3%); }
.fomo-cost:hover .c { opacity: 1; }
.fomo__bottom { display: grid; grid-template-columns: 1.2fr 1fr; gap: 5vw; align-items: center; margin-top: 44px; }
.fomo__brands small { display: block; font-size: 12px; color: var(--muted); margin-bottom: 16px; }
.fomo__brands ul { display: flex; flex-wrap: wrap; gap: 26px 30px; align-items: center; }
.fomo__brands li { width: 54px; height: 54px; opacity: .6; transition: opacity .3s, transform .4s var(--ease); }
.fomo__brands li:hover { opacity: 1; transform: translateY(-3px); }
.fomo__brands img { width: 100%; height: 100%; object-fit: contain; }
.fomo__seat { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; padding-inline-start: 5vw; border-inline-start: 1px solid var(--line); }
.fomo__seat p { font-size: 15px; line-height: 2.05; color: #c4c4c9; }
.fomo__seat p b { color: var(--fg); }

/* training: academic partners */
.tr-partners__wrap { display: grid; grid-template-columns: 1fr 1.3fr; gap: 6vw; align-items: center; }
.tr-partners__head { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.tr-partners__head .tags { justify-content: flex-start; }
.tr-partners__head h2 { max-width: none; }
.tr-partners__list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tr-partners__list li { position: relative; display: flex; align-items: center; gap: 16px; padding: 22px; border: 1px solid var(--line); transition: border-color .3s, background .3s; }
.tr-partners__list li:hover { border-color: rgb(255 255 255 / 30%); background: rgb(255 255 255 / 3%); }
.tr-partners__list .c { opacity: 0; transition: opacity .3s; }
.tr-partners__list li:hover .c { opacity: 1; }
.tr-partners__logo { width: 52px; height: 52px; flex: none; display: grid; place-items: center; }
.tr-partners__logo img { max-width: 100%; max-height: 100%; }
.tr-partners__list b { font-size: 16px; font-weight: 700; }

.pd-grid--even .pd-svc:last-child { grid-column: auto; }

@media (max-width: 900px) {
  .fomo__top, .fomo__bottom, .tr-partners__wrap { grid-template-columns: 1fr; }
  .fomo__costs { grid-template-columns: 1fr; }
  .fomo-cost + .fomo-cost { border-inline-start: 0; border-top: 1px solid var(--line); }
  .fomo__seat { padding-inline-start: 0; border-inline-start: 0; padding-top: 28px; border-top: 1px solid var(--line); }
  .tr-partners__list { grid-template-columns: 1fr; }
}

/* ---------- Design Status (Figma widget) ---------- */
.ds-hero { min-height: 100vh; }
.ds-hero h1 { font-size: clamp(32px, 4vw, 60px); }
.ds-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-top: 14px; font-size: 13px; color: var(--muted); }
.ds-facts b { color: var(--fg); font-weight: 700; }
.ds-pains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ds-pain { position: relative; padding: 30px 26px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.ds-pain b { font-size: 22px; font-weight: 800; }
.ds-pain p { font-size: 14px; line-height: 2; color: #a9a9ae; }
.ds-pain .c, .ds-feat .c, .ds-role .c { opacity: 0; transition: opacity .3s; }
.ds-pain:hover .c, .ds-feat:hover .c, .ds-role:hover .c { opacity: 1; }

.ds-demo { display: grid; grid-template-columns: 300px 1fr; border: 1px solid var(--line-strong); min-height: 560px; }
.ds-ctrl { padding: 30px 26px; border-inline-end: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.ds-ctrl h4 { font-size: 12px; color: var(--muted); font-weight: 500; margin-top: 6px; }
.ds-picks { display: flex; flex-direction: column; gap: 8px; }
.ds-pick { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border: 1px solid var(--line); font-size: 14px; text-align: start; transition: border-color .3s, background .3s; }
.ds-pick i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 0 var(--c); transition: box-shadow .3s; }
.ds-pick:hover { border-color: rgb(255 255 255 / 30%); }
.ds-pick.is-on { border-color: var(--c); background: color-mix(in srgb, var(--c) 10%, transparent); }
.ds-pick.is-on i { box-shadow: 0 0 10px 1px var(--c); }
.ds-lang { display: flex; border: 1px solid var(--line); }
.ds-lang button { flex: 1; padding: 10px; font-size: 13px; color: var(--muted); transition: background .3s, color .3s; }
.ds-lang button.is-on { background: var(--fg); color: var(--bg); }
.ds-note { margin-top: auto; font-size: 12px; line-height: 1.9; color: #6d6d72; }

.ds-canvas { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 44px; padding: 40px;
  background-color: #1b1b1e; background-image: radial-gradient(rgb(255 255 255 / 9%) 1px, transparent 1px); background-size: 18px 18px; }
.ds-frame { position: relative; width: 190px; height: 360px; border-radius: 22px; background: #26262a; border: 1px solid #333338; padding: 46px 18px; display: flex; flex-direction: column; gap: 12px; flex: none; }
.ds-frame i { display: block; height: 10px; border-radius: 3px; background: #34343a; }
.ds-frame i:nth-child(1) { width: 60%; height: 14px; } .ds-frame i:nth-child(2) { height: 70px; border-radius: 10px; }
.ds-frame i:nth-child(4) { width: 75%; } .ds-frame i:nth-child(5) { margin-top: auto; height: 34px; border-radius: 8px; background: #4d4d55; }
.ds-frame span { position: absolute; top: -22px; inset-inline-start: 2px; font-size: 11px; color: #77777d; direction: ltr; font-family: system-ui, sans-serif; }

.ds-widget { width: 300px; flex: none; background: #232327; border: 1px solid #36363c; border-radius: 16px; padding: 18px; box-shadow: 0 30px 60px rgb(0 0 0 / 45%);
  font-size: 12.5px; transition: box-shadow .4s; }
.ds-widget[dir="ltr"] { font-family: system-ui, -apple-system, sans-serif; }
.ds-widget.is-pulse { animation: dsPulse .9s var(--ease); }
@keyframes dsPulse { 0% { box-shadow: 0 0 0 0 rgb(255 255 255 / 35%), 0 30px 60px rgb(0 0 0 / 45%); } 100% { box-shadow: 0 0 0 14px rgb(255 255 255 / 0%), 0 30px 60px rgb(0 0 0 / 45%); } }
.ds-widget header { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid #333338; }
.ds-widget__logo { width: 30px; height: 30px; border-radius: 8px; background: #6d5dfc; display: grid; place-items: center; }
.ds-widget__logo svg { width: 18px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ds-widget header b { display: block; font-size: 14px; font-family: system-ui, sans-serif; }
.ds-widget header small { font-size: 11px; color: #88888e; }
.ds-widget dl { display: grid; grid-template-columns: auto 1fr; gap: 11px 14px; align-items: center; padding: 14px 0; }
.ds-widget dt { color: #88888e; font-size: 11.5px; white-space: nowrap; }
.ds-widget dd { display: flex; align-items: center; gap: 7px; min-width: 0; }
.ds-badge { --c: #f5b544; display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
  color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); transition: color .4s, background .4s, border-color .4s; }
.ds-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.ds-badge em { font-style: normal; }
.ds-ver { font-weight: 700; unicode-bidi: isolate; }
.ds-av { width: 20px; height: 20px; border-radius: 50%; background: #e86f5a; color: #fff; display: grid; place-items: center; font-size: 10px; font-weight: 700; flex: none; }
.ds-av--b { background: #3d9be9; }
.ds-stages { list-style: none; display: flex; flex-direction: column; gap: 5px; }
.ds-stages li { position: relative; padding-inline-start: 18px; color: #6d6d72; font-size: 11.5px; transition: color .3s; }
.ds-stages li::before { content: ""; position: absolute; inset-inline-start: 0; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; border: 1px solid #55555b; transition: background .3s, border-color .3s; }
.ds-stages li.is-done { color: #d0d0d4; }
.ds-stages li.is-done::before { background: #3ecf8e; border-color: #3ecf8e; }
.ds-stages li.is-now { color: #fff; }
.ds-stages li.is-now::before { border-color: #f5b544; box-shadow: 0 0 8px #f5b544; }
.ds-link { color: #8fa8ff; font-size: 11.5px; unicode-bidi: plaintext; font-family: system-ui, sans-serif; white-space: nowrap; overflow: hidden; }
.ds-widget footer { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid #333338; }
.ds-sync { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: #88888e; }
.ds-sync i { width: 6px; height: 6px; border-radius: 50%; background: #3ecf8e; }
.ds-sync.is-on i { animation: dsBlink .9s ease 2; }
@keyframes dsBlink { 50% { transform: scale(2.2); opacity: .3; } }
.ds-sync em { font-style: normal; }
.ds-peers { display: flex; direction: ltr; }
.ds-peers b { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 9px; color: #fff; border: 2px solid #232327; margin-left: -6px; background: #e86f5a; }
.ds-peers b:nth-child(2) { background: #3d9be9; } .ds-peers b:nth-child(3) { background: #3ecf8e; } .ds-peers b:nth-child(4) { background: #44444a; }
.ds-cursor { position: absolute; top: 0; left: 0; display: flex; align-items: flex-start; pointer-events: none; transition: transform 1.1s var(--ease); z-index: 2; }
.ds-cursor svg { width: 16px; fill: #e86f5a; stroke: #fff; stroke-width: 1; }
.ds-cursor em { font-style: normal; font-size: 11px; color: #fff; background: #e86f5a; padding: 2px 7px; border-radius: 4px; margin-top: 12px; font-family: system-ui, sans-serif; }

.ds-feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ds-feat { position: relative; padding: 28px 24px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; transition: border-color .3s, background .3s; }
.ds-feat:hover { border-color: rgb(255 255 255 / 30%); background: rgb(255 255 255 / 3%); }
.ds-feat:hover .pd-ico { transform: translateY(-3px) rotate(-6deg); stroke: #fff; }
.ds-feat h3 { font-size: 17px; font-weight: 800; margin-top: 6px; }
.ds-feat p { font-size: 13.5px; line-height: 2; color: #a9a9ae; }
.ds-roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ds-role { position: relative; padding: 32px 28px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.ds-role small { font-size: 12px; color: var(--muted); }
.ds-role h3 { font-size: 21px; font-weight: 800; line-height: 1.6; }
.ds-role li { position: relative; padding-inline-start: 18px; font-size: 14px; color: #c4c4c9; line-height: 2.1; }
.ds-role li::before { content: ""; position: absolute; inset-inline-start: 0; top: 13px; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.pd-plan h3 small { font-size: .4em; font-weight: 500; color: var(--muted); }
.page--ds .pd-plan h3 { direction: rtl; text-align: start; }

@media (max-width: 1100px) { .ds-feats { grid-template-columns: repeat(2, 1fr); } .ds-frame { display: none; } }
@media (max-width: 860px) {
  .ds-pains, .ds-roles { grid-template-columns: 1fr; }
  .ds-demo { grid-template-columns: 1fr; }
  .ds-ctrl { border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .ds-picks { flex-direction: row; flex-wrap: wrap; }
  .ds-canvas { padding: 30px 16px; }
  .ds-widget { width: 100%; max-width: 320px; }
}
@media (max-width: 560px) { .ds-feats { grid-template-columns: 1fr; } }

/* ---------- site footer ---------- */
.sfoot { position: relative; overflow: hidden; background: #0e0e10; border-top: 1px solid var(--line); padding-top: 13vh; }
.sfoot__top { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr); gap: 8vw; align-items: end; padding-bottom: 10vh; }
.sfoot__lead { display: flex; flex-direction: column; align-items: flex-start; gap: 34px; }
.sfoot__logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; }
.sfoot__logo img { height: 26px; }
.sfoot__big { font-size: clamp(42px, 6.2vw, 104px); font-weight: 300; line-height: 1.18; letter-spacing: -.01em; }
.sfoot__big b { font-weight: 850; }
.sfoot__cta { display: inline-flex; align-items: center; gap: 12px; font-size: 18px; padding-bottom: 6px; position: relative; }
.sfoot__cta::after { content: ""; position: absolute; bottom: 0; right: 0; height: 1px; width: 100%; background: var(--fg); transform-origin: right; transition: transform .5s var(--ease); }
.sfoot__cta:hover::after { transform: scaleX(.35); }
.sfoot__cta i, .sfoot__nav i { font-style: normal; display: inline-block; transition: transform .4s var(--ease); }
.sfoot__cta:hover i { transform: translate(-4px, -4px); }
.sfoot__nav { display: flex; flex-direction: column; }
.sfoot__nav a { display: flex; justify-content: space-between; align-items: center; padding: 17px 0; font-size: 18px; border-bottom: 1px solid var(--line-strong); color: #d6d6da;
  transition: color .3s, padding .45s var(--ease); }
.sfoot__nav a:hover { color: var(--fg); padding-inline-start: 10px; }
.sfoot__nav a:hover i { transform: rotate(-45deg); }
.sfoot__cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding: 7vh 0; border-top: 1px solid var(--line); }
.sfoot__col h4 { font-size: 13px; font-weight: 600; color: var(--fg); margin-bottom: 18px; }
.sfoot__col ul { display: flex; flex-direction: column; gap: 12px; }
.sfoot__col li, .sfoot__col a { font-size: 14px; font-weight: 300; color: #9b9ba0; line-height: 1.9; transition: color .25s; }
.sfoot__col a:hover { color: var(--fg); }
.sfoot__social a { display: inline-flex; gap: 8px; align-items: center; }
.sfoot__social i { font-style: normal; font-size: 12px; opacity: .6; }
.sfoot__clock time { color: var(--fg); font-variant-numeric: tabular-nums; margin-inline-start: 6px; }
.sfoot__bar { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 22px 0; border-top: 1px solid var(--line); font-size: 12px; color: #6d6d72; }
.sfoot__up { display: inline-flex; gap: 8px; align-items: center; color: #9b9ba0; font-size: 12px; transition: color .25s; }
.sfoot__up:hover { color: var(--fg); }
.sfoot__up i { font-style: normal; transition: transform .4s var(--ease); }
.sfoot__up:hover i { transform: translateY(-4px); }
.sfoot__mark { direction: ltr; text-align: center; font-size: 27vw; font-weight: 900; line-height: .78; letter-spacing: -.05em; margin: 2vh 0 -5.5vw; color: transparent;
  -webkit-text-stroke: 1px rgb(255 255 255 / 9%); user-select: none; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 95%); mask-image: linear-gradient(180deg, #000 30%, transparent 95%); }

@media (max-width: 980px) {
  .sfoot__top { grid-template-columns: 1fr; gap: 50px; }
  .sfoot__cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .sfoot__cols { grid-template-columns: 1fr; gap: 30px; }
  .sfoot__nav a { font-size: 16px; }
}

/* ---------- homepage: latest articles (editorial list) ---------- */
.hblog__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 44px; }
.hblog__head .tags { justify-content: flex-start; margin-bottom: 18px; }
.hblog__head h2 { max-width: none; }
.hblog__list { list-style: none; border-top: 1px solid var(--line); }
.hpost a { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(220px, 300px); gap: 36px; align-items: center;
  padding: 30px 0; border-bottom: 1px solid var(--line); transition: background .4s, padding .5s var(--ease); }
.hpost a::before { content: ""; position: absolute; bottom: -1px; inset-inline-start: 0; width: 0; height: 1px; background: var(--fg); transition: width .7s var(--ease); }
.hpost a:hover { background: rgb(255 255 255 / 2%); padding-inline: 18px; }
.hpost a:hover::before { width: 100%; }
.hpost__num { font-style: normal; font-family: var(--mono); font-size: 13px; color: #66666b; align-self: start; padding-top: 6px; transition: color .3s; }
.hpost a:hover .hpost__num { color: var(--fg); }
.hpost__body { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.hpost__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 12px; color: var(--muted); }
.hpost__meta b { font-weight: 500; color: var(--fg); border: 1px solid var(--line-strong); padding: 2px 10px; border-radius: 999px; }
.hpost__meta em { font-style: normal; }
.hpost__meta em + em::before { content: "·"; margin-inline-end: 16px; opacity: .6; }
.hpost h3 { font-size: clamp(19px, 2vw, 28px); font-weight: 800; line-height: 1.6; transition: transform .5s var(--ease); }
.hpost a:hover h3 { transform: translateX(-6px); }
.hpost p { font-size: 14px; line-height: 2; color: #a9a9ae; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hpost__img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #151517; }
.hpost__img img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(1) brightness(.75) contrast(1.05);
  transform: scale(1.02); transition: filter .7s var(--ease), transform 1.1s var(--ease); }
.hpost a:hover .hpost__img img { filter: none; transform: scale(1.07); }
.hpost__arrow { position: absolute; top: 12px; left: 12px; width: 38px; height: 38px; border-radius: 50%; background: var(--fg); color: var(--bg);
  display: grid; place-items: center; font-style: normal; font-size: 15px; opacity: 0; transform: scale(.6) rotate(-45deg); transition: opacity .35s, transform .5s var(--ease); }
.hpost a:hover .hpost__arrow { opacity: 1; transform: none; }
@media (max-width: 860px) {
  .hpost a { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 26px 0; }
  .hpost a:hover { padding-inline: 0; }
  .hpost__num { display: none; }
  .hpost__img { order: -1; }
  .hpost__arrow { opacity: 1; transform: none; }
}

/* in-text links in articles and case studies */
.ba-body a, .cs-sec__body a { color: inherit; text-decoration: underline; text-decoration-color: rgba(255,255,255,.35); text-underline-offset: 4px; transition: text-decoration-color .3s; }
.ba-body a:hover, .cs-sec__body a:hover { text-decoration-color: currentColor; }
/* related services under an article */
.ba-svc { max-width: 780px; padding-bottom: 10vh; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.ba-svc .btnGroup { justify-content: flex-start; gap: 14px; }

/* hub pages (services.html, products.html) */
.pd-grid--hub { grid-template-columns: repeat(2, 1fr); }
.pd-grid--hub .pd-svc:last-child { grid-column: auto; }
.pd-grid--hub .pd-svc ul { max-height: none; opacity: 1; margin-top: 6px; }
.hub__link { color: inherit; }
.hub__more { align-self: flex-start; margin-top: 10px; }
@media (max-width: 800px) { .pd-grid--hub { grid-template-columns: 1fr; } }
