/* Portfolio page, on top of styles.css. Video cards take their atmosphere from each brand's own colour. */
.center-head { max-width: 860px; margin: 0 auto clamp(44px, 5vw, 70px); text-align: center; }
.center-head .kicker { justify-content: center; }
.center-head .lead { margin: 20px auto 0; }

/* hero */
.pf-hero { position: relative; min-height: 78svh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.pf-hero .hero-bg img { width: 100%; opacity: .55; mask-image: linear-gradient(180deg, #000 40%, transparent); -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent); }
.pf-hero-in { position: relative; z-index: 3; padding-top: 150px; padding-bottom: 80px; }
.pf-h1 { margin: 0; font-weight: 300; font-size: clamp(52px, 8.4vw, 128px); line-height: .95; letter-spacing: -.045em; }
.pf-count { display: flex; flex-wrap: wrap; gap: 48px; margin-top: 46px; padding-top: 28px; border-top: 1px solid var(--hair); }
.pf-count div { display: grid; gap: 4px; }
.pf-count b { font-weight: 300; font-size: 46px; line-height: 1; color: var(--blue-2); }
.pf-count span { font-size: 14px; color: var(--dim); }

/* client work */
.cw { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.cw-card { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 26px 20px 24px; border-radius: 20px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); transition: transform .5s var(--ease); }
.cw-card:hover { transform: translateY(-6px); }
.cw-card.w1 { background: radial-gradient(90% 60% at 80% 10%, rgba(56, 189, 248, .5), transparent 60%), linear-gradient(160deg, #0B3A7A, #071530); }
.cw-card.w2 { background: radial-gradient(90% 60% at 80% 10%, rgba(45, 212, 191, .45), transparent 60%), linear-gradient(160deg, #0A4C6A, #061A2C); }
.cw-card.w3 { background: radial-gradient(90% 60% at 80% 10%, rgba(244, 63, 94, .45), transparent 60%), linear-gradient(160deg, #4A0E1E, #14060B); }
.cw-card.w4 { background: radial-gradient(90% 60% at 80% 10%, rgba(190, 242, 100, .4), transparent 60%), linear-gradient(160deg, #1534D8, #081260); }
.cw-card.w5 { background: radial-gradient(90% 60% at 80% 10%, rgba(52, 211, 153, .45), transparent 60%), linear-gradient(160deg, #08493A, #031A15); }
.cw-n { font-weight: 200; font-size: 64px; line-height: .9; background: linear-gradient(180deg, #fff, rgba(255, 255, 255, .15)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cw-logo { display: grid; place-items: center; width: 100%; height: 86px; margin: 18px 0 20px; border-radius: 14px; background: rgba(255, 255, 255, .08); }
.cw-logo img { max-height: 30px; max-width: 78%; width: auto; }
.cw-logo img.sq { max-height: 54px; border-radius: 12px; }
.cw-card b { font-weight: 300; font-size: 34px; line-height: 1; }
.cw-card small { margin-top: 6px; font-size: 13px; color: rgba(255, 255, 255, .75); }
.cw-card p { margin: 16px 0 18px; font-size: 15px; line-height: 1.4; color: rgba(255, 255, 255, .85); }
.cw-card em { margin-top: auto; font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }

/* filters: text tabs with an underline, no pills */
.filters { display: grid; gap: 14px; margin-bottom: 40px; justify-items: center; }
.frow { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 6px 20px; }
.flabel { font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); }
.ftabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; }
.ftabs button { position: relative; padding: 6px 0; border: 0; background: none; cursor: pointer; font: 500 15px Figtree, sans-serif; color: var(--dim); transition: color .25s; }
.ftabs button::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--blue-2); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.ftabs button:hover { color: #fff; }
.ftabs button[aria-pressed="true"] { color: #fff; }
.ftabs button[aria-pressed="true"]::after { transform: scaleX(1); }
.ftabs sup { font-size: 10px; margin-left: 3px; color: var(--faint); }

/* video cards */
.vgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.vcard2 { --c: #008FD7; --c2: #38BDF8; position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 26px 18px 22px; border: 0; border-radius: 20px; cursor: pointer; color: #fff; text-align: center; font: inherit; overflow: hidden; isolation: isolate;
  background: radial-gradient(85% 55% at 50% 30%, color-mix(in srgb, var(--c) 55%, transparent), transparent 72%), linear-gradient(180deg, color-mix(in srgb, var(--c) 22%, #061226), #050c19);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c2) 22%, transparent); transition: transform .5s var(--ease), box-shadow .4s; }
.vcard2::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--c2), transparent); }
.vcard2:hover { transform: translateY(-6px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c2) 55%, transparent), 0 30px 60px -30px color-mix(in srgb, var(--c) 80%, transparent); }
.vcard2:focus-visible { outline: 2px solid var(--c2); outline-offset: 3px; }
.vcard2 .vc-phone { width: min(190px, 82%); }
.vcard2 .vc-phone img { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 13.5% / 6.2%; background: #000; }
.vcard2 .vc-phone video { aspect-ratio: 9 / 16 !important; }
.vplay { position: absolute; left: 50%; top: 42%; z-index: 3; width: 56px; height: 56px; transform: translate(-50%, -50%) scale(.9); display: grid; place-items: center; border-radius: 50%; background: rgba(6, 18, 38, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; transition: opacity .3s, transform .4s var(--ease); }
.vplay::before { content: ""; margin-left: 4px; border-left: 15px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.vcard2:hover .vplay, .vcard2:focus-visible .vplay { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.vcard2 b { font-size: 17px; font-weight: 600; line-height: 1.2; }
.vmeta { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: color-mix(in srgb, var(--c2) 75%, #fff); }
.vtag { font-size: 11px; color: var(--faint); letter-spacing: .04em; }
.vempty { text-align: center; color: var(--dim); }

/* design */
.dgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 980px; margin: 0 auto; }
.dgrid img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; box-shadow: 0 30px 60px -34px rgba(0, 0, 0, .9); transition: transform .5s var(--ease); }
.dgrid img:hover { transform: translateY(-6px) rotate(-1deg); }

.pf-end .end-in { text-align: center; display: grid; justify-items: center; }
.pf-end .kicker { justify-content: center; }
.pf-end .hero-cta { justify-content: center; }

/* player */
.vdlg { width: min(880px, calc(100vw - 28px)); max-height: calc(100svh - 32px); padding: 0; border: 0; border-radius: 26px; background: transparent; color: #fff; overflow: visible; }
.vdlg::backdrop { background: rgba(3, 9, 20, .7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.vdlg[open] { animation: vIn .4s var(--ease); }
@keyframes vIn { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.vd-in { --c: #008FD7; --c2: #38BDF8; position: relative; display: grid; grid-template-columns: auto 1fr; gap: 34px; align-items: center; max-height: calc(100svh - 32px); overflow-y: auto; padding: 30px 36px; border-radius: 26px;
  background: radial-gradient(70% 70% at 15% 30%, color-mix(in srgb, var(--c) 40%, transparent), transparent 70%), linear-gradient(180deg, #0E2142, #081530); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 50px 120px -30px rgba(0, 0, 0, .9); }
.sd-x { position: absolute; top: 16px; right: 16px; z-index: 4; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; font-size: 24px; line-height: 1; color: #fff; background: rgba(255, 255, 255, .1); }
.sd-x:hover { background: rgba(255, 255, 255, .2); }
.vd-phone .vc-phone { width: min(300px, 40vh); }
.vd-phone video { aspect-ratio: 9 / 16 !important; }
.vd-meta { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--c2); }
.vd-info h3 { margin: 0 0 14px; font-weight: 300; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.05; letter-spacing: -.02em; }
.vd-note { margin: 0 0 26px; color: var(--dim); }
.vd-nav { display: flex; gap: 22px; margin-bottom: 22px; }
.vd-nav button { border: 0; background: none; cursor: pointer; padding: 6px 0; font: 600 14px Figtree, sans-serif; color: var(--dim); }
.vd-nav button:hover { color: #fff; }

@media (max-width: 1080px) {
  .cw { grid-template-columns: repeat(3, 1fr); }
  .vgrid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .cw { grid-template-columns: 1fr 1fr; }
  .vgrid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .vcard2 { padding: 18px 10px 16px; gap: 12px; }
  .vcard2 b { font-size: 15px; }
  .dgrid { grid-template-columns: 1fr 1fr; }
  .pf-count { gap: 28px; }
  .vd-in { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 56px 18px 24px; gap: 18px; }
  .vd-phone .vc-phone { width: min(240px, 62vw); }
  .vd-nav { justify-content: center; }
}
/* centre an incomplete last row */
.vgrid { display: flex; flex-wrap: wrap; justify-content: center; }
.vgrid .vcard2 { flex: 0 0 calc(25% - 12px); }
@media (max-width: 1080px) { .vgrid .vcard2 { flex-basis: calc(33.333% - 11px); } }
@media (max-width: 760px) { .vgrid .vcard2 { flex-basis: calc(50% - 5px); } }
/* Content Studio header mark (same as the landing page) */
.cs-brand { display: flex; align-items: center; gap: 10px; flex: none; }
.cs-brand img { border-radius: 10px; }
.cs-brand span { display: grid; line-height: 1.1; }
.cs-brand b { font-size: 17px; font-weight: 700; }
.cs-brand small { font-size: 12px; color: var(--faint); }
.pf-hero { min-height: 64svh; }

h1, h2, h3, p { text-wrap: balance; }
.h2 em { display: block; }
