/* second versions: light as in the reference, dark through the board tweak */
.d3 .recent,.d3 .gallery{--paper:#fff;--ink:#14161a;--soft-ink:#4b515a;--faint:#8b919a;--edge:#e2e4e8;--box:#f4f5f7;--chip:#fff;background:var(--paper);color:var(--ink)}
.d3 .recent.dark,.d3 .gallery.dark{--paper:#000;--ink:#fff;--soft-ink:#a8a8a8;--faint:#8d8d8d;--edge:#262626;--box:#161616;--chip:#222}
.d3 .recent{margin-top:120px;padding:110px 0 120px}
.d3 .rw-head h2{max-width:760px}
.d3 .rw-list{display:flex;flex-direction:column;gap:32px;margin-top:56px}
.d3 .rw{display:grid;grid-template-columns:minmax(0,45fr) minmax(0,55fr);min-height:640px;overflow:hidden;border:1px solid var(--edge);border-radius:20px}
.d3 .rw-text{display:flex;flex-direction:column;align-items:flex-start;gap:20px;padding:48px}
.d3 .rw-top{display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:14px;width:100%}
.d3 .rw-logo{color:var(--faint);font-size:20px;font-weight:600;letter-spacing:.02em;text-transform:uppercase}
.d3 .rw-tags,.d3 .g-tags{display:flex;flex-wrap:wrap;gap:6px}
.d3 .rw-tags span{padding:4px 12px;border:1px solid var(--edge);border-radius:8px;color:var(--soft-ink);font-size:14px}
.d3 .rw h3{margin-top:20px;font-size:clamp(34px,3.9vw,56px);line-height:1.05;letter-spacing:-.03em}
.d3 .rw-lead{max-width:30em;font-size:18px;font-weight:500;line-height:1.55}
.d3 .rw-quote{width:100%;margin-top:auto;padding:22px 24px;border-radius:14px;background:var(--box)}
.d3 .rw-sample{display:inline-block;margin-bottom:12px;padding:2px 11px;border:1px solid var(--faint);border-radius:99px;color:var(--soft-ink);font-size:14px;font-weight:600}
.d3 .rw-quote blockquote{margin:0}
.d3 .rw-quote blockquote p{font-size:18px;font-weight:500;line-height:1.55}
.d3 .rw-quote figcaption{display:flex;align-items:center;gap:14px;margin-top:16px}
.d3 .rw-face{display:flex;flex:none;align-items:center;justify-content:center;width:46px;height:46px;border-radius:50%;background:var(--about);color:#fff;font-size:14px;font-weight:600}
.d3 .rw-quote figcaption strong,.d3 .rw-quote figcaption>span>span{display:block}
.d3 .rw-quote figcaption>span>span{color:var(--soft-ink);font-size:14px}
.d3 .rw-more,.d3 .g-more{display:inline-flex;align-items:center;gap:10px;padding-bottom:3px;border-bottom:1px solid var(--faint);font-size:16px;font-weight:600}
.d3 .rw-more .ico,.d3 .g-more .ico{transition:transform .35s var(--ease)}
.d3 .rw-more:hover .ico,.d3 .g-card:hover .g-more .ico{transform:translateX(5px)}
.d3 .rw-media{position:relative;display:block;min-height:360px;overflow:hidden}
.d3 .rw-media img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .8s var(--ease)}
.d3 .rw:hover .rw-media img{transform:scale(1.045)}
.d3 .recent .more .pill.main{background:var(--ink);color:var(--paper)}
.d3 .gallery{margin-top:48px;padding:40px 0 140px}
.d3 .g-tools{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;margin-bottom:28px}
.d3 .g-filters{display:flex;flex-wrap:wrap;gap:8px}
.d3 .g-filters button{font-weight:600!important;display:inline-flex;align-items:center;gap:10px;min-height:44px;padding:9px 18px;border:1px solid var(--edge);border-radius:99px;background:var(--box);color:var(--ink);font:inherit;font-size:15px;cursor:pointer;transition:background-color .3s,color .3s}
.d3 .g-filters button span{color:var(--faint);font-size:14px}
.d3 .g-filters button[aria-pressed="true"]{border-color:var(--ink);background:var(--ink);color:var(--paper)}
.d3 .g-filters button[aria-pressed="true"] span{color:var(--paper);opacity:.7}
.d3 .g-search{display:flex;align-items:center;gap:10px;min-height:44px;padding:0 18px;border:1px solid var(--edge);border-radius:99px}
.d3 .g-search:focus-within{border-color:var(--ink)}
.d3 .g-search input{width:210px;border:0;background:none;color:var(--ink);font:inherit;font-size:15px;outline:0}
.d3 .g-search input::placeholder{color:var(--faint)}
.d3 .g-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.d3 .g-grid li[hidden]{display:none}
.d3 .g-card{position:relative;display:flex;flex-direction:column;height:100%;padding:8px;border-radius:18px;background:var(--box)}
.d3 .g-card:focus-within{outline:2px solid var(--dot);outline-offset:2px}
.d3 .g-cover{overflow:hidden;border-radius:12px;aspect-ratio:4/3}
.d3 .g-cover img{width:100%;height:100%;object-fit:cover;transition:transform .8s var(--ease)}
.d3 .g-card:hover .g-cover img{transform:scale(1.045)}
.d3 .g-body{display:flex;flex:1;flex-direction:column;align-items:flex-start;gap:16px;padding:18px 14px 14px}
.d3 .g-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;width:100%;padding-bottom:16px;border-bottom:1px solid var(--edge)}
.d3 .g-head h2{font-size:22px;letter-spacing:-.015em}
.d3 .g-head h2 a::after{content:"";position:absolute;inset:0}
.d3 .g-tags span{padding:4px 12px;border-radius:99px;background:var(--chip);color:var(--soft-ink);font-size:14px}
.d3 .g-body p{color:var(--soft-ink);font-size:16px}
.d3 .g-more{margin-top:auto}
.d3 .g-next a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;height:100%;min-height:320px;padding:32px;border:2px dashed var(--edge);border-radius:18px;text-align:center;transition:border-color .3s,background-color .3s}
.d3 .g-next a:hover{border-color:var(--dot);background:var(--box)}
.d3 .g-plus{display:flex;align-items:center;justify-content:center;width:64px;height:64px;border-radius:50%;background:var(--dot);color:#04140c;font-size:24px}
.d3 .g-next.whole{grid-column:1/-1}
.d3 .g-next strong{font-size:32px;font-weight:var(--hw);letter-spacing:-.025em}
.d3 .g-next a>span:last-child{color:var(--soft-ink);font-size:17px}
.d3 .g-none{margin-top:24px;color:var(--soft-ink);font-size:17px}
@media (max-width:1080px){
  .d3 .rw{grid-template-columns:minmax(0,1fr);min-height:0}
  .d3 .rw-media{order:-1;min-height:0;aspect-ratio:4/3}
}
@media (max-width:700px){
  .d3 .recent{margin-top:80px;padding:72px 0 80px}
  .d3 .rw-text{padding:24px}
  .d3 .rw h3{margin-top:6px;font-size:32px}
  .d3 .rw-lead,.d3 .rw-quote blockquote p{font-size:16px}
  .d3 .rw-quote{padding:18px}
  .d3 .gallery{margin-top:24px;padding-bottom:96px}
  .d3 .g-grid{grid-template-columns:minmax(0,1fr)}
  .d3 .g-search{width:100%}.d3 .g-search input{flex:1;width:auto}
}

.d3 .rw-pin{margin-top:56px}
.d3 .rw-pin .rw-list{margin-top:0}
.d3 .rw-dots{display:none}
.d3 .rw-pin.pinned .rw-stage{position:sticky}
.d3 .rw-pin.pinned .rw-list{flex-direction:row;align-items:stretch;gap:32px;width:max-content;transform-origin:0 0}
.d3 .rw-pin.pinned .rw{flex:none;min-height:580px;background:var(--paper);transition:opacity .4s}
.d3 .rw-pin.pinned .rw.is-away{opacity:.45}
.d3 .rw-pin.pinned .rw-text{gap:16px;padding:40px}
.d3 .rw-pin.pinned .rw h3{margin-top:8px}
.d3 .rw-pin.pinned .rw-dots{display:flex;justify-content:center;gap:10px;height:44px;align-items:center}
.d3 .rw-dots button{width:10px;height:10px;padding:0;border:0;border-radius:99px;background:var(--edge);cursor:pointer;transition:width .35s var(--ease),background-color .35s}
.d3 .rw-dots button::after{content:"";position:absolute;width:30px;height:30px;transform:translate(-50%,-50%)}
.d3 .rw-dots button{position:relative}
.d3 .rw-dots button::after{left:50%;top:50%}
.d3 .rw-dots button[aria-current="true"]{width:34px;background:var(--ink)}
@media (max-width:1080px){.d3 .rw-pin.pinned .rw{min-height:0}.d3 .rw-pin.pinned .rw-media{aspect-ratio:2/1}}
@media (max-width:700px){
  .d3 .rw-pin{margin-top:32px}
  .d3 .rw-pin.pinned .rw-media{aspect-ratio:16/9}
  .d3 .rw-pin.pinned .rw-text{gap:10px;padding:18px}
  .d3 .rw-pin.pinned .rw-logo{font-size:16px}
  .d3 .rw-pin.pinned .rw-top{gap:8px}
  .d3 .rw-pin.pinned .rw h3{margin-top:0;font-size:25px}
  .d3 .rw-pin.pinned .rw-lead,.d3 .rw-pin.pinned .rw-quote blockquote p{font-size:15px;line-height:1.45}
  .d3 .rw-pin.pinned .rw-quote{padding:14px}
  .d3 .rw-pin.pinned .rw-quote figcaption{margin-top:10px}
  .d3 .rw-pin.pinned .rw-face{width:38px;height:38px}
}

/* black copies: no separate block any more, the section keeps the rhythm of the rest of the site */
.d3 .recent.dark{margin-top:0;padding:150px 0 0}
.d3 .gallery.dark{margin-top:8px;padding-top:40px}
.d3 .recent.dark .rw-dots button:not([aria-current="true"]){background:#5c5c5c}
@media (max-width:700px){.d3 .recent.dark{padding:96px 0 0}.d3 .gallery.dark{margin-top:0;padding-top:24px}}

.d3 .rw-lead,.d3 .rw-quote blockquote p{font-weight:400}

/* real client marks, and review cards that open their case study */
.d3 .faces li img{display:block;width:100%;height:100%;object-fit:cover}
.d3 .marks{margin-top:44px;overflow:hidden;-webkit-mask-image:linear-gradient(90deg,transparent,#000 10%,#000 90%,transparent);mask-image:linear-gradient(90deg,transparent,#000 10%,#000 90%,transparent)}
.d3 .marks .group{align-items:center;gap:72px;padding-right:72px}
.d3 .marks .mark{display:flex;flex:none;align-items:center;height:64px;opacity:.72;transition:opacity .3s}
.d3 .marks .mark:hover{opacity:1}
.d3 .marks .mark img{display:block;width:auto;height:100%;max-width:190px;object-fit:contain}
.d3 .rev-sub{margin-top:72px!important;font-size:clamp(24px,2.4vw,32px);font-weight:500;letter-spacing:-.03em;text-align:center}
.d3 .rev-sub+.rev-view{margin-top:32px}
.d3 a.rev-project{transition:background-color .35s}
.d3 a.rev-project:hover{background:#1f1f1f}
.d3 a.rev-project:hover .rev-btn{background:var(--pill-bg);color:var(--pill-fg)}
.d3 .rev-thumb{overflow:hidden}
.d3 .rev-thumb img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .6s var(--ease)}
.d3 a.rev-project:hover .rev-thumb img{transform:scale(1.08)}
@media (max-width:700px){.d3 .marks .group{gap:44px;padding-right:44px}.d3 .marks .mark{height:48px}.d3 .marks .mark img{max-width:140px}}
