/* ===== Our work page ===== */
.wk-hero { padding-block: clamp(28px, 4vw, 48px) clamp(36px, 5vw, 64px); }
.wk-hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(24px, 5vw, 72px); align-items: end; }
.wk-hero h1 { font-size: clamp(2.6rem, 1.4rem + 4vw, 4.8rem); line-height: .95; margin: 14px 0 0; }
.wk-hero p { font-size: 1.12rem; line-height: 1.65; color: var(--muted); max-width: 44ch; }
.wk-list { display: grid; gap: clamp(20px, 3vw, 32px); padding-bottom: clamp(56px, 7vw, 96px); }
.wk-card { position: relative; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); border-radius: 28px; overflow: hidden; background: #f6f1e8; color: var(--ink); text-decoration: none; border: 1px solid rgba(41,41,41,.08); cursor: pointer; transition: transform .35s cubic-bezier(.2,.7,.2,1); box-shadow: 0 24px 50px -44px rgba(20,30,90,.5); }
.wk-card:hover, .wk-card:focus-visible { transform: translateY(-4px); outline: none; }
.wk-card:focus-visible { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--blue); }
.wk-media { position: relative; overflow: hidden; min-height: 100%; background: linear-gradient(160deg, #f6f1e8 0%, #e9dfcd 100%); display: grid; place-items: center; }
.wk-media img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: contain; display: block; }

.wk-media .badge { position: absolute; left: 22px; top: 22px; background: #fff; color: var(--ink); font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: 8px 14px; border-radius: 999px; box-shadow: 0 6px 16px -8px rgba(0,0,0,.3); }
.wk-info { padding: clamp(26px, 4vw, 52px); display: flex; flex-direction: column; gap: 16px; background: #fff; }
.wk-info .eyebrow { margin: 0; }
.wk-info h2 { font-size: clamp(1.9rem, 1.2rem + 2vw, 3rem); line-height: 1; margin: 0; }
.wk-loc { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .98rem; }
.wk-loc svg { width: 16px; height: 16px; }
.wk-info p { color: #3d404b; line-height: 1.65; margin: 0; }
.wk-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.wk-tags span { font-size: .78rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--mist); color: var(--blue-deep); }
.wk-quote { border-left: 3px solid var(--blue); padding: 4px 0 4px 16px; font-size: 1rem; line-height: 1.5; color: var(--ink); font-weight: 500; }
.wk-quote small { display: block; margin-top: 6px; color: var(--muted); font-weight: 400; font-size: .86rem; }
.wk-open { margin-top: auto; display: inline-flex; align-items: center; gap: 12px; font-weight: 700; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.wk-open i { width: 46px; height: 46px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.wk-open i svg { width: 18px; height: 18px; }
.wk-card:hover .wk-open i { transform: translateX(6px) rotate(-45deg); }
.wk-soon { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: clamp(16px, 3vw, 32px); align-items: center; border: 2px dashed rgba(52,89,255,.3); border-radius: 28px; padding: clamp(22px, 3vw, 34px); }
.wk-soon .ic { width: 58px; height: 58px; border-radius: 50%; background: var(--mist); color: var(--blue); display: grid; place-items: center; }
.wk-soon .ic svg { width: 26px; height: 26px; }
.wk-soon b { display: block; font-size: 1.15rem; margin-bottom: 4px; }
.wk-soon span { color: var(--muted); }
@media (max-width: 900px) {
  .wk-hero-grid { grid-template-columns: 1fr; }
  .wk-card { grid-template-columns: 1fr; }
  .wk-media { aspect-ratio: 16 / 10; min-height: 0; }
  .wk-soon { grid-template-columns: 1fr; text-align: left; }
}

/* ===== Project panel ===== */
.wkp { position: fixed; inset: 0; z-index: 100; display: flex; justify-content: flex-end; background: rgba(12, 14, 24, .6); opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s; }
.wkp.open { opacity: 1; visibility: visible; }
.wkp-sheet { position: relative; width: min(1080px, 100%); height: 100%; background: #fff; overflow-y: auto; overscroll-behavior: contain; transform: translate3d(40px, 0, 0); transition: transform .4s cubic-bezier(.2,.7,.2,1); will-change: transform; -webkit-overflow-scrolling: touch; }
.wkp.open .wkp-sheet { transform: none; }
.wkp-top { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px clamp(20px, 4vw, 48px); background: #fff; border-bottom: 1px solid var(--line); }
.wkp-top .t { font-weight: 700; font-size: .95rem; }
.wkp-top .t span { color: var(--muted); font-weight: 400; margin-left: 8px; }
.wkp-x { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--ink); transition: background .2s, transform .2s; }
.wkp-x:hover { background: var(--mist); transform: rotate(90deg); }
.wkp-in { padding: clamp(24px, 4vw, 48px); }
.wkp-in h2 { font-size: clamp(2rem, 1.2rem + 2.4vw, 3.2rem); line-height: 1; margin: 10px 0 12px; }
.wkp-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(24px, 4vw, 48px); margin-top: clamp(28px, 4vw, 44px); }
.wkp-grid h3 { font-size: 1.15rem; margin: 0 0 12px; }
.wkp-grid h3:not(:first-child) { margin-top: 30px; }
.wkp-grid p { color: #3d404b; line-height: 1.7; margin: 0 0 14px; }
.wkp-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.wkp-grid li { position: relative; padding-left: 24px; color: #3d404b; line-height: 1.55; }
.wkp-grid li::before { content: ""; position: absolute; left: 2px; top: .6em; width: 9px; height: 9px; border-radius: 50%; background: var(--blue); }
.wkp-facts { border: 1px solid var(--line); border-radius: 20px; padding: 22px; align-self: start; position: sticky; top: 90px; }
.wkp-facts dl { margin: 0 0 18px; display: grid; gap: 12px; }
.wkp-facts dt { font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.wkp-facts dd { margin: 2px 0 0; font-weight: 600; }
.wkp-facts .btn { width: 100%; justify-content: center; text-align: center; }
.wkp-facts .btn + .btn { margin-top: 10px; }
.wkp-nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 26px 0 6px; }
.wkp-nums div { background: var(--mist); border-radius: 16px; padding: 16px; }
.wkp-nums b { display: block; font-family: var(--display); font-size: clamp(1.6rem, 1.2rem + 1vw, 2.2rem); line-height: 1; color: var(--blue-deep); }
.wkp-nums span { display: block; font-size: .82rem; color: var(--muted); margin-top: 6px; }
.wkp-note { font-size: .8rem; color: var(--muted); }
.wkp-review { margin-top: 30px; background: var(--blue); color: #fff; border-radius: 22px; padding: clamp(22px, 3vw, 34px); display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 18px; }
.wkp-review img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255,255,255,.55); }
.wkp-review blockquote { margin: 0; font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); line-height: 1.45; font-weight: 500; }
.wkp-grid .wkp-review blockquote p { color: #fff; margin: 0; }
.wkp-grid .wkp-review blockquote p + p { margin-top: 10px; }
.wkp-review figcaption { margin-top: 14px; font-size: .9rem; color: rgba(255,255,255,.88); }
.wkp-review figure { margin: 0; }
.wkp-pages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.wkp-pages button { padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; cursor: zoom-in; font: inherit; text-align: left; transition: transform .2s; }
.wkp-pages button:hover { transform: translateY(-3px); }
.wkp-pages img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; display: block; }
.wkp-pages span { display: block; padding: 6px 10px; font-size: .78rem; font-weight: 600; }
body.wkp-lock { overflow: hidden; }
@media (max-width: 860px) {
  .wkp-sheet { width: 100%; transform: translate3d(0, 40px, 0); }
  .wkp-grid { grid-template-columns: 1fr; }
  .wkp-facts { position: static; order: -1; }
  .wkp-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wkp-pages { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wkp-review { grid-template-columns: 1fr; }
}

/* ===== Case study article ===== */
.cs-hero { padding-block: clamp(28px, 4vw, 48px) clamp(28px, 4vw, 44px); }
.cs-hero h1 { font-size: clamp(2.2rem, 1.2rem + 3.4vw, 4rem); line-height: 1; margin: 14px 0 18px; max-width: 20ch; }
.cs-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; color: var(--muted); font-size: .95rem; }
.cs-meta .by { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; }
.cs-meta .by i { width: 32px; height: 32px; border-radius: 50%; background: var(--blue); display: grid; place-items: center; }
.cs-meta .by svg { width: 62%; }
.cs-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.cs-tags span { font-size: .8rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--mist); color: var(--blue-deep); }

/* compare studio */
.cmp-wrap { margin-top: clamp(20px, 3vw, 32px); }
.cmp-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.cmp-seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--mist); }
.cmp-seg button { border: 0; background: none; font: inherit; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 10px 18px; border-radius: 999px; cursor: pointer; color: var(--muted); transition: background .2s, color .2s; }
.cmp-seg button.on { background: var(--blue); color: #fff; box-shadow: 0 6px 16px -8px rgba(52,89,255,.8); }
.cmp-hint { font-size: .88rem; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.cmp-hint svg { width: 18px; height: 18px; }
.cmp { --pos: 50; position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: #ddd; box-shadow: 0 18px 40px -28px rgba(20, 30, 90, .45); cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; outline: none; contain: layout paint; isolation: isolate; }
.cmp.drag { cursor: grabbing; }
.cmp:focus-visible { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--blue); }
.cmp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; pointer-events: none; -webkit-user-drag: none; }
.cmp-after { position: absolute; inset: 0; overflow: hidden; transform: translate3d(calc(var(--pos) * 1%), 0, 0); will-change: transform; }
.cmp-after img { transform: translate3d(calc(var(--pos) * -1%), 0, 0); will-change: transform; }
.cmp-handle { position: absolute; inset: 0; pointer-events: none; transform: translate3d(calc(var(--pos) * 1%), 0, 0); will-change: transform; }
.cmp.anim .cmp-after, .cmp.anim .cmp-after img, .cmp.anim .cmp-handle { transition: transform .6s cubic-bezier(.6,.05,.25,1); }
.cmp-line { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.cmp-knob { position: absolute; top: 50%; left: 0; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 5px rgba(255,255,255,.6); transition: transform .2s ease; }
.cmp.drag .cmp-knob { transform: scale(1.1); }
.cmp-knob svg { width: 24px; height: 24px; }
.cmp-tag { position: absolute; top: 16px; font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; padding: 7px 12px; border-radius: 999px; pointer-events: none; transition: opacity .25s; z-index: 2; }
.cmp-tag.b { left: 16px; background: rgba(41,41,41,.85); color: #fff; }
.cmp-tag.a { right: 16px; background: var(--blue); color: #fff; }
.cmp-cap { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 14px; font-size: .9rem; color: var(--muted); }
.cmp-cap b { color: var(--ink); display: block; }
.cmp-cap div:last-child { text-align: right; }

/* article body */
.cs-body { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(32px, 6vw, 80px); padding-block: clamp(48px, 6vw, 80px); }
.cs-prose { max-width: 70ch; font-size: 1.08rem; line-height: 1.75; }
.cs-prose h2 { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem); line-height: 1.1; margin: 52px 0 16px; }
.cs-prose h2:first-child { margin-top: 0; }
.cs-prose p { margin: 0 0 18px; color: #3d404b; }
.cs-prose ul { margin: 0 0 18px; padding-left: 0; list-style: none; display: grid; gap: 10px; }
.cs-prose li { position: relative; padding-left: 26px; color: #3d404b; }
.cs-prose li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); }
.cs-prose a { color: var(--blue-deep); font-weight: 600; }
.cs-aside { position: sticky; top: 100px; align-self: start; display: grid; gap: 16px; }
.cs-card { border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.cs-card h3 { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; font-family: var(--body); }
.cs-card dl { margin: 0; display: grid; gap: 10px; font-size: .94rem; }
.cs-card dt { font-size: .78rem; color: var(--muted); }
.cs-card dd { margin: 0; font-weight: 600; }
.cs-card .btn { width: 100%; justify-content: center; text-align: center; margin-top: 4px; }
.cs-toc a { display: block; padding: 6px 0; color: var(--muted); text-decoration: none; font-size: .94rem; border-left: 2px solid transparent; padding-left: 12px; margin-left: -14px; transition: color .2s, border-color .2s; }
.cs-toc a.on { color: var(--ink); border-color: var(--blue); font-weight: 600; }

/* live previews */
.cs-live { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: clamp(20px, 3vw, 36px); align-items: end; margin: 26px 0 8px; }
.cs-browser { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: 0 30px 60px -36px rgba(20,30,90,.45); }
.cs-browser .bar { height: 34px; background: #f1f2f6; display: flex; align-items: center; gap: 7px; padding: 0 12px; }
.cs-browser .bar i { width: 10px; height: 10px; border-radius: 50%; background: #d6d8e0; }
.cs-browser .bar span { margin-left: 10px; font-size: .78rem; color: #6b6f80; background: #fff; border-radius: 6px; padding: 3px 12px; }
.cs-scroll { position: relative; height: clamp(300px, 34vw, 430px); overflow: hidden; }
.cs-scroll img { width: 100%; height: auto; display: block; transform: translateY(0); transition: transform 7s cubic-bezier(.45,.05,.4,1); }
.cs-browser:hover .cs-scroll img, .cs-browser.play .cs-scroll img { transform: translateY(calc(-100% + clamp(300px, 34vw, 430px))); }
.cs-scroll .hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); background: rgba(41,41,41,.82); color: #fff; font-size: .78rem; font-weight: 600; padding: 7px 14px; border-radius: 999px; transition: opacity .3s; pointer-events: none; }
.cs-browser:hover .hint, .cs-browser.play .hint { opacity: 0; }
.cs-phone { border: 9px solid var(--ink); border-radius: 36px; overflow: hidden; background: var(--ink); box-shadow: 0 30px 60px -30px rgba(20,30,90,.55); }
.cs-phone .scr { height: 480px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; border-radius: 26px; background: #fff; }
.cs-phone .scr::-webkit-scrollbar { display: none; }
.cs-phone img { width: 100%; height: auto; display: block; }
.cs-livecap { display: grid; grid-template-columns: minmax(0,1fr) 250px; gap: clamp(20px, 3vw, 36px); font-size: .86rem; color: var(--muted); margin-bottom: 18px; }

/* page strip */
.cs-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 46%); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 18px; margin: 20px 0 10px; scrollbar-width: thin; }
.cs-strip button { scroll-snap-align: start; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; padding: 0; background: #fff; cursor: zoom-in; text-align: left; font: inherit; transition: transform .25s ease, box-shadow .25s ease; }
.cs-strip button:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -24px rgba(20,30,90,.45); }
.cs-strip img { width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; object-position: top; display: block; }
.cs-strip span { display: block; padding: 10px 14px; font-size: .88rem; font-weight: 600; }

/* stats */
.cs-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 22px 0 10px; }
.cs-stat { background: var(--mist); border-radius: 16px; padding: 18px; display: grid; grid-template-columns: 64px minmax(0,1fr); gap: 14px; align-items: center; }
.cs-stat svg { width: 64px; height: 64px; }
.cs-stat .ring { transition: stroke-dashoffset 1.4s cubic-bezier(.2,.7,.2,1); }
.cs-stat b { display: block; font-size: 1rem; }
.cs-stat span { display: block; font-size: .84rem; color: var(--muted); line-height: 1.35; }
.cs-note { font-size: .82rem; color: var(--muted); }

/* instagram comment review */
.cs-ig { border: 1px solid var(--line); border-radius: 20px; padding: 20px; background: #fff; margin: 22px 0; box-shadow: 0 24px 48px -36px rgba(20,30,90,.4); }
.cs-ig .c { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; }
.cs-ig .c + .c { margin-top: 18px; padding-top: 18px; border-top: 1px solid #f0f0f3; }
.cs-ig img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.cs-ig .u { font-weight: 700; font-size: .95rem; }
.cs-ig .u em { font-style: normal; font-weight: 500; color: var(--muted); font-size: .82rem; margin-left: 6px; }
.cs-ig p { margin: 4px 0 0; font-size: 1.08rem; line-height: 1.5; color: var(--ink); }
.cs-ig .tag { color: #00376b; font-weight: 600; }
.cs-ig .src { margin-top: 14px; font-size: .8rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.cs-ig .src svg { width: 16px; height: 16px; }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 110; background: rgba(10,12,20,.9); display: grid; place-items: center; padding: 24px; opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; cursor: zoom-out; }
.lb.open { opacity: 1; visibility: visible; }
.lb img { max-width: min(1300px, 100%); max-height: 90vh; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }

.cs-next { border-top: 1px solid var(--line); padding-block: clamp(40px, 6vw, 72px); }
.cs-next-grid { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.cs-next h2 { font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.4rem); line-height: 1.05; }

@media (max-width: 960px) {
  .cs-body { grid-template-columns: 1fr; }
  .cs-aside { position: static; order: -1; grid-template-columns: 1fr; }
  .cs-toc { display: none; }
}
@media (max-width: 720px) {
  .cs-live, .cs-livecap { grid-template-columns: 1fr; }
  .cs-phone { max-width: 260px; margin-inline: auto; }
  .cs-livecap span:last-child { text-align: center; }
  .cs-stats { grid-template-columns: 1fr; }
  .cs-strip { grid-auto-columns: 78%; }
  .cmp { aspect-ratio: 4 / 3.4; }
  .cmp-cap { font-size: .82rem; }
}
@media (prefers-reduced-motion: reduce) {
  .cs-scroll img { transition: none; }
  .cmp.anim .cmp-after, .cmp.anim .cmp-after img, .cmp.anim .cmp-handle { transition: none; }
}
