/* Projects page — builds on blog.css tokens / header / footer */
:root { --dnav-h: 58px; }
.lb { display: block; color: inherit; text-decoration: none; }
.lb img { display: block; width: 100%; height: auto; }
.hidden-lb { display: none !important; }

/* ---------------- hero ---------------- */
.pj-hero { position: relative; overflow: hidden; background: var(--ink); color: var(--white); min-height: calc(100vh - var(--head-h)); min-height: calc(100svh - var(--head-h)); display: flex; align-items: center; padding-block: clamp(40px, 6vw, 80px); isolation: isolate; }
.pj-hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to left, var(--ink) 38%, color-mix(in srgb, var(--ink) 55%, transparent) 62%, transparent 85%); pointer-events: none; }
.pj-hero .wrap { z-index: 2; width: 100%; }
.cols { position: absolute; z-index: 0; top: -20%; bottom: -20%; inset-inline-end: -4%; width: 58%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; transform: rotate(-9deg); }
.col { display: flex; flex-direction: column; animation: colUp 70s linear infinite; will-change: transform; }
.col img { width: 100%; height: auto; border-radius: 18px; margin-bottom: 16px; display: block; }
.col.c2 { animation-direction: reverse; animation-duration: 84s; margin-top: -30%; }
.col.c3 { animation-duration: 62s; margin-top: -12%; }
@keyframes colUp { to { transform: translateY(-50%); } }
.hero-txt { max-width: 640px; }
.pj-hero .crumbs a, .pj-hero .crumbs span { color: var(--white); }
.pj-hero .eyebrow { font-size: 15.5px; font-weight: 500; display: inline-flex; gap: 10px; align-items: center; margin-bottom: 18px; }
.pj-hero .eyebrow i { width: 9px; height: 9px; border-radius: 50%; background: var(--mint); }
.pj-hero h1 { font-size: clamp(50px, 7.2vw, 116px); font-weight: 900; line-height: .98; }
.pj-hero h1 .hl { color: var(--coral); }
.pj-hero h1 .w { display: inline-block; }
.pj-hero .lead { font-size: clamp(17px, 1.45vw, 21px); line-height: 1.65; margin-top: 24px; max-width: 46ch; color: color-mix(in srgb, var(--white) 82%, var(--ink)); }
.dcards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: clamp(32px, 5vw, 64px); max-width: 820px; }
.dcard { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: 22px; background: color-mix(in srgb, var(--ink-3) 88%, transparent); backdrop-filter: blur(8px); color: var(--white); text-decoration: none; overflow: hidden; transition: background-color .35s, color .35s, transform .35s cubic-bezier(.2,.7,.2,1); }
.dcard svg { width: 34px; height: 34px; margin-bottom: 12px; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.dcard .n { font: 700 13px var(--f-en); letter-spacing: .14em; opacity: .6; }
.dcard b { font: 700 19px/1.15 var(--f-head); }
.dcard .c { font-size: 13.5px; opacity: .7; }
.dcard:hover, .dcard:focus-visible { background: var(--c); color: var(--ink); transform: translateY(-4px); }
.dcard:hover svg { transform: scale(1.25) rotate(-12deg); fill: var(--ink); }

/* ---------------- domain nav ---------------- */
.dnav { position: sticky; top: var(--head-h); z-index: 55; height: var(--dnav-h); background: color-mix(in srgb, var(--grey) 92%, transparent); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.dnav-in { height: 100%; display: flex; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.dnav-in::-webkit-scrollbar { display: none; }
.dnav a { flex: none; display: inline-flex; align-items: center; gap: 9px; height: 40px; padding-inline: 16px; border-radius: 20px; text-decoration: none; font-size: 15px; font-weight: 500; transition: background-color .35s, color .35s; }
.dnav a i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1.5px var(--ink); transition: transform .35s; }
.dnav a:hover i { transform: scale(1.3); }
.dnav a.drip i { transform: scale(1.9); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 45%, transparent); }
.dnav a.on { background: var(--c); }
.dnav a.on i { background: var(--ink); box-shadow: none; }

/* ---------------- chapter door (logo-shape transition) ---------------- */
.chap { position: relative; background: var(--c); overflow-x: clip; }
.door { position: relative; height: calc(100vh - var(--head-h) - var(--dnav-h)); height: calc(100svh - var(--head-h) - var(--dnav-h)); min-height: 460px; overflow: visible; background: var(--prev); z-index: 2; }
.door-hint { position: absolute; inset: 0; display: grid; place-items: center; }
.door-hint span { font: 800 clamp(16px, 1.4vw, 20px) var(--f-en); letter-spacing: .2em; opacity: .45; transform: translateY(clamp(70px, 12vh, 110px)); }
.door-fill { position: absolute; inset: 0; background: var(--c); display: grid; place-items: center; text-align: center; color: var(--fg); }
.door-in { position: relative; z-index: 2; padding-inline: var(--gut); display: flex; flex-direction: column; align-items: center; }
.door-num { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -58%); font: 800 clamp(140px, 28vw, 420px)/.8 var(--f-en); color: transparent; -webkit-text-stroke: 2px color-mix(in srgb, var(--fg) 35%, transparent); z-index: -1; pointer-events: none; letter-spacing: -.04em; }
.door h2 { font-size: clamp(48px, 9vw, 148px); font-weight: 900; line-height: .95; max-width: 12ch; }
.door h2 .w { display: inline-block; }
.door-sub { margin-top: 20px; font-size: clamp(16px, 1.4vw, 20px); max-width: 40ch; line-height: 1.6; }
.door-cnt { margin-top: 22px; display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: var(--white); padding: 9px 18px; border-radius: 99px; font-size: 14.5px; font-weight: 500; }
.door-cnt::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.fly { display: none; }
.flies { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.fx .fly { display: block; position: absolute; z-index: 3; left: 50%; top: 50%; width: calc(clamp(84px, 12vw, 200px) * var(--k, 1)); border-radius: 16px; overflow: hidden; box-shadow: 0 24px 50px rgba(51,51,51,.28); pointer-events: none; }
.fx .fly img { display: block; width: 100%; height: auto; }
.fx .door-fill { clip-path: circle(0px at 50% 50%); }

/* ---------------- worlds ---------------- */
.world { overflow-x: clip; background: var(--c); padding-block: clamp(24px, 3vw, 40px) clamp(64px, 8vw, 120px); }
.blk-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(16px, 4vw, 64px); align-items: end; padding-block: clamp(48px, 6vw, 88px) clamp(24px, 3vw, 40px); }
.blk-h { font-size: clamp(32px, 3.8vw, 56px); font-weight: 900; line-height: 1.04; }
.blk-p { font-size: clamp(16.5px, 1.25vw, 18.5px); line-height: 1.75; max-width: 54ch; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; margin-bottom: 10px; background: var(--ink); color: var(--white); padding: 5px 14px; border-radius: 99px; }

/* logos */
.lwall { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; grid-auto-flow: dense; perspective: 900px; }
.lg { position: relative; aspect-ratio: 1; border-radius: 24px; overflow: hidden; background: var(--bg); transform-style: preserve-3d; transition: transform .5s cubic-bezier(.2,.7,.2,1), box-shadow .5s; }
.lg.wide { grid-column: span 2; aspect-ratio: 2.05; }
.lg img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.lg.contain img { object-fit: contain; padding: 6%; }
.lg .cap { position: absolute; inset-inline-start: 12px; bottom: 12px; background: var(--white); color: var(--ink); font-size: 13.5px; font-weight: 700; padding: 6px 12px; border-radius: 99px; transform: translateY(160%); transition: transform .45s cubic-bezier(.2,.7,.2,1); box-shadow: 0 6px 16px rgba(51,51,51,.15); max-width: calc(100% - 24px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg:hover, .lg:focus-visible { box-shadow: 0 22px 40px rgba(51,51,51,.25); }
.lg:hover img { transform: scale(1.05); }
.lg:hover .cap, .lg:focus-visible .cap { transform: none; }

/* horizontal brand case */
.stage { background: var(--grey); margin-top: clamp(56px, 7vw, 96px); overflow: hidden; }
.hpin { padding-block: clamp(28px, 4vh, 48px); min-height: calc(100vh - var(--head-h) - var(--dnav-h)); min-height: calc(100svh - var(--head-h) - var(--dnav-h)); display: flex; flex-direction: column; justify-content: center; gap: clamp(18px, 3vh, 32px); }
.hhead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(16px, 4vw, 64px); align-items: end; width: 100%; }
.htrack { display: flex; gap: clamp(14px, 2vw, 28px); padding-inline: max(var(--gut), calc((100vw - var(--wrap)) / 2 + var(--gut))); width: max-content; will-change: transform; }
.hs { margin: 0; flex: none; width: min(64vw, calc((100vh - var(--head-h) - var(--dnav-h) - 260px) * 1.777), 900px); }
.hs .lb { border-radius: 22px; overflow: hidden; box-shadow: 0 18px 44px rgba(51,51,51,.16); }
.hs figcaption { display: flex; gap: 10px; align-items: baseline; margin-top: 12px; font-weight: 500; font-size: 15px; }
.hs figcaption b { font: 800 14px var(--f-en); color: var(--green); }
.hprog { height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.hprog span { display: block; height: 100%; background: var(--ink); transform-origin: right; transform: scaleX(0); }

/* bento */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 17vw, 240px); gap: 14px; }
.bt { border-radius: 24px; overflow: hidden; background: var(--ink); }
.bt .lb, .bt img { height: 100%; }
.bt img { object-fit: cover; transform: scale(1.12); }
.bt.b1 { grid-column: span 2; grid-row: span 2; }
.bt.b2, .bt.b5, .bt.b6 { grid-column: span 2; }

/* sticky stack */
.stack { position: relative; padding-bottom: 4vh; }
.scard { position: sticky; top: calc(var(--head-h) + var(--dnav-h) + 24px + var(--i) * 16px); max-width: 1000px; margin: 0 auto 7vh; border-radius: 24px; overflow: hidden; box-shadow: 0 24px 60px rgba(51,51,51,.22); transform-origin: 50% 0; background: var(--white); }
.stack-more { display: flex; justify-content: center; }

/* print */
.pfeat { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(16px, 2.4vw, 32px); align-items: start; }
.pf { margin: 0; }
.pf .lb { border-radius: 26px; overflow: hidden; aspect-ratio: 4/3; box-shadow: 0 20px 44px rgba(51,51,51,.18); }
.pf.t .lb { aspect-ratio: 1; }
.pf img { height: 100%; object-fit: cover; transform: scale(1.18); }
.pf:nth-child(2) { margin-top: clamp(40px, 8vw, 140px); }
.pf:nth-child(3) { margin-top: calc(clamp(40px, 8vw, 140px) * -1); }
.pf figcaption { margin-top: 12px; font-size: 15px; font-weight: 500; display: flex; gap: 8px; align-items: center; }
.pf figcaption::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); }
.rollups { display: flex; justify-content: center; align-items: flex-end; gap: clamp(14px, 4vw, 64px); padding-top: 20px; }
.ru { width: clamp(110px, 17vw, 230px); display: flex; flex-direction: column; align-items: center; }
.ru-sheet { width: 88%; overflow: hidden; border-radius: 4px 4px 0 0; box-shadow: 0 16px 34px rgba(51,51,51,.2); }
.ru-base { width: 100%; height: clamp(12px, 1.6vw, 20px); background: var(--ink); border-radius: 8px; position: relative; }
.ru-base::after { content: ""; position: absolute; inset-inline: 18%; bottom: -10px; height: 10px; border-radius: 0 0 6px 6px; background: var(--ink-3); }
.menus { display: flex; justify-content: center; align-items: center; gap: clamp(10px, 2vw, 28px); }
.mn { margin: 0; flex: none; width: clamp(120px, 13vw, 188px); transform: rotate(var(--r)); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.mn:nth-child(3) { width: clamp(170px, 19vw, 268px); }
.mn .lb { border-radius: 10px; overflow: hidden; box-shadow: 0 18px 38px rgba(51,51,51,.24); }
.mn:hover { transform: rotate(0) scale(1.06); z-index: 2; position: relative; }

/* digital */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.fchip { height: 42px; padding-inline: 16px; border-radius: 21px; border: 0; background: color-mix(in srgb, var(--white) 55%, transparent); color: var(--ink); font: 500 15px var(--f-body); cursor: pointer; transition: background-color .3s, color .3s; }
.fchip sup { font: 700 11px var(--f-en); opacity: .7; }
.fchip:hover { background: var(--white); }
.fchip[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.dgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.dt { margin: 0; position: relative; aspect-ratio: 1; border-radius: 20px; overflow: hidden; background: color-mix(in srgb, var(--ink) 12%, var(--c)); }
.dt[hidden] { display: none; }
.dt .lb, .dt img { height: 100%; }
.dt img { object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.dt:hover img { transform: scale(1.06); }
.dt .tag { position: absolute; top: 12px; inset-inline-start: 12px; background: var(--white); padding: 4px 11px; border-radius: 99px; font-size: 12.5px; font-weight: 700; pointer-events: none; opacity: 0; transform: translateY(-8px); transition: opacity .3s, transform .3s; }
.dt:hover .tag { opacity: 1; transform: none; }
.more-row { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 28px; }
.more-row .shown { font-size: 14.5px; font-weight: 500; }
.sites { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 26px); }
.browser { margin: 0; background: var(--white); border-radius: 16px; overflow: hidden; box-shadow: 0 20px 44px rgba(51,51,51,.2); }
.bbar { height: 34px; display: flex; align-items: center; gap: 6px; padding-inline: 12px; background: #ececec; direction: ltr; }
.bbar i { width: 10px; height: 10px; border-radius: 50%; background: var(--coral); }
.bbar i:nth-child(2) { background: var(--yellow); } .bbar i:nth-child(3) { background: var(--green); }
.bbar span { flex: 1; margin-inline-start: 10px; background: var(--white); border-radius: 6px; height: 20px; font-size: 11.5px; line-height: 20px; padding-inline: 10px; direction: rtl; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }
.bscreen { aspect-ratio: 4/3; overflow: hidden; }
.bscreen img { transition: transform var(--d, 6s) cubic-bezier(.45,.05,.55,.95); }
.browser:hover .bscreen img, .browser.run .bscreen img { transform: translateY(var(--y, 0)); }
.phones { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 22px); margin-top: clamp(28px, 4vw, 48px); }
.phone { background: var(--ink); border-radius: clamp(20px, 2.4vw, 32px); padding: clamp(5px, .6vw, 8px); box-shadow: 0 20px 40px rgba(51,51,51,.22); }
.pscr { aspect-ratio: 9/18.5; overflow: hidden; border-radius: clamp(15px, 1.9vw, 25px); background: var(--white); }
.pscr img { will-change: transform; }
.phone.run .pscr img { animation: phoneScroll var(--d, 9s) cubic-bezier(.45,.05,.55,.95) infinite alternate; }
@keyframes phoneScroll { 0%, 8% { transform: none; } 92%, 100% { transform: translateY(var(--y, 0)); } }

/* thumbnails */
.player { max-width: 1000px; margin-inline: auto; background: var(--ink); border-radius: 26px; padding: clamp(8px, 1vw, 14px); box-shadow: 0 30px 60px rgba(51,51,51,.28); }
.pscreen { position: relative; aspect-ratio: 1400/860; border-radius: 18px; overflow: hidden; background: #000; cursor: zoom-in; }
.pscreen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .7s, transform 3.4s cubic-bezier(.2,.7,.2,1); }
.pscreen img.on { opacity: 1; transform: none; }
.pbig { position: absolute; left: 50%; top: 50%; width: clamp(56px, 7vw, 84px); transform: translate(-50%, -50%) scale(.9); border: 0; background: none; padding: 0; cursor: pointer; opacity: 0; transition: opacity .3s, transform .3s; }
.pbig svg { display: block; width: 100%; }
.pscreen:hover .pbig { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.pctrl { display: flex; align-items: center; gap: 10px; padding: 12px 6px 4px; color: var(--white); }
.pctrl button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--ink-3); color: var(--white); font-size: 22px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.pctrl button:hover { background: var(--mint); color: var(--ink); }
.pplay i { width: 12px; height: 12px; border-inline: 4px solid currentColor; box-sizing: border-box; }
.pplay[aria-pressed="false"] i { border: 0; width: 0; height: 0; border-block: 7px solid transparent; border-right: 11px solid currentColor; margin-right: -3px; }
.pbar { flex: 1; height: 5px; border-radius: 3px; background: var(--ink-3); overflow: hidden; }
.pbar span { display: block; height: 100%; width: 0; background: var(--coral); }
.ptime { font: 600 13px var(--f-en); opacity: .8; min-width: 60px; text-align: center; }
.trows { margin-top: clamp(40px, 6vw, 80px); display: flex; flex-direction: column; gap: 16px; direction: ltr; }
.trow { overflow: hidden; }
.ttrack { display: flex; width: max-content; will-change: transform; }
.tc { flex: none; width: clamp(220px, 26vw, 380px); margin-right: 16px; }
.tc .lb { border-radius: 16px; overflow: hidden; box-shadow: 0 12px 26px rgba(51,51,51,.18); transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.tc .lb:hover { transform: scale(1.04); }

/* katya */
.kwall { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); }
.kp { transform: rotate(var(--r)); margin: 0; background: var(--white); padding: clamp(8px, .9vw, 12px) clamp(8px, .9vw, 12px) clamp(26px, 3vw, 40px); border-radius: 6px; box-shadow: 0 18px 36px rgba(51,51,51,.22); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.kp .lb { border-radius: 3px; overflow: hidden; aspect-ratio: 1; }
.kp img { height: 100%; object-fit: cover; }
.kp:hover { transform: rotate(0deg) scale(1.04) !important; }

/* closing call to action: a BeKa stamp in its own column */
.cta2 { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 4vw, 64px); }
.cta2 .acts { margin-top: 26px; }
.stamp { justify-self: center; width: clamp(220px, 25vw, 340px); aspect-ratio: 1; position: relative; cursor: default; }
.a-cta .stamp svg { position: static; inset: auto; width: 100%; height: 100%; opacity: 1; overflow: visible; display: block; }
.st-bg { fill: var(--ink); }
.st-ring text { direction: ltr; unicode-bidi: bidi-override; font: 700 20px "Fb Pekan", var(--f-body); fill: var(--white); text-anchor: middle; dominant-baseline: central; }
.st-ring, .st-dots { transform-box: view-box; transform-origin: 150px 150px; }
.st-ring { animation: stSpin 26s linear infinite; }
.st-dots { animation: stSpin 12s linear infinite reverse; }
.st-line { fill: none; stroke: var(--coral); stroke-width: 38.72; stroke-linecap: round; stroke-linejoin: round; }
.st-dot { fill: var(--white); transform-box: fill-box; transform-origin: center; animation: stBeat 2.4s cubic-bezier(.2,.7,.2,1) infinite; }
@keyframes stSpin { to { transform: rotate(360deg); } }
@keyframes stBeat { 0%, 60%, 100% { transform: scale(1); } 70% { transform: scale(1.35); } 82% { transform: scale(.9); } }
.stamp:hover .st-ring { animation-duration: 6s; }
.stamp:hover .st-dots { animation-duration: 3s; }

/* lightbox */
.lbox { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(28,28,28,.94); color: var(--white); overflow: hidden; }
.lbox::backdrop { background: transparent; }
.lbox[open] { display: block; }
.lb-stage { position: absolute; inset: 64px clamp(56px, 7vw, 100px) 64px; display: flex; align-items: center; justify-content: center; overflow: auto; overscroll-behavior: contain; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; display: block; }
.lbox.tall .lb-stage { align-items: flex-start; }
.lbox.tall .lb-stage img { max-height: none; width: min(100%, 1100px); max-width: 100%; }
/* phone screenshots: never stretch past their real pixels, show them like a phone screen */
.lbox.narrow .lb-stage img { border-radius: 26px; box-shadow: 0 30px 70px rgba(0,0,0,.45); }
.lb-bar { position: absolute; inset-inline: 0; bottom: 0; height: 64px; display: flex; align-items: center; justify-content: center; gap: 16px; font-size: 15px; font-weight: 500; }
.lb-n { font: 600 13px var(--f-en); opacity: .65; }
.lb-x, .lb-prev, .lb-next { position: absolute; width: 50px; height: 50px; border-radius: 50%; border: 0; background: var(--ink-3); color: var(--white); font-size: 30px; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background-color .25s, color .25s; }
.lb-x:hover, .lb-prev:hover, .lb-next:hover { background: var(--coral); color: var(--ink); }
.lb-x { top: 8px; inset-inline-end: 12px; }
.lb-prev { top: 50%; inset-inline-start: 12px; transform: translateY(-50%); }
.lb-next { top: 50%; inset-inline-end: 12px; transform: translateY(-50%); }

/* ---------------- responsive ---------------- */
@media (max-width: 1080px) {
  .sites { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phones { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  :root { --dnav-h: 54px; }
  .pj-hero { align-items: flex-end; }
  .pj-hero::after { background: linear-gradient(to bottom, color-mix(in srgb, var(--ink) 30%, transparent), color-mix(in srgb, var(--ink) 82%, transparent) 38%, var(--ink) 62%); }
  .cols { width: 130%; inset-inline-end: -15%; top: -10%; bottom: auto; height: 80%; opacity: .9; }
  .dcards { grid-template-columns: repeat(4, 150px); overflow-x: auto; margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); scrollbar-width: none; }
  .dcards::-webkit-scrollbar { display: none; }
  .blk-head, .hhead { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 12px; }
  .lwall { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .lg { border-radius: 18px; }
  .lg .cap { transform: none; font-size: 12px; padding: 4px 10px; inset-inline-start: 8px; bottom: 8px; }
  .hs { width: 82vw; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 38vw; gap: 10px; }
  .bt.b1 { grid-column: span 2; grid-row: span 1; }
  .pfeat { grid-template-columns: minmax(0, 1fr); }
  .pf:nth-child(n) { margin-top: 0; }
  .dgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .dt { border-radius: 16px; }
  .dt .tag { opacity: 1; transform: none; font-size: 11.5px; top: 8px; inset-inline-start: 8px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .fchip { flex: none; }
  .kwall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rollups { gap: 10px; }
  .ru { width: 23%; }
  .menus { gap: 10px; flex-wrap: wrap; }
  .mn { width: 30%; }
  .mn:nth-child(3) { width: 46%; }
  .lb-stage { inset: 60px 8px 64px; }
  .lb-prev, .lb-next { top: auto; bottom: 7px; transform: none; width: 46px; height: 46px; }
}
@media (max-width: 900px) { .cta2 { grid-template-columns: minmax(0, 1fr); } .stamp { order: -1; width: min(240px, 66vw); justify-self: center; margin-bottom: 8px; } }
@media (max-width: 620px) {
  .sites { grid-template-columns: minmax(0, 1fr); }
  .phones { display: flex; overflow-x: auto; margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); scrollbar-width: none; }
  .phones .phone { flex: none; width: 42vw; }
  .door h2 { font-size: clamp(58px, 17.5vw, 96px); line-height: .98; max-width: none; }
  .door h2 .w { display: block; }
  .door-sub { font-size: clamp(18px, 4.9vw, 21px); line-height: 1.5; max-width: none; text-wrap: balance; margin-top: 18px; }
  .door-cnt { font-size: 15px; padding: 10px 20px; }
  .door-num { font-size: clamp(260px, 78vw, 420px); -webkit-text-stroke-width: 2.5px; transform: translate(-50%, -55%); }
  .fx .fly { width: calc(36vw * var(--k, 1)); border-radius: 14px; }
}
@media (prefers-reduced-motion: reduce) { .st-ring, .st-dots, .st-dot { animation: none; } .col { animation: none; } .phone.run .pscr img { animation: none; } }

/* ---------------- 02 logo animation (dark "screening room") ---------------- */
#motion .world { color: var(--white); }
#motion .blk-p { color: color-mix(in srgb, var(--white) 78%, var(--ink)); }
#motion .kicker { background: var(--coral); color: var(--ink); }
.dnav a[data-dom="motion"].on { color: var(--white); }
.dnav a[data-dom="motion"].on i { background: var(--coral); }
.vgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-areas: "a a p" "b c p"; gap: clamp(14px, 1.6vw, 22px); align-items: start; }
.vc { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.vc-a { grid-area: a; } .vc-b { grid-area: b; } .vc-c { grid-area: c; } .vc-p { grid-area: p; align-self: stretch; }
.vplay { all: unset; position: relative; display: block; cursor: pointer; border-radius: 18px; overflow: hidden; background: var(--ink-3); aspect-ratio: 16 / 9; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 24px 50px rgba(0,0,0,.35); isolation: isolate; }
.vc.vert .vplay { aspect-ratio: auto; flex: 1; min-height: 260px; }
.vplay video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.vplay:hover video { transform: scale(1.03); }
.vplay:focus-visible { outline: 3px solid var(--coral); outline-offset: 4px; }
.vbadge { position: absolute; inset-inline-start: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 12px; border-radius: 99px; background: var(--coral); color: var(--ink); font-size: 14px; font-weight: 700; box-shadow: 0 8px 20px rgba(0,0,0,.25); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.vbadge svg { width: 16px; height: 16px; }
.vplay:hover .vbadge { transform: scale(1.06); }
.vc figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.vc figcaption b { font: 900 clamp(19px, 1.6vw, 23px)/1.2 var(--f-head); }
.vc figcaption span { font-size: 14px; color: color-mix(in srgb, var(--white) 65%, var(--ink)); }
.vfeat { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 64px); align-items: center; margin-top: clamp(48px, 6vw, 88px); }
.vtxt .blk-p { margin-top: 14px; }
.vtxt .btn { margin-top: 22px; }
@media (max-width: 900px) {
  .vgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "a a" "p b" "p c"; }
  .vfeat { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .vbadge { font-size: 0; padding: 9px; gap: 0; } .vbadge svg { width: 16px; height: 16px; }
  .vc figcaption span { font-size: 13px; }
}
/* video dialog */
.vbox { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(20,20,20,.96); color: var(--white); overflow: hidden; }
.vbox::backdrop { background: transparent; }
.vbox[open] { display: block; }
.vb-stage { position: absolute; inset: 64px clamp(16px, 5vw, 80px) 64px; display: flex; align-items: center; justify-content: center; }
.vb-stage video { max-width: 100%; max-height: 100%; border-radius: 14px; background: #000; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.vbox .lb-bar { position: absolute; inset-inline: 0; bottom: 0; height: 64px; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 500; }

/* Berry Dew: a slider that turns its own pages and never holds the scroll */
.hcase .hpin { min-height: 0; }
.hview { overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; cursor: grab; }
.hview::-webkit-scrollbar { display: none; }
.hview:focus-visible { outline: 3px solid var(--ink); outline-offset: -3px; }
.hview .htrack { will-change: auto; }
.hview .hs { scroll-snap-align: center; }
.hctl { display: flex; align-items: center; gap: 14px; }
.hctl .hprog { flex: 1; }
.hprog span { transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.hbtn { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--ink); color: var(--white); font: 700 24px/1 var(--f-en); cursor: pointer; display: grid; place-items: center; transition: background-color .25s, transform .25s; }
.hbtn:hover { background: var(--coral); color: var(--ink); transform: scale(1.06); }
.hbtn:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
/* links from the home page's service cards land just below the sticky header + domain chips */
#sites { scroll-margin-top: 150px; }
@media (max-width: 900px) { #sites { scroll-margin-top: 130px; } }
