/* Inner pages (work, about, contact) — built on the home folder sheets */
html body .home.pg > section[data-chap]::before { content: attr(data-chap) !important; }
html body .home.pg > section { padding-bottom: clamp(88px, 10vw, 140px); }
html body .home.pg > section.pg-top { margin-top: 0; padding-top: clamp(120px, 14vw, 180px); padding-bottom: clamp(110px, 12vw, 160px); border-radius: 0; box-shadow: none; z-index: 0; }
.pg .in { width: min(var(--site, 1080px), calc(100% - 2 * var(--gutter, 24px))); margin: 0 auto; color: #fff; }
.pg .top-kicker { font-size: 13px; font-weight: 500; letter-spacing: .02em; color: rgba(255,255,255,.72); margin: 0 0 18px; }
.pg .top-title { font-size: clamp(48px, 7vw, 92px); line-height: 1; letter-spacing: -.03em; font-weight: 500; margin: 0 0 26px; text-wrap: balance; }
.pg .top-lede { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; color: rgba(255,255,255,.86); max-width: 34em; margin: 0; }
.pg .jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; padding: 0; list-style: none; }
.pg .jump a { display: inline-block; padding: 9px 16px; border-radius: 999px; color: #fff; text-decoration: none; font-size: 14px; font-weight: 500; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28); transition: background .2s; }
.pg .jump a:hover { background: rgba(255,255,255,.24); }

/* client overview */
.pg .cl-head { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: end; margin-top: clamp(40px, 6vw, 72px); }
.pg .cl-role { font-size: 14px; color: rgba(255,255,255,.72); margin: 0 0 14px; }
.pg .cl-name { font-size: clamp(44px, 5.6vw, 76px); line-height: 1; letter-spacing: -.03em; font-weight: 500; margin: 0; }
.pg .cl-lede { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; color: rgba(255,255,255,.88); margin: 0; }
.pg .cl-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0; margin: clamp(36px, 5vw, 56px) 0 0; border-top: 1px solid rgba(255,255,255,.3); }
.pg .cl-stats div { padding: 22px 20px 0 0; }
.pg .cl-stats dt { font-size: clamp(30px, 3.2vw, 44px); font-weight: 500; letter-spacing: -.02em; line-height: 1.05; }
.pg .cl-stats dd { margin: 6px 0 0; font-size: 14px; color: rgba(255,255,255,.75); }
.pg .cl-body { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(22px, 3vw, 44px); margin-top: clamp(44px, 6vw, 72px); }
.pg .cl-body h3 { font-size: 13px; font-weight: 600; margin: 0 0 10px; color: rgba(255,255,255,.7); }
.pg .cl-body p { font-size: 16px; line-height: 1.6; margin: 0; color: rgba(255,255,255,.9); }
.pg .cl-sub { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.7); margin: clamp(56px, 7vw, 88px) 0 18px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.3); }

/* pieces */
.pg .pieces { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 232px), 1fr)); gap: 18px; }
.pg .pc { display: flex; flex-direction: column; border-radius: 24px; overflow: hidden; color: #1d1d1f; background: linear-gradient(160deg, #fff0e9, #ffdccb); border: 1px solid rgba(255,255,255,.95); box-shadow: inset 0 1px 0 #fff, 0 34px 60px -38px rgba(40,12,0,.6), 0 4px 12px -4px rgba(40,12,0,.16); }
.pg .pc-media { position: relative; aspect-ratio: 4 / 4.4; margin: 10px 10px 0; border-radius: 16px; overflow: hidden; background: linear-gradient(150deg, var(--a, #2a2a30), var(--b, #121216)); }
.pg .pc-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.pg .pc:hover .pc-media img { transform: scale(1.03); }
.pg .pc-media .pc-art { position: absolute; inset: 0; display: grid; place-items: end start; padding: 22px; color: #fff; font-size: 24px; font-weight: 600; line-height: 1.08; letter-spacing: -.01em; background: radial-gradient(90% 70% at 80% 15%, rgba(255,255,255,.28), transparent 60%); }
.pg .pc-plat { position: absolute; top: 12px; left: 12px; z-index: 2; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #fff; background: rgba(10,10,14,.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.pg .pc-txt { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pg .pc-stat { font-size: 13px; font-weight: 600; color: #b4471a; margin: 0; }
.pg .pc h4 { font-size: 20px; line-height: 1.2; font-weight: 600; letter-spacing: -.01em; margin: 0; }
.pg .pc p.pc-d { font-size: 15px; line-height: 1.5; color: rgba(29,29,31,.74); margin: 0; }
.pg .pc-go { margin-top: auto; padding-top: 12px; font-size: 14px; font-weight: 600; color: #1d1d1f; text-decoration: none; align-self: flex-start; border-bottom: 1px solid rgba(29,29,31,.3); }
.pg .pc-go:hover { border-color: #1d1d1f; }

/* about */
.pg .ab-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(32px, 6vw, 90px); align-items: center; }
.pg .ab-photo { justify-self: center; width: min(360px, 100%); }
.pg .ab-photo img { width: 100%; display: block; filter: drop-shadow(0 34px 40px rgba(10,20,60,.45)); }
.pg .prose { max-width: 40em; }
.pg .prose p { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.6; color: rgba(255,255,255,.9); margin: 0 0 1.1em; }
.pg .sec-title { font-size: clamp(36px, 4.4vw, 58px); line-height: 1.02; letter-spacing: -.025em; font-weight: 500; margin: clamp(40px, 6vw, 72px) 0 clamp(28px, 4vw, 44px); text-wrap: balance; }
.pg .two { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 6vw, 90px); align-items: start; }
.pg .two .sec-title { margin-bottom: 0; }
.pg .two .prose { margin-top: clamp(40px, 6vw, 72px); }
.pg .glass-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.pg .glass-list li { padding: 20px 22px; border-radius: 20px; font-size: 17px; line-height: 1.4; font-weight: 500; color: #1d1d1f; background: linear-gradient(160deg, #fff0e9, #ffdccb); border: 1px solid rgba(255,255,255,.95); box-shadow: 0 26px 46px -32px rgba(40,12,0,.55); }
.pg .glass-list li span { display: block; font-size: 14px; font-weight: 400; color: rgba(29,29,31,.68); margin-top: 6px; }
.pg .cta { text-align: center; }
.pg .cta .sec-title { margin-left: auto; margin-right: auto; max-width: 14em; }
.pg .btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 24px; border-radius: 999px; background: #f6f2ec; color: #111; font-weight: 500; font-size: 16px; text-decoration: none; transition: transform .2s; }
.pg .btn:hover { transform: translateY(-1px); }
.pg .cta-sub { color: rgba(255,255,255,.75); font-size: 17px; margin: -12px 0 30px; }

@media (max-width: 860px) {
  .pg .cl-head, .pg .ab-top, .pg .two { grid-template-columns: 1fr; align-items: start; }
  .pg .cl-body { grid-template-columns: 1fr; }
  .pg .two .prose { margin-top: 0; }
}
.pg-contact > .contact.pg-top { min-height: 100svh; padding-top: clamp(120px, 12vw, 170px) !important; box-sizing: border-box; }
html:has(.home.pg.pg-contact) { background-color: #0a1d86 !important; }

/* ---- single-sheet pages (work list + case pages) ---- */
html body .home.pg > section.pg-one { min-height: 100svh; padding-bottom: clamp(100px, 10vw, 150px); }
html:has(.home.pg.pg-work) { background-color: #1c4aea !important; }
.pg .wcards { list-style: none; margin: clamp(44px, 6vw, 72px) 0 0; padding: 0; display: grid; gap: 20px; }
.pg .wc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .82fr); gap: 28px; align-items: center; padding: clamp(24px, 3vw, 40px); border-radius: 28px; text-decoration: none; color: #1d1d1f; background: linear-gradient(160deg, #fff0e9, #ffdccb); border: 1px solid rgba(255,255,255,.95); box-shadow: inset 0 1px 0 #fff, 0 40px 70px -44px rgba(40,6,20,.7), 0 4px 12px -4px rgba(40,6,20,.18); transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; overflow: hidden; }
.pg .wc:hover { transform: translateY(-3px); box-shadow: inset 0 1px 0 #fff, 0 50px 80px -44px rgba(40,6,20,.75), 0 6px 16px -4px rgba(40,6,20,.2); }
.pg .wc-label { margin: 0 0 10px; font-size: 14px; font-weight: 500; color: rgba(29,29,31,.6); }
.pg .wc-name { margin: 0 0 12px; font-size: clamp(32px, 3.6vw, 48px); line-height: 1.02; letter-spacing: -.025em; font-weight: 600; }
.pg .wc-d { margin: 0 0 20px; font-size: 17px; line-height: 1.5; color: rgba(29,29,31,.76); max-width: 30em; }
.pg .wc-stats { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0 0 24px; font-size: 14px; color: rgba(29,29,31,.66); }
.pg .wc-stats b { color: #1d1d1f; font-weight: 600; font-size: 18px; margin-right: 4px; }
.pg .wc-go { display: inline-flex; gap: 8px; padding: 11px 18px; border-radius: 999px; background: #1d1d1f; color: #fff; font-size: 15px; font-weight: 500; }
.pg .wc-media { position: relative; height: clamp(220px, 24vw, 300px); display: flex; justify-content: center; align-items: center; }
.pg .wc-media img { height: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 18px; border: 4px solid #fff; box-shadow: 0 24px 40px -20px rgba(40,6,20,.55); background: #111; }
.pg .wc-media.n2 img:first-child { transform: rotate(-5deg) translateX(14%); z-index: 1; }
.pg .wc-media.n2 img:last-child { transform: rotate(5deg) translateX(-14%) translateY(10px); z-index: 2; }
.pg .wc:hover .wc-media.n2 img:first-child { transform: rotate(-7deg) translateX(8%); }
.pg .wc:hover .wc-media.n2 img:last-child { transform: rotate(7deg) translateX(-8%) translateY(10px); }
.pg .wc-media img { transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.pg .wc-art { height: 78%; aspect-ratio: 16 / 11; display: grid; place-items: end start; padding: 22px 24px; box-sizing: border-box; color: #fff; background: radial-gradient(120% 90% at 85% 10%, rgba(255,255,255,.28), transparent 55%), linear-gradient(140deg, var(--a), var(--b)); border: 4px solid #fff; border-radius: 6px; box-shadow: 0 24px 40px -20px rgba(40,6,20,.55); transform: rotate(-3deg); }
.pg .wc-art b { font-size: 26px; font-weight: 600; }

/* case page */
.pg .back { display: inline-flex; gap: 8px; color: rgba(255,255,255,.8); text-decoration: none; font-size: 15px; font-weight: 500; }
.pg .back:hover { color: #fff; }
.pg-case .cl-head { margin-top: clamp(28px, 4vw, 48px); }
.pg .pc-v { cursor: pointer; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.pg .pc-v:hover, .pg .pc-v:focus-visible { transform: translateY(-3px); }
.pg .pc-v .pc-media { aspect-ratio: 9 / 13; }
.pg .pc-playbtn { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 58px; height: 58px; border-radius: 50%; background: rgba(255,255,255,.9); box-shadow: 0 10px 26px rgba(0,0,0,.3); z-index: 2; transition: transform .3s; }
.pg .pc-playbtn::after { content: ""; position: absolute; left: 23px; top: 18px; border-left: 17px solid #111; border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.pg .pc-v:hover .pc-playbtn { transform: scale(1.08); }
.pg .pc-go { margin-top: auto; padding-top: 12px; font-size: 14px; font-weight: 600; align-self: flex-start; border-bottom: 1px solid rgba(29,29,31,.3); }
.pg .pc:not(.pc-v) .pc-media { aspect-ratio: 9 / 13; }
.pg .next { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-top: clamp(64px, 8vw, 110px); padding-top: 22px; border-top: 1px solid rgba(255,255,255,.3); color: #fff; text-decoration: none; }
.pg .next span { font-size: 14px; color: rgba(255,255,255,.72); }
.pg .next b { font-size: clamp(28px, 3.4vw, 46px); font-weight: 500; letter-spacing: -.02em; }
.pg .next:hover b { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }

/* about v2 */
.pg-about .ab-top { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.pg-about .ab-photo { width: min(420px, 100%); }
html body.pg-about .ab-photo img, html body .pg-about .ab-photo img { transform: none !important; rotate: none !important; }
.pg .ab-sub { margin: 22px 0 0; font-size: 16px; line-height: 1.55; color: rgba(255,255,255,.75); max-width: 32em; }
.pg .traits { list-style: none; padding: 0; margin: clamp(48px, 6vw, 80px) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid rgba(255,255,255,.35); }
.pg .traits li { padding: 24px 24px 26px 0; border-bottom: 1px solid rgba(255,255,255,.22); }
.pg .traits b { display: block; font-size: clamp(22px, 2.2vw, 28px); font-weight: 500; letter-spacing: -.01em; margin-bottom: 8px; color: #fff; }
.pg .traits span { font-size: 16px; line-height: 1.5; color: rgba(255,255,255,.85); }
.pg .brag { list-style: none; padding: 0; margin: clamp(56px, 7vw, 90px) 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pg .brag li { padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; color: #fff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.3); }
.pg .prose .btn { margin-top: 10px; }
html:has(.home.pg.pg-about) { background-color: #1c4aea !important; }

@media (max-width: 860px) {
  .pg .wc { grid-template-columns: 1fr; }
  .pg .wc-media { order: -1; height: 240px; }
  .pg .traits { grid-template-columns: 1fr; }
}
.pg .pc-media:has(.pc-art) { background: linear-gradient(150deg, #e0702e, #c22a52); }
html body .home.pg .top-lede.ab-lede2 { margin-top: 18px !important; }
