/* =========================================================
   3KITS — Our Work
   Hero, search and filter come from insights.css; the cards are
   the home page's featured-work .case, one project per row with its story beside it.
   Loads after style3.css and insights.css.
   ========================================================= */

.work-list { padding-top: clamp(16px, 2vw, 32px); padding-bottom: 0; }
/* overview page: the category cards start right under the fixed header */
.work-index { padding-top: calc(84px + clamp(28px, 4vw, 64px)); }
.case.is-hidden { display: none; }

/* =========================================================
   Project rows: the case card on the left, the story on the right
   (headline, client chips, results, testimonial, Explore)
   ========================================================= */
/* count line (e.g. 2000+ websites delivered): right-aligned, midway between the line under the client logos and the
   first project (pulled up by half the extra space above it, and the same added below, so the projects don't move) */
.wk-count { margin: calc(-1 * clamp(16px, 1.8vw, 30px)) 0 clamp(36px, 4.2vw, 66px); text-align: right; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.wcases { display: flex; flex-direction: column; }
.wcase { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 3.4vw, 64px); align-items: start; padding-block: clamp(36px, 4.4vw, 72px); border-top: 1px solid var(--line); }
.wcase:first-child { border-top: 0; padding-top: 0; }
.wcase:last-child { padding-bottom: 0; }
.wcase.is-hidden { display: none; }
/* the image stays put while the story beside it scrolls past (clears the 84px fixed header) */
.wcase__media { position: sticky; top: calc(84px + clamp(16px, 2vw, 32px)); }
.wcase__media .case { border-radius: 22px; }
/* no tag or title on the card, so the browser window fills more of it */
/* the same gap on all four sides of the browser window: the card takes its height from the
   window plus padding (no fixed aspect ratio), and the scroll drift is off so the gap stays even */
.wcase .case--wide { aspect-ratio: auto; }
.wcase .case__stage { position: relative; inset: auto; display: block; padding: clamp(24px, 3.4vw, 56px); transform: none !important; }
.wcase .case::after { display: none; }
.work-index .case__stage { inset: 16% 7% 22%; }

.wcase__body { display: flex; flex-direction: column; align-items: flex-start; padding-top: clamp(0px, .6vw, 10px); }
.wcase__tags { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; padding: 0; margin: 0 0 clamp(14px, 1.4vw, 22px); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.wcase__title { font-family: var(--display); font-weight: 500; font-size: clamp(24px, 2.4vw, 42px); line-height: 1.18; letter-spacing: 0; color: var(--text); margin-bottom: clamp(20px, 2vw, 32px); text-wrap: balance; }
.wcase__chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0 0 clamp(28px, 3vw, 48px); }
.wcase__chip { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 6px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text); background: rgba(255, 255, 255, .07); border: 1px solid var(--line-2); }
.wcase__chip--ind::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }

.wcase__results { width: 100%; }
.wcase__label { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.wcase__results ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.wcase__results li { font-size: clamp(16px, 1.15vw, 19px); line-height: 1.4; color: var(--text); }

.wcase__quote { width: 100%; margin: clamp(24px, 2.6vw, 40px) 0 0; padding: clamp(18px, 1.8vw, 26px); border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.wcase__quote blockquote { position: relative; margin: 0 0 16px; padding-left: 30px; font-size: 15px; line-height: 1.6; color: var(--muted); }
.wcase__quote blockquote::before { content: "\201C"; position: absolute; left: 0; top: -6px; font-family: Georgia, serif; font-size: 40px; line-height: 1; color: var(--orange); }
.wcase__quote figcaption { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.wcase__quote figcaption b { display: block; font-weight: 600; color: var(--text); }
.wcase__avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 600; color: #fff; background: var(--grad); }

.wcase__btn { display: inline-flex; align-items: center; gap: 12px; margin-top: clamp(24px, 2.6vw, 40px); padding: 20px 36px; border-radius: 6px; background: var(--orange); color: #fff; font-size: 15px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; transition: background .3s, box-shadow .4s; }
.wcase__btn i { font-style: normal; transition: transform .4s var(--ease); }
.wcase__btn:hover { background: #ff8a33; box-shadow: 0 14px 40px rgba(242, 117, 26, .35); }
.wcase__btn:hover i { transform: translateX(4px); }

/* projects with only a hero screenshot: it fills the window and stays still */
.case__page--still img { height: 100%; object-fit: cover; object-position: top; animation: none; }
.case__bg--grad { background: radial-gradient(90% 90% at 15% 10%, rgba(47, 128, 237, .55), transparent 60%), radial-gradient(90% 90% at 90% 90%, rgba(223, 30, 90, .5), transparent 60%), linear-gradient(135deg, #1a1030, #2a0f1f); }

/* a device mockup instead of a browser window */
.case__stage--mock img { width: 92%; height: auto; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .5)); transition: transform .9s var(--ease); }
.case:hover .case__stage--mock img { transform: translateY(-10px); }

@media (max-width: 1000px) {
  .wcase { grid-template-columns: 1fr; }
  .wcase__media { position: static; }
}
@media (max-width: 720px) {
  .wcase .case__stage { padding: 16px; }
  .wcase__chip { padding: 10px 14px; font-size: 12px; }
  .wcase__btn { padding: 16px 28px; font-size: 13px; }
  .case__tag { left: 14px; top: 12px; padding: 4px 10px; font-size: 10px; }
}

/* =========================================================
   Clients — one logo row drifts sideways. It holds two identical
   groups and slides by -50% for a seamless loop; hovering pauses it. Logos sit on white
   tiles (most are on white backgrounds); hover reveals
   "View website" and the click opens the client's site in a new tab.
   ========================================================= */
.ins-cats[hidden] { display: none; }
/* with the filter hidden, the clients row follows the title closely */
.ins-hero:has(.ins-cats[hidden]) { padding-bottom: clamp(28px, 3vw, 48px); }
.ins-hero:has(.ins-cats[hidden]) .ins-hero__title { margin-bottom: 0; }

.clients { padding-block: 0 clamp(36px, 4vw, 64px); overflow: hidden; }
/* "Our Valued Customers" label (lines either side come from .stack__title in style3.css), logo strip below it */
.clients__label { justify-content: center; }
.clients__rows { position: relative; padding-block: clamp(22px, 2.4vw, 36px); }
/* closing line under the logos, same colour and fade as the label's lines, same width as the label */
.clients__rows::after { content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: calc(min(100%, 1560px + 2 * var(--gutter)) - 2 * var(--gutter)); height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--line-2) 30%, var(--line-2) 70%, transparent); }
.clients__title { font-family: var(--display); font-weight: 600; font-size: clamp(20px, 2vw, 32px); line-height: 1.1; letter-spacing: 0; margin-bottom: clamp(20px, 2vw, 32px); }
.clients__row { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.clients__track { display: flex; width: max-content; animation: clients-tick 180s linear infinite; }
.clients__row:hover .clients__track, .clients__row:focus-within .clients__track { animation-play-state: paused; }
.clients__group { display: flex; gap: clamp(8px, .7vw, 12px); padding-right: clamp(8px, .7vw, 12px); }
@keyframes clients-tick { to { transform: translateX(-50%); } }

.client { flex: none; display: flex; flex-direction: column; gap: 6px; width: clamp(130px, 11vw, 180px); color: var(--text); text-decoration: none; }
.client__logo { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.client__logo img { width: 100%; height: 100%; object-fit: contain; padding: 10% 12%; transition: transform .7s var(--ease), filter .5s; }
.client__visit { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: rgba(4, 4, 10, .72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; transition: opacity .4s var(--ease); }
.client__visit i { font-style: normal; color: var(--orange); transition: transform .4s var(--ease); }
.client__name { font-size: 12px; font-weight: 500; letter-spacing: 0; color: var(--muted); white-space: normal; line-height: 1.3; transition: color .3s;text-align: center; }

a.client:hover .client__visit, a.client:focus-visible .client__visit { opacity: 1; }
a.client:hover .client__visit i { transform: translate(2px, -2px); }
a.client:hover .client__logo img { transform: scale(1.06); filter: blur(1px); }
a.client:hover .client__name, a.client:focus-visible .client__name { color: var(--text); }
a.client:focus-visible { outline: none; }
a.client:focus-visible .client__logo { outline: 2px solid var(--orange); outline-offset: 3px; }

/* touch screens have no hover: show a small "View website" line under the name instead */
@media (hover: none) {
  .client__visit { display: none; }
  a.client .client__name::after { content: 'View website \2197'; display: block; margin-top: 4px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); }
}

/* reduced motion: no drift — each row becomes a swipeable strip and the copies are dropped */
@media (prefers-reduced-motion: reduce) {
  .clients__track { animation: none; }
  .clients__row { overflow-x: auto; -webkit-mask-image: none; mask-image: none; padding-bottom: 8px; }
  .clients__group[aria-hidden="true"] { display: none; }
}

@media (max-width: 720px) {
  .client { width: 120px; }
  .client__logo { border-radius: 14px; }
}

/* =========================================================
   More projects — every site in a two-column list of names,
   each row opens the live site in a new tab
   ========================================================= */
.plist { padding-block: clamp(48px, 5vw, 88px) 0; } /* last section: the footer's own top padding is the gap below */
.plist__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px; margin-bottom: clamp(20px, 2.4vw, 40px); }
.plist__title { font-family: var(--display); font-weight: 600; font-size: clamp(32px, 4vw, 68px); line-height: 1.04; letter-spacing: 0; }
main > section.plist { --hue: var(--pink); } /* "projects" in a light pink-to-white gradient, like "Work" at the top (which runs orange) */
.plist__count { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.plist__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(32px, 6vw, 120px); border-top: 1px solid var(--line); }
.plist__grid.is-collapsed .plist__more { display: none; }
.plist__grid li { border-bottom: 1px solid var(--line); }
.plist__item { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: clamp(16px, 1.6vw, 26px) 0; color: var(--text); text-decoration: none; }
.plist__name { font-family: var(--display); font-weight: 600; font-size: clamp(18px, 1.7vw, 28px); line-height: 1.2; letter-spacing: 0; transition: color .3s, transform .5s var(--ease); }
.plist__go { flex: none; width: clamp(40px, 3vw, 52px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #0d0d16; transition: background .3s, color .3s, transform .5s var(--ease); }
.plist__go svg { width: 45%; transition: transform .4s var(--ease); }
.plist__item:hover .plist__name, .plist__item:focus-visible .plist__name { color: var(--orange); transform: translateX(6px); }
.plist__item:hover .plist__go, .plist__item:focus-visible .plist__go { background: var(--orange); color: #fff; }
.plist__item:hover .plist__go svg { transform: rotate(-45deg); }

.plist__foot { display: flex; justify-content: center; margin-top: clamp(28px, 3vw, 48px); }
.plist__toggle { display: inline-flex; align-items: center; gap: 12px; padding: 18px 34px; border-radius: 6px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .06); color: var(--text); font: inherit; font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; transition: background .3s, border-color .3s; }
.plist__toggle i { font-style: normal; color: var(--orange); }
.plist__toggle:hover { background: rgba(255, 255, 255, .12); border-color: var(--orange); }

@media (max-width: 720px) {
  .plist__grid { grid-template-columns: 1fr; }
}
