
/*--------------------------------------------------------------
# Project page v2 — case study
--------------------------------------------------------------*/
.dw-ps-hero { position: relative; overflow: hidden; color: #fff; background: #06142b; padding: 170px 0 120px; }
.dw-ps-hero__bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(circle at 85% 20%, rgba(31, 91, 176, .5) 0%, transparent 45%),
    radial-gradient(circle at 0% 100%, rgba(119, 170, 124, .3) 0%, transparent 40%),
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: auto, auto, 56px 56px, 56px 56px;
}
.dw-ps-hero__inner { position: relative; display: grid; grid-template-columns: 1.25fr 1fr; gap: 60px; align-items: center; }
.dw-ps-hero .dw-hero__crumbs { margin-bottom: 22px; }
.dw-ps-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; font-family: var(--DW-font-two); font-weight: 600; margin-bottom: 18px; }
.dw-ps-pill span { width: 8px; height: 8px; border-radius: 50%; background: var(--DW-green); }
.dw-ps-hero h1 { color: #fff; font-family: var(--DW-font-two); font-weight: 700; font-size: clamp(40px, 5.5vw, 76px); line-height: 1.02; letter-spacing: -.03em; margin: 0 0 16px; }
.dw-ps-hero__sub { font-size: 19px; color: rgba(255,255,255,.72); margin: 0 0 26px; }
.dw-ps-meta { display: flex; flex-wrap: wrap; gap: 0; margin: 10px 0 34px; padding: 0; border-top: 1px solid rgba(255,255,255,.12); }
.dw-ps-meta > div { padding: 18px 34px 0 0; margin-right: 34px; border-right: 1px solid rgba(255,255,255,.12); }
.dw-ps-meta > div:last-child { border-right: 0; margin-right: 0; }
.dw-ps-meta dt { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.5); font-weight: 600; margin-bottom: 4px; }
.dw-ps-meta dd { margin: 0; font-family: var(--DW-font-two); font-weight: 600; font-size: 18px; color: #fff; }
.dw-ps-hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }

.dw-ps-hero__visual { position: relative; justify-self: center; width: min(420px, 100%); }
.dw-ps-hero__card { position: relative; z-index: 1; border-radius: 26px; overflow: hidden; aspect-ratio: 4 / 5; box-shadow: 0 40px 90px rgba(0,0,0,.5); transition: transform .25s ease; background: #0b1a33; }
.dw-ps-hero__card img { width: 100%; height: 100%; object-fit: cover; }
.dw-ps-hero__ring { position: absolute; width: 130%; aspect-ratio: 1; left: 50%; top: 50%; transform: translate(-50%, -50%); border-radius: 50%; border: 2px dashed rgba(255,255,255,.14); animation: dw-rot 60s linear infinite; }
.dw-ps-hero__ring::after { content: ""; position: absolute; top: -8px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--DW-green); box-shadow: 0 0 0 6px rgba(119,170,124,.2); }

/* showcase */
.dw-ps-showcase { position: relative; margin-top: -70px; z-index: 2; }
.dw-ps-showcase__frame { margin: 0; border-radius: 24px; overflow: hidden; background: #fff; box-shadow: 0 40px 90px rgba(var(--DW-black-rgb), .18); }
.dw-ps-showcase__frame img { width: 100%; height: auto; display: block; }

/* overview */
.dw-ps-info { position: sticky; top: 110px; padding: 32px; border-radius: 24px; background: var(--DW-light); }
.dw-ps-info ul { list-style: none; margin: 6px 0 24px; padding: 0; }
.dw-ps-info li { display: flex; flex-direction: column; gap: 3px; padding: 14px 0; border-bottom: 1px solid var(--DW-border); }
.dw-ps-info li:last-child { border-bottom: 0; }
.dw-ps-info li span { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--DW-muted); font-weight: 600; }
.dw-ps-info li strong { font-family: var(--DW-font-two); font-weight: 600; font-size: 17px; color: var(--DW-black); line-height: 1.4; }
.dw-ps-info li a { color: var(--DW-base); }
.dw-ps-rich { font-size: 18px; line-height: 1.8; color: var(--DW-gray); }
.dw-ps-rich > *:first-child { margin-top: 0; }
.dw-ps-rich h1, .dw-ps-rich h2 { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.2; font-weight: 700; color: var(--DW-black); margin: 34px 0 16px; }
.dw-ps-rich h3, .dw-ps-rich h4 { font-size: 24px; font-weight: 700; color: var(--DW-black); margin: 34px 0 14px; }
.dw-ps-rich p { margin: 0 0 18px; }
.dw-ps-rich strong { color: var(--DW-black); }
.dw-ps-rich ul, .dw-ps-rich ol { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; }
.dw-ps-rich li { position: relative; padding: 12px 16px 12px 48px; border-radius: 12px; background: var(--DW-light); line-height: 1.5; font-size: 16px; color: var(--DW-black); }
.dw-ps-rich li::before { content: "\f00c"; font-family: "Font Awesome 5 Free"; font-weight: 900; font-size: 10px; position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; background: var(--DW-green); color: #fff; display: flex; align-items: center; justify-content: center; }
.dw-ps-rich a { color: var(--DW-base); text-decoration: underline; }

/* gallery masonry */
.dw-ps-gallery-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 34px; }
.dw-ps-count { font-size: 15px; color: var(--DW-muted); }
.dw-masonry { columns: 3 300px; column-gap: 20px; }
.dw-masonry__item {
  position: relative; display: block; width: 100%; margin: 0 0 20px; padding: 0; border: 0; border-radius: 18px; overflow: hidden; background: #fff;
  break-inside: avoid; cursor: zoom-in; box-shadow: 0 12px 30px rgba(var(--DW-black-rgb), .07); transition: transform .35s ease, box-shadow .35s ease;
}
.dw-masonry__item img { width: 100%; height: auto; display: block; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.dw-masonry__item:hover { transform: translateY(-4px); box-shadow: 0 24px 50px rgba(var(--DW-black-rgb), .14); }
.dw-masonry__item:hover img { transform: scale(1.03); }
.dw-masonry__zoom { position: absolute; right: 14px; top: 14px; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.95); color: var(--DW-base); display: flex; align-items: center; justify-content: center; opacity: 0; transform: scale(.8); transition: all .25s ease; }
.dw-masonry__item:hover .dw-masonry__zoom { opacity: 1; transform: none; }

/* next project */
.dw-ps-next { position: relative; }
.dw-ps-next__link {
  position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 360px; padding: 60px max(30px, calc((100vw - 1200px) / 2 + 15px));
  background: #06142b center / cover no-repeat; color: #fff !important; overflow: hidden; isolation: isolate;
}
.dw-ps-next__link::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(6,20,43,.95) 0%, rgba(6,20,43,.75) 55%, rgba(6,20,43,.4) 100%); transition: background .5s ease; }
.dw-ps-next__link:hover::before { background: linear-gradient(90deg, rgba(24,71,135,.95) 0%, rgba(24,71,135,.7) 55%, rgba(24,71,135,.35) 100%); }
.dw-ps-next__label { font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--DW-green); font-family: var(--DW-font-two); font-weight: 600; margin-bottom: 10px; }
.dw-ps-next__link strong { font-family: var(--DW-font-two); font-weight: 700; font-size: clamp(34px, 5vw, 68px); line-height: 1.05; letter-spacing: -.02em; max-width: 800px; }
.dw-ps-next__arrow { position: absolute; right: max(30px, calc((100vw - 1200px) / 2 + 15px)); top: 50%; width: 90px; height: 90px; margin-top: -45px; border-radius: 50%; background: var(--DW-green); display: flex; align-items: center; justify-content: center; font-size: 26px; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.dw-ps-next__link:hover .dw-ps-next__arrow { transform: translateX(10px) rotate(-45deg); }
.dw-ps-next__prev { position: absolute; left: max(30px, calc((100vw - 1200px) / 2 + 15px)); bottom: 24px; font-size: 14px; color: rgba(255,255,255,.6) !important; z-index: 2; }
.dw-ps-next__prev:hover { color: #fff !important; }

@media (max-width: 991px) {
  .dw-ps-hero { padding: 140px 0 100px; }
  .dw-ps-hero__inner { grid-template-columns: 1fr; gap: 50px; }
  .dw-ps-hero__visual { width: min(340px, 80%); }
  .dw-ps-info { position: static; }
}
@media (max-width: 575px) {
  .dw-ps-meta > div { padding-right: 18px; margin-right: 18px; }
  .dw-ps-meta dd { font-size: 16px; }
  .dw-ps-showcase { margin-top: -50px; }
  .dw-ps-next__link { min-height: 260px; padding-right: 120px; }
  .dw-ps-next__arrow { width: 64px; height: 64px; margin-top: -32px; font-size: 20px; }
  .dw-masonry { columns: 1; }
}
@media (max-width: 575px) {
  .dw-ps-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
  .dw-ps-meta > div { border-right: 0; margin-right: 0; padding-right: 0; }
}
