/* ==========================================================================
   Multi-page layer: navigation, transitions, work index, case studies,
   brand gallery, lightbox, about, dotXline and contact.
   ========================================================================== */

.work-track { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); }
@media (max-width: 900px) { .work-track { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); } }
.head { padding-top: env(safe-area-inset-top, 0px); }
.progress { top: env(safe-area-inset-top, 0px); }

/* ---------- Navigation ---------- */
.nav a { position: relative; }
.nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"]::before { content: ""; position: absolute; left: 50%; bottom: -10px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--grad); }
.hire { gap: 10px; }
.hire .pulse { width: 7px; height: 7px; border-radius: 50%; background: #22B35E; box-shadow: 0 0 0 0 rgba(34,179,94,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(34,179,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,179,94,0); } }
.menu-btn { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); color: var(--text); padding: 0; position: relative; cursor: pointer; z-index: 2; }
.menu-btn i { position: absolute; left: 14px; right: 14px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .5s var(--ease), top .5s var(--ease); }
.menu-btn i:first-child { top: 18px; } .menu-btn i:last-child { top: 26px; }
.menu-open .menu-btn i:first-child { top: 22px; transform: rotate(45deg); }
.menu-open .menu-btn i:last-child { top: 22px; transform: rotate(-45deg); }
@media (max-width: 1020px) { .nav { display: none; } .menu-btn { display: block; } .theme-btn { margin-left: auto; } .head .hire { display: none; } }
.menu { position: fixed; inset: 0; z-index: 90; background: var(--bg); display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: calc(96px + env(safe-area-inset-top, 0px)) max(24px, env(safe-area-inset-right, 0px)) calc(32px + env(safe-area-inset-bottom, 0px)) max(24px, env(safe-area-inset-left, 0px)); clip-path: circle(0 at calc(100% - 44px) 40px); visibility: hidden; transition: clip-path .8s var(--ease-in-out), visibility 0s .8s; }
.menu-open .menu { clip-path: circle(150% at calc(100% - 44px) 40px); visibility: visible; transition: clip-path .8s var(--ease-in-out); }
.menu-open body { overflow: hidden; }
.menu a { display: flex; align-items: baseline; gap: 14px; font: 600 clamp(44px, 12vw, 72px)/1.05 var(--display); text-decoration: none; color: var(--text); overflow: hidden; }
.menu a span { display: inline-block; transform: translateY(110%); transition: transform .8s var(--ease); transition-delay: calc(.15s + var(--i) * .06s); }
.menu a small { font: 600 13px/1 var(--body); color: var(--accent); letter-spacing: .1em; }
.menu-open .menu a span { transform: none; }
.menu a[aria-current="page"] span { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.menu-foot { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 1021px) { .menu { display: none; } }

/* ---------- Page curtain ---------- */
.curtain { position: fixed; inset: 0; z-index: 240; pointer-events: none; background: #15130F; display: grid; place-items: center; transform: translateY(100%); visibility: hidden; }
.leaving .curtain, .arriving .curtain { visibility: visible; }
.curtain::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 0% 0%, rgba(255,145,36,.55), rgba(255,36,64,.35) 45%, rgba(255,0,142,.25) 70%, transparent); }
.curtain-label { position: relative; font: 600 clamp(40px, 7vw, 96px)/1 var(--display); color: #F3EFE7; opacity: 0; transform: translateY(30px); transition: opacity .4s, transform .6s var(--ease); }
.leaving .curtain { transform: none; transition: transform .65s var(--ease-in-out); pointer-events: all; }
.leaving .curtain-label { opacity: 1; transform: none; transition-delay: .2s; }
.arriving .curtain { transform: none; }
.arriving .curtain-label { opacity: 1; transform: none; }
.arriving.arrived .curtain { transform: translateY(-100%); transition: transform .9s var(--ease-in-out) .1s; }
.arriving.arrived .curtain-label { opacity: 0; transform: translateY(-30px); transition: opacity .3s, transform .5s var(--ease); }

/* ---------- Cursor image preview (work list) ---------- */
.cursor-preview { position: absolute; left: 0; top: 0; width: 340px; height: 240px; margin: -120px 0 0 -170px; border-radius: 16px; background: center / cover no-repeat var(--card); box-shadow: var(--shadow); opacity: 0; scale: .6; transition: opacity .3s, scale .5s var(--ease); will-change: transform; }
.cursor.is-preview .cursor-preview { opacity: 1; scale: 1; }
.cursor.is-preview .cursor-ring { opacity: 0; }

/* ---------- Shared page hero ---------- */
.page-hero { padding: calc(150px + env(safe-area-inset-top, 0px)) 0 clamp(48px, 7vw, 88px); position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(56px, 10vw, 156px); line-height: .9; letter-spacing: -.02em; max-width: 12ch; }
.page-hero .lede { margin: 30px 0 0; }
.page-hero .hero-meta { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 40px; color: var(--muted); font-size: 15px; }
.page-hero .hero-meta b { color: var(--text); font-weight: 600; }
.glow { position: absolute; width: 60vw; height: 60vw; right: -20vw; top: -25vw; border-radius: 50%; background: radial-gradient(circle, rgba(255,74,44,.18), rgba(255,0,142,.08) 45%, transparent 65%); pointer-events: none; filter: blur(10px); }

/* ---------- Image reveal ---------- */
.js [data-img] { clip-path: inset(12% 12% 12% 12% round 24px); transition: clip-path 1.3s var(--ease-in-out); }
.js [data-img].in { clip-path: inset(0 0 0 0 round var(--radius)); }
.js [data-img] img { transform: scale(1.18); transition: transform 1.6s var(--ease-in-out); }
.js [data-img].in img { transform: scale(1); }
.media { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--bg-alt); }
.media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.plx { position: absolute; inset: -8% 0; height: 116%; will-change: transform; }
.plx img { height: 100%; }

/* ---------- Scene images in the home work panels ---------- */
.scene .cover { z-index: 0; }
.scene.img-scene::before { display: none; }
.scene.img-scene .cover { transform: scale(1.06) translate3d(calc(var(--px, 0px) * .4), 0, 0); transition: transform .2s linear; }
.scene.app-scene { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 5%; }
.scene .phone-shot { position: relative; height: 84%; aspect-ratio: 9 / 19.5; border-radius: 22px; overflow: hidden; box-shadow: 0 40px 70px -30px rgba(0,0,0,.6); background: #000; }
.scene .phone-shot img { width: 100%; height: 100%; object-fit: cover; }
.scene .phone-shot:nth-child(2) { height: 72%; opacity: .95; }
.x-scene { background: radial-gradient(120% 120% at 0% 0%, #0F9D7A, #0B5E4A 60%, #08392E); }
.t-scene { background: radial-gradient(120% 120% at 0% 0%, #FF7A2F, #E0451B 60%, #9C2A0E); }

/* ---------- Logo wall ---------- */
.logos { padding: clamp(64px, 8vw, 100px) 0; border-bottom: 1px solid var(--line); overflow: hidden; }
.logos .wrap { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 36px; }
.logos .kicker { margin: 0; }
.logos .wrap a { color: var(--muted); font-size: 15px; }
.logo-row { display: flex; white-space: nowrap; }
.logo-track { display: flex; align-items: center; gap: clamp(48px, 7vw, 96px); padding-right: clamp(48px, 7vw, 96px); flex-shrink: 0; will-change: transform; }
.logo-track img { height: clamp(34px, 4vw, 52px); width: auto; max-width: none; opacity: .72; transition: opacity .3s; }
.logo-track img:hover { opacity: 1; }
.is-dark .mono-logo { filter: invert(1); }

/* ---------- Why hire me ---------- */
.why { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (min-width: 1001px) { .why.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1000px) { .why { grid-template-columns: repeat(2, minmax(0, 1fr)); } .why.three { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .why { grid-template-columns: 1fr; } }
.why-card { position: relative; background: var(--card); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; gap: 14px; isolation: isolate; min-height: 300px; }
.why-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; background: radial-gradient(420px circle at var(--x, -999px) var(--y, -999px), #FF9124, #FF2440 18%, #FF008E 32%, var(--line) 60%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; z-index: -1; }
.why-card .big { font: 600 clamp(48px, 5vw, 72px)/.9 var(--display); background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: auto; }
.why-card h3 { font-size: 26px; }
.why-card p { color: var(--muted); font-size: 16px; }

/* ---------- Ventures strip (home) ---------- */
.ventures { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 16px; }
@media (max-width: 1000px) { .ventures { grid-template-columns: 1fr; } }
.venture { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 460px; display: flex; flex-direction: column; justify-content: space-between; padding: 30px; color: #fff; text-decoration: none; isolation: isolate; }
.venture.company { background: #15130F; color: #F3EFE7; }
.venture.company::after { content: ""; position: absolute; inset: 0; background: radial-gradient(90% 70% at 100% 100%, rgba(245,165,36,.35), transparent 60%); z-index: -1; }
.venture.xp { background: radial-gradient(120% 120% at 0% 0%, #12B38B, #0B5E4A 70%); }
.venture.tb { background: radial-gradient(120% 120% at 0% 0%, #FF8A45, #D9431A 70%); }
.venture h3 { font-size: clamp(36px, 3.6vw, 52px); }
.venture p { opacity: .86; font-size: 16px; max-width: 34ch; }
.venture .v-top { display: flex; align-items: center; gap: 14px; }
.venture .v-top img { width: 56px; height: 56px; border-radius: 14px; }
.venture .v-shot { position: absolute; right: -6%; bottom: -26%; width: 52%; border-radius: 26px; overflow: hidden; box-shadow: 0 40px 70px -30px rgba(0,0,0,.6); z-index: -1; transform: rotate(-8deg) translateY(var(--vy, 0)); transition: transform .8s var(--ease); }
.venture:hover .v-shot { --vy: -40px; }
.venture .v-shot img { width: 100%; display: block; }
.venture .v-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.venture .v-link::after { content: "→"; transition: transform .4s var(--ease); }
.venture:hover .v-link::after { transform: translateX(6px); }
.venture.company img.dx { width: min(240px, 70%); height: auto; }

/* ---------- Work index ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 40px; }
.chipset { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 600 15px/1 var(--body); padding: 12px 18px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; display: inline-flex; gap: 6px; align-items: flex-start; transition: color .3s, background .3s, border-color .3s; }
.chip sup { font-size: 11px; opacity: .7; }
.chip:hover { color: var(--text); border-color: var(--text); }
.chip[aria-pressed="true"] { background: var(--btn); color: var(--btn-ink); border-color: var(--btn); }
.toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.toggle button { border: 0; background: transparent; color: var(--muted); border-radius: 999px; padding: 8px 14px; font: 600 14px/1 var(--body); cursor: pointer; }
.toggle button[aria-pressed="true"] { background: var(--card); color: var(--text); box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.wgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 28px; }
.wgrid > [hidden] { display: none; }
@media (max-width: 760px) { .wgrid { grid-template-columns: 1fr; } }
.wcard { display: flex; flex-direction: column; gap: 18px; text-decoration: none; color: inherit; }
.wcard:nth-child(4n+2), .wcard:nth-child(4n+3) { }
.wcard .media { aspect-ratio: 4 / 3; }
.wcard .media img { transition: transform 1s var(--ease); }
.wcard:hover .media img { transform: scale(1.05); }
.wcard .media .scene { position: absolute; inset: 0; }
.wcard-meta { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.wcard h3 { font-size: clamp(30px, 3vw, 42px); }
.wcard .tags { color: var(--muted); font-size: 15px; text-align: right; }
.wcard-body > p { color: var(--muted); font-size: 16px; max-width: 56ch; }
.badge { display: inline-flex; align-items: center; gap: 6px; font: 600 12px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; padding: 7px 10px; border-radius: 999px; background: var(--card); color: var(--text); position: absolute; left: 16px; top: 16px; z-index: 2; box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--grad); }
/* List view: big rows with the cursor preview */
[data-view="list"] .wgrid { grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line); }
[data-view="list"] .wcard { flex-direction: row; align-items: center; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line); transition: padding .5s var(--ease); }
[data-view="list"] .wcard .media, [data-view="list"] .wcard-body > p { display: none; }
[data-view="list"] .wcard-meta { flex: 1; }
[data-view="list"] .wcard h3 { font-size: clamp(34px, 5vw, 72px); transition: transform .5s var(--ease), color .3s; }
[data-view="list"] .wcard:hover h3 { transform: translateX(14px); color: var(--accent); }
[data-view="list"] .wcard:hover { padding-left: 8px; }

/* ---------- Case study ---------- */
.case-hero { padding-bottom: 48px; }
.case-hero h1 { max-width: 14ch; }
.case-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; border-top: 1px solid var(--line); padding-top: 28px; margin-top: 48px; }
.case-facts div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.case-facts dt { font: 600 12px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.case-facts dd { margin: 0; font: 600 20px/1.3 var(--display); }
.case-facts a { color: var(--accent); }
@media (max-width: 760px) { .case-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.case-cover { height: min(82vh, 820px); margin: 0 auto; max-width: calc(var(--wrap) - 64px); }
@media (max-width: 760px) { .case-cover { height: 62vh; margin: 0 16px; } }
.case-cover.dark { background: #15130F; }
.case-sec { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px; padding: clamp(72px, 9vw, 120px) 0; border-bottom: 1px solid var(--line); }
.case-sec:last-child { border-bottom: 0; }
.case-sec > h2 { font-size: clamp(32px, 3.6vw, 52px); position: sticky; top: 110px; align-self: start; }
.case-sec .body { display: flex; flex-direction: column; gap: 22px; font-size: clamp(18px, 1.5vw, 21px); color: var(--muted); max-width: 64ch; }
.case-sec .body strong { color: var(--text); font-weight: 600; }
.case-sec .lead { font: 600 clamp(26px, 2.6vw, 38px)/1.2 var(--display); color: var(--text); }
@media (max-width: 860px) { .case-sec { grid-template-columns: 1fr; gap: 20px; } .case-sec > h2 { position: static; } }
.points { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 640px) { .points { grid-template-columns: 1fr; } }
.points li { background: var(--card); border-radius: 18px; padding: 22px 22px 22px 56px; position: relative; font-size: 16px; color: var(--muted); }
.points li b { display: block; font: 600 21px/1.2 var(--display); color: var(--text); margin-bottom: 6px; }
.points li::before { content: ""; position: absolute; left: 22px; top: 26px; width: 18px; height: 18px; border-radius: 6px; background: var(--grad); }
.quote { font: 600 clamp(30px, 3.4vw, 50px)/1.15 var(--display); color: var(--text); border-left: 3px solid; border-image: var(--grad) 1; padding-left: 28px; }
.case-band { padding: clamp(72px, 9vw, 120px) 0; background: var(--bg-alt); overflow: hidden; }
.case-band .section-head { margin-bottom: 40px; }
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 760px) { .duo { grid-template-columns: 1fr; } }
.duo .media { aspect-ratio: 1; }
.case-mock { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; }
.case-mock .scene { position: absolute; inset: 0; }

/* Phone carousel with 3D cover-flow driven by scroll position */
.flow-wrap { position: relative; }
.flow { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 40px max(16px, calc(50% - 140px)); scrollbar-width: none; perspective: 1400px; }
.flow::-webkit-scrollbar { display: none; }
.flow-item { flex: 0 0 auto; width: min(280px, 72vw); scroll-snap-align: center; display: flex; flex-direction: column; gap: 16px; transform: rotateY(calc(var(--c, 0) * -28deg)) scale(calc(1 - var(--a, 0) * .14)); opacity: calc(1 - var(--a, 0) * .45); transition: transform .15s linear; }
.flow-item .shot { border-radius: 30px; overflow: hidden; box-shadow: var(--shadow); background: #000; aspect-ratio: 9 / 19.5; }
.flow-item .shot img { width: 100%; height: 100%; object-fit: cover; }
.flow-item b { font: 600 22px/1.2 var(--display); }
.flow-item span { color: var(--muted); font-size: 15px; }
.flow-nav { display: flex; gap: 10px; justify-content: center; }
.flow-nav button { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--text); cursor: pointer; font-size: 20px; }
.flow-nav button:hover { border-color: var(--text); }

/* Next project */
.next { display: block; text-decoration: none; color: inherit; padding: clamp(80px, 12vw, 160px) 0; border-top: 1px solid var(--line); position: relative; overflow: hidden; }
.next .kicker { margin-bottom: 24px; }
.next h2 { font-size: clamp(60px, 12vw, 190px); line-height: .88; letter-spacing: -.02em; transition: transform .8s var(--ease); }
.next h2 span { display: inline-block; background: linear-gradient(90deg, var(--text) 50%, transparent 50%), var(--grad-text); background-size: 200% 100%, 100% 100%; background-position: 0 0; -webkit-background-clip: text; background-clip: text; color: transparent; transition: background-position 1s var(--ease); }
.next:hover h2 span { background-position: -100% 0, 0 0; }
.next .next-img { position: absolute; right: 6%; top: 50%; width: min(420px, 34vw); aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; transform: translateY(-50%) rotate(6deg) scale(.6); opacity: 0; transition: transform .8s var(--ease), opacity .4s; box-shadow: var(--shadow); }
.next:hover .next-img { transform: translateY(-50%) rotate(-3deg) scale(1); opacity: 1; }
.next .next-img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) { .next .next-img { display: none; } }

/* ---------- Brand gallery ---------- */
.masonry { columns: 3 320px; column-gap: 20px; }
.masonry > [hidden] { display: none; }
.gitem { display: block; width: 100%; break-inside: avoid; margin: 0 0 20px; padding: 0; border: 0; background: var(--card); border-radius: 18px; overflow: hidden; cursor: zoom-in; text-align: left; color: inherit; position: relative; }
.gitem img { width: 100%; height: auto; display: block; transition: transform .9s var(--ease), filter .6s; }
.gitem:hover img { transform: scale(1.04); }
.gitem .gcap { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transform: translateY(calc(100% + 16px)); transition: transform .5s var(--ease); }
.gitem:hover .gcap, .gitem:focus-visible .gcap { transform: none; }
.gcap b { font: 600 18px/1.1 var(--display); color: var(--text); }
.gcap span { font-size: 13px; color: var(--muted); white-space: nowrap; }
@media (hover: none) { .gitem .gcap { transform: none; } }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 230; background: rgba(12,12,12,.94); display: grid; grid-template-rows: auto 1fr auto; opacity: 0; transition: opacity .4s; padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); color: #F3EFE7; }
.lightbox.open { opacity: 1; }
.lb-open body { overflow: hidden; }
.lb-bar { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; }
.lb-count { font: 600 15px/1 var(--display); letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.lb-stage { display: grid; place-items: center; padding: 0 70px; min-height: 0; }
.lb-img { max-width: 100%; max-height: 74vh; border-radius: 12px; opacity: 0; transform: scale(.96); transition: opacity .4s, transform .6s var(--ease); }
.lb-img.ready { opacity: 1; transform: none; }
.lb-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px 24px; }
.lb-cap { display: flex; flex-direction: column; gap: 4px; }
.lb-cap b { font: 600 24px/1.1 var(--display); }
.lb-cap span { color: #A3A3A3; font-size: 14px; }
.lb-btn { width: 52px; height: 52px; border-radius: 50%; border: 1px solid #3A3A3A; background: transparent; color: #F3EFE7; cursor: pointer; font-size: 20px; display: grid; place-items: center; }
.lb-btn:hover { border-color: #F3EFE7; }
.lb-nav { display: flex; gap: 10px; }
@media (max-width: 600px) { .lb-stage { padding: 0 12px; } }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }
.portrait { position: sticky; top: 110px; }
.portrait .media { aspect-ratio: 4 / 5; }
.portrait figcaption { margin-top: 14px; color: var(--muted); font-size: 14px; display: flex; justify-content: space-between; }
@media (max-width: 900px) { .portrait { position: relative; top: 0; max-width: 460px; } }
.bio { display: flex; flex-direction: column; gap: 24px; font-size: clamp(18px, 1.5vw, 21px); color: var(--muted); }
.bio .lead { font: 600 clamp(30px, 3.2vw, 46px)/1.12 var(--display); color: var(--text); }
.bio strong { color: var(--text); font-weight: 600; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 12px 0 0; border-top: 1px solid var(--line); }
.facts div { padding: 18px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.facts div:nth-child(odd) { padding-right: 16px; }
.facts dt { font: 600 12px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; font: 600 19px/1.3 var(--display); color: var(--text); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 24px; height: 2px; background: var(--line); }
.steps li { counter-increment: s; position: relative; padding-top: 66px; display: flex; flex-direction: column; gap: 8px; }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; top: 0; left: 0; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 2px solid var(--line); font: 700 15px/1 var(--display); transition: background .5s, color .5s, border-color .5s; transition-delay: calc(var(--i) * .15s); }
.steps.in li::before { background: var(--btn); color: var(--btn-ink); border-color: var(--btn); }
.steps li b { font: 600 24px/1.1 var(--display); }
.steps li span { color: var(--muted); font-size: 16px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; gap: 28px; } .steps::before { left: 24px; right: auto; width: 2px; top: 0; bottom: 0; height: auto; } .steps li { padding: 4px 0 0 76px; } }

/* ---------- dotXline page ---------- */
.dx-logo { width: min(320px, 70vw); height: auto; margin-bottom: 36px; }
.dx-story { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .dx-story { grid-template-columns: 1fr; } }
.dx-story div { background: var(--card); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; gap: 12px; }
.dx-story .sym { font: 700 64px/1 var(--display); background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dx-story h3 { font-size: 28px; }
.dx-story p { color: var(--muted); font-size: 16px; }
.app-sec { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: center; padding-top: clamp(72px, 9vw, 120px); padding-bottom: clamp(72px, 9vw, 120px); border-top: 1px solid var(--line); }
@media (max-width: 900px) { .app-sec { grid-template-columns: 1fr; } }
.app-sec .app-id { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.app-sec .app-id img { width: 72px; height: 72px; border-radius: 18px; box-shadow: var(--shadow); }
.app-sec h2 { font-size: clamp(44px, 5.4vw, 80px); }
.app-sec .body { display: flex; flex-direction: column; gap: 20px; color: var(--muted); font-size: 19px; }
.app-sec .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.app-sec .tags span { border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 600; color: var(--text); }
.stack { position: relative; height: clamp(440px, 52vw, 640px); }
.stack .shot { position: absolute; width: 46%; border-radius: 30px; overflow: hidden; box-shadow: var(--shadow); background: #000; aspect-ratio: 9 / 19.5; transition: transform .9s var(--ease); }
.stack .shot img { width: 100%; height: 100%; object-fit: cover; }
.stack .shot:nth-child(1) { left: 6%; top: 8%; transform: rotate(-6deg); }
.stack .shot:nth-child(2) { left: 30%; top: 0; z-index: 2; }
.stack .shot:nth-child(3) { left: 54%; top: 10%; transform: rotate(6deg); }
.stack:hover .shot:nth-child(1) { transform: rotate(-10deg) translateX(-24px); }
.stack:hover .shot:nth-child(3) { transform: rotate(10deg) translateX(24px); }
.stack:hover .shot:nth-child(2) { transform: translateY(-14px); }

/* ---------- Contact ---------- */
.contact-wrap { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
@media (max-width: 900px) { .contact-wrap { grid-template-columns: 1fr; } }
.cform { display: flex; flex-direction: column; gap: 22px; }
.cform .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 600px) { .cform .row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .cform legend { font: 600 13px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea { font: 500 19px/1.4 var(--body); color: var(--text); background: transparent; border: 0; border-bottom: 1.5px solid var(--line); padding: 10px 0; border-radius: 0; transition: border-color .3s; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-image: var(--grad) 1; }
.cform fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.form-status { font-size: 16px; min-height: 1.5em; }
.form-status.ok { color: #1E8A4C; }
.form-status.warn { color: var(--accent); }
.side-card { background: var(--card); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 110px; }
.side-card .email { font: 600 clamp(24px, 2.4vw, 32px)/1.2 var(--display); word-break: break-all; user-select: all; }
.side-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; color: var(--muted); font-size: 16px; }
.side-card li { display: flex; gap: 10px; }
.side-card li::before { content: "✦"; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.avail { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; }

/* ---------- Footer CTA ---------- */
.foot-cta { padding: clamp(90px, 12vw, 160px) 0 60px; border-top: 1px solid var(--line); }
.foot-cta-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: center; }
@media (max-width: 820px) { .foot-cta-grid { grid-template-columns: 1fr; } }
.foot-cta h2 { font-size: clamp(48px, 7vw, 108px); max-width: 13ch; line-height: .95; }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 40px 0; }
@media (max-width: 600px) { .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.foot-cols h4 { margin: 0 0 12px; font: 600 12px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.foot-cols ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.foot-cols a { color: var(--text); text-decoration: none; font-size: 16px; }
.foot-cols a:hover { color: var(--accent); }

/* Hero portrait chip */
.me-chip { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 18px; font-weight: 500; color: var(--muted); }
.me-chip img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; border: 2px solid var(--card); box-shadow: 0 0 0 2px #FF2440; }
.me-chip b { color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  .js [data-img] { clip-path: none; } .js [data-img] img { transform: none; }
  .curtain { display: none; }
  .flow-item { transform: none; opacity: 1; }
}

/* [hidden] must win over component display rules */
.lightbox[hidden], .menu[hidden], [data-cat][hidden] { display: none !important; }

/* Fixes after browser review */
.app-sec { overflow-x: clip; }
@media (max-width: 600px) { .stack .shot { width: 40%; } .stack .shot:nth-child(1) { left: 4%; } .stack .shot:nth-child(2) { left: 30%; } .stack .shot:nth-child(3) { left: 56%; } }
.menu .menu-foot a { font: 600 17px/1 var(--body); color: var(--btn-ink); overflow: hidden; align-items: center; }
.menu .menu-foot a span { transform: none; transition: none; }
.venture { min-height: 520px; }
.venture > div:not(.v-top):not(.v-shot) { max-width: 64%; position: relative; z-index: 1; }
.venture.company > div { max-width: none !important; }
.venture .v-shot { width: 40%; right: -4%; bottom: -34%; }
.venture h3 { font-size: clamp(32px, 3vw, 44px); text-wrap: balance; }
h1, h2, h3 { text-wrap: balance; }

/* How I build */
.build-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: b; }
.build-steps .why-card { counter-increment: b; }
.build-steps .why-card::after { content: counter(b, decimal-leading-zero); position: absolute; top: 26px; right: 28px; font: 700 14px/1 var(--display); color: var(--muted); letter-spacing: .08em; }
.build-steps .big { font-size: clamp(36px, 3.4vw, 52px); }
@media (max-width: 1000px) { .build-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .build-steps { grid-template-columns: 1fr; } }
.build-note { margin-top: 28px; color: var(--muted); font-size: 16px; display: flex; gap: 10px; align-items: baseline; }
.build-note::before { content: "✦"; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.services.six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) { .services.six { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .services.six { grid-template-columns: 1fr; } }
.services.six .service { min-height: 0; }
.services.six .service .num { margin-top: 0; }

/* Clean, consistent rounded corners on work images: overflow:hidden alone does not clip
   3D-transformed children in Safari, so clip the scene itself. */
.panel-media .scene, .panel-media .glare { border-radius: inherit; clip-path: inset(0 round var(--radius)); }

/* Venture cards: keep phone screenshots at their true aspect ratio (no stretching). */
.venture .v-shot { width: 46%; right: 3%; bottom: -30%; aspect-ratio: 372 / 620; background: #fff; border-radius: 28px 28px 0 0; border: 6px solid #0d0d0d; border-bottom: 0; transform: rotate(-6deg) translateY(var(--vy, 0)); }
.venture .v-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 22px 22px 0 0; }
.venture > div:not(.v-top):not(.v-shot) { max-width: 52%; }
@media (max-width: 1000px) { .venture .v-shot { width: 40%; right: 2%; bottom: -6%; } .venture > div:not(.v-top):not(.v-shot) { max-width: 58%; } }
.venture:hover .v-shot { --vy: -40px; }

/* ==========================================================================
   Showcase layer: calm warm base, two-tone headlines, mono facts,
   shipped apps as working code, client work as a ledger.
   ========================================================================== */
.mono { font-family: var(--mono); font-size: 13px; letter-spacing: 0; }
.two-tone .dim, .two-tone .dim .wi { color: var(--faint); }
.hero h1.two-tone { max-width: 13ch; }
.hero-canvas { opacity: .92; }
.hero-foot .mono { font-size: 12.5px; }

/* Calmer marquee: smaller, quieter outline row */
.marquee-row span { font-size: clamp(44px, 7vw, 104px); }
.marquee-row.outline span { -webkit-text-stroke-color: var(--faint); }
.marquee b { color: var(--accent); }

/* Facts strip */
.glance { border-block: 1px solid var(--line); }
.glance-row { display: flex; flex-wrap: wrap; gap: 14px 40px; padding: 26px 32px; color: var(--muted); }
.glance-row b { color: var(--text); font-weight: 500; margin-right: 4px; }
@media (max-width: 700px) { .glance-row { padding: 22px 16px; gap: 10px 24px; } }

/* Shipped */
.shipped { padding: clamp(96px, 12vw, 160px) 0 clamp(60px, 8vw, 100px); }
.release { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 96px); align-items: center; padding: clamp(56px, 8vw, 110px) 0; border-top: 1px solid var(--line); }
.release.flip .rel-info { order: 2; }
.rel-tag { color: var(--muted); margin-bottom: 22px; display: inline-flex; align-items: center; gap: 10px; }
.rel-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 4px color-mix(in srgb, var(--acc) 22%, transparent); }
.rel-name { display: flex; align-items: center; gap: 18px; }
.rel-name img { width: clamp(56px, 6vw, 76px); height: auto; border-radius: 22%; box-shadow: var(--shadow); }
.rel-name h3 { font-size: clamp(56px, 7vw, 104px); letter-spacing: -.02em; line-height: .9; }
.rel-sub { margin-top: 14px; font: 500 clamp(22px, 2.2vw, 30px)/1.2 var(--display); color: var(--muted); }
.rel-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 30px 0 26px; border-top: 1px solid var(--line); }
.rel-meta div { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; gap: 12px; }
.rel-meta div:nth-child(odd) { padding-right: 16px; }
.rel-meta dt { color: var(--faint); min-width: 7.5em; }
.rel-meta dd { margin: 0; color: var(--text); }
.rel-desc { color: var(--muted); max-width: 52ch; }
.rel-points { list-style: none; margin: 18px 0 30px; padding: 0; display: grid; gap: 8px; color: var(--muted); font-size: 16px; }
.rel-points li { display: flex; gap: 12px; }
.rel-points li::before { content: "+"; color: var(--acc); font-family: var(--mono); }
.rel-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.rel-ctas .link { margin: 0; }
@media (max-width: 960px) {
  .release { grid-template-columns: 1fr; }
  .release.flip .rel-info { order: 0; }
  .rel-meta { grid-template-columns: 1fr; }
  .rel-meta div:nth-child(odd) { padding-right: 0; }
}

/* App Store button */
.store { display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 22px 0 18px; border-radius: 14px; background: var(--btn); color: var(--btn-ink); text-decoration: none; transition: transform .4s var(--ease), box-shadow .4s; }
.store:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.store svg { width: 24px; height: 24px; fill: currentColor; }
.store span { display: flex; flex-direction: column; font: 600 19px/1.05 var(--body); letter-spacing: -.01em; }
.store small { font: 500 11px/1.2 var(--body); letter-spacing: .01em; opacity: .8; }

/* Stage behind each phone */
.rel-stage { position: relative; display: grid; place-items: center; min-height: clamp(560px, 62vw, 760px); border-radius: 28px; overflow: hidden; isolation: isolate; padding: 48px 16px 64px;
  background: radial-gradient(90% 80% at 50% 110%, color-mix(in srgb, var(--acc) 55%, transparent), transparent 70%), var(--card); border: 1px solid var(--line); }
.rel-stage::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent); mask-image: radial-gradient(70% 60% at 50% 40%, #000, transparent); }
.demo-hint { position: absolute; left: 0; right: 0; bottom: 22px; text-align: center; color: var(--muted); font-size: 12px; }
.demo-hint::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--acc); margin-right: 8px; vertical-align: 1px; animation: hint-pulse 1.6s ease-in-out infinite; }
@keyframes hint-pulse { 50% { opacity: .3; } }

/* Phone shell */
.phone { --pw: clamp(268px, 26vw, 330px); position: relative; width: var(--pw); aspect-ratio: 9 / 19.2; border-radius: calc(var(--pw) * .16); padding: calc(var(--pw) * .035); background: #0D0C0B; box-shadow: 0 0 0 1.5px #3A3732 inset, 0 50px 90px -40px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.04);
  font-family: -apple-system, "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif; overflow: hidden; display: flex; flex-direction: column; isolation: isolate;
  transform: translateY(var(--ly, 0)) rotate(var(--lr, 0deg)); transition: transform 1s var(--ease); }
.phone > * { position: relative; }
.phone::before { content: ""; position: absolute; inset: calc(var(--pw) * .035); border-radius: calc(var(--pw) * .13); background: var(--ph-bg); z-index: -1; }
.ph-status { display: flex; align-items: center; justify-content: space-between; padding: calc(var(--pw) * .045) calc(var(--pw) * .075) 0; height: calc(var(--pw) * .13); font-weight: 600; font-size: calc(var(--pw) * .047); color: var(--ph-ink); }
.ph-island { width: 34%; height: calc(var(--pw) * .085); border-radius: 99px; background: #000; margin-top: -2px; }
.ph-sig { display: flex; gap: 5px; align-items: center; }
.ph-sig svg { height: calc(var(--pw) * .035); fill: currentColor; }
.ph-tabs { margin: auto calc(var(--pw) * .04) calc(var(--pw) * .03); display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px; border-radius: 99px; background: var(--ph-tab); font-size: calc(var(--pw) * .034); font-weight: 600; color: var(--ph-mute); text-align: center; box-shadow: 0 10px 30px -14px rgba(0,0,0,.35); }
.ph-tabs span { padding: calc(var(--pw) * .03) 0; border-radius: 99px; }
.ph-tabs .on { background: var(--ph-on); color: var(--ph-on-ink); }
.phone button { font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }

/* Xpense demo */
.xp-app { --ph-bg: #F2F4F2; --ph-ink: #111; --ph-mute: #6B7280; --ph-tab: #fff; --ph-on: #DDF0E8; --ph-on-ink: #0E6B53; }
.xp-body { flex: 1; min-height: 0; padding: calc(var(--pw) * .05) calc(var(--pw) * .055) 0; color: #111; display: flex; flex-direction: column; }
.xp-h { font-size: calc(var(--pw) * .088); font-weight: 800; letter-spacing: -.02em; line-height: 1.05; }
.xp-sub { font-size: calc(var(--pw) * .04); color: #555; margin-bottom: calc(var(--pw) * .04); }
.xp-card { background: #fff; border-radius: calc(var(--pw) * .06); padding: calc(var(--pw) * .05); box-shadow: 0 8px 24px -16px rgba(0,0,0,.25); display: grid; gap: calc(var(--pw) * .012); }
.xp-l { font-size: calc(var(--pw) * .034); color: #555; }
.xp-total { font-size: calc(var(--pw) * .115); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.xp-left { font-size: calc(var(--pw) * .033); font-weight: 700; color: #0E7A5C; }
.xp-left.over { color: #DC2626; }
.xp-bar { height: calc(var(--pw) * .02); border-radius: 99px; background: #E6EFEA; overflow: hidden; margin-top: calc(var(--pw) * .02); }
.xp-bar i { display: block; height: 100%; width: 78%; border-radius: inherit; background: linear-gradient(90deg, #2FBF8F, #13896A); transition: width .7s var(--ease); }
.xp-row { display: flex; justify-content: space-between; font-size: calc(var(--pw) * .031); color: #666; font-variant-numeric: tabular-nums; }
.xp-add { margin-top: calc(var(--pw) * .025); border: 0; border-radius: 99px; background: #13896A; color: #fff; font-weight: 700 !important; font-size: calc(var(--pw) * .042) !important; padding: calc(var(--pw) * .032) 0; pointer-events: none; }
.xp-qh { font-size: calc(var(--pw) * .052); font-weight: 800; margin: calc(var(--pw) * .055) 0 calc(var(--pw) * .025); }
.xp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: calc(var(--pw) * .022); }
.xp-tile { border: 0; background: #fff; border-radius: calc(var(--pw) * .045); padding: calc(var(--pw) * .03) 0 calc(var(--pw) * .025); display: grid; justify-items: center; gap: calc(var(--pw) * .015); color: #111; font-size: calc(var(--pw) * .029) !important; font-weight: 600 !important; box-shadow: 0 6px 16px -12px rgba(0,0,0,.3); transition: transform .25s var(--ease), box-shadow .25s; }
.xp-tile i { width: calc(var(--pw) * .085); height: calc(var(--pw) * .085); border-radius: 28%; background: var(--c); display: grid; place-items: center; }
.xp-tile svg { width: 62%; height: 62%; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.xp-tile:hover { transform: translateY(-2px); box-shadow: 0 10px 20px -12px rgba(0,0,0,.35); }
.xp-tile:active, .xp-tile.tap { transform: scale(.9); }
.xp-tile:focus-visible { outline: 2px solid #13896A; outline-offset: 2px; }
.xp-toast { position: absolute; left: 8%; right: 8%; bottom: calc(var(--pw) * .2); padding: calc(var(--pw) * .035) calc(var(--pw) * .045); border-radius: calc(var(--pw) * .05); background: #111; color: #fff; font-size: calc(var(--pw) * .036); font-weight: 600; display: flex; align-items: center; gap: 10px; opacity: 0; transform: translateY(14px) scale(.96); transition: opacity .35s, transform .5s var(--ease); pointer-events: none; z-index: 2; }
.xp-toast.show { opacity: 1; transform: none; }
.xp-toast b { color: #6EE7B7; }
.xp-tabs { margin-top: auto; }

/* Tockbee demo */
.tb-app { --ph-bg: #FCF6EA; --ph-ink: #1F160F; --ph-mute: #5B4E43; --ph-tab: #FFFDF8; --ph-on: #F4EADB; --ph-on-ink: #C62F2F; }
.tb-body { flex: 1; min-height: 0; padding: calc(var(--pw) * .05) calc(var(--pw) * .06) 0; color: #1F160F; display: flex; flex-direction: column; }
.tb-top { display: flex; justify-content: space-between; align-items: center; margin: calc(var(--pw) * .06) 0 calc(var(--pw) * .035); }
.tb-top b { font-size: calc(var(--pw) * .062); font-weight: 800; letter-spacing: -.02em; }
.tb-top svg { width: calc(var(--pw) * .06); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.tb-chip { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: calc(var(--pw) * .012) calc(var(--pw) * .035); border-radius: 99px; background: #FDE2E2; color: #C62F2F; font-size: calc(var(--pw) * .033); font-weight: 600; transition: background .4s, color .4s; }
.tb-chip i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: hint-pulse 1.2s ease-in-out infinite; }
.tb-chip.saved { background: #E5F4EA; color: #19734A; }
.tb-chip.saved i { animation: none; }
.tb-timer { font-size: calc(var(--pw) * .14); font-weight: 500; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; margin-top: calc(var(--pw) * .015); }
.tb-since { font-size: calc(var(--pw) * .034); color: #5B4E43; }
.tb-btn { align-self: center; position: relative; width: calc(var(--pw) * .5); aspect-ratio: 1; margin: calc(var(--pw) * .06) 0 calc(var(--pw) * .055); border: 0; border-radius: 50%; background: #F2545B; color: #1F160F; font-size: calc(var(--pw) * .06) !important; font-weight: 800 !important;
  box-shadow: 0 0 0 calc(var(--pw) * .028) #FCDCDC; transition: background .4s, box-shadow .4s, transform .2s var(--ease); }
.tb-btn::after { content: ""; position: absolute; inset: calc(var(--pw) * -.028); border-radius: 50%; border: 2px solid #F2545B; opacity: 0; animation: tb-ring 2.4s ease-out infinite; }
.tb-btn:active { transform: scale(.94); }
.tb-btn:focus-visible { outline: 2px solid #1F160F; outline-offset: 6px; }
.tb-app.off .tb-btn { background: #34C27A; box-shadow: 0 0 0 calc(var(--pw) * .028) #D5F2E2; }
.tb-app.off .tb-btn::after { border-color: #34C27A; }
@keyframes tb-ring { 0% { opacity: .55; transform: scale(.94); } 100% { opacity: 0; transform: scale(1.18); } }
.tb-week { background: #FBB829; border-radius: calc(var(--pw) * .06); padding: calc(var(--pw) * .045) calc(var(--pw) * .05); display: grid; gap: calc(var(--pw) * .01); font-size: calc(var(--pw) * .036); }
.tb-week b { font-size: calc(var(--pw) * .12); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.tb-week .xp-row { color: #3A2A12; }
.tb-bar { height: calc(var(--pw) * .018); border-radius: 99px; background: rgba(31,22,15,.18); overflow: hidden; }
.tb-bar i { display: block; height: 100%; width: 92%; background: #1F160F; border-radius: inherit; transition: width .6s var(--ease); }
.tb-goal { font-size: calc(var(--pw) * .031); }
.tb-tabs { margin-top: auto; }
@media (max-width: 400px) { .phone { --pw: min(76vw, 300px); } .rel-stage { min-height: 0; } }

/* Ledger of client work */
.ledger { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ledger a { display: grid; grid-template-columns: 64px minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.6fr) 32px; gap: 24px; align-items: baseline; padding: 30px 0; border-bottom: 1px solid var(--line); text-decoration: none; position: relative; transition: color .3s, padding .5s var(--ease); }
.ledger a::before { content: ""; position: absolute; inset: 0 -16px; z-index: -1; border-radius: 14px; background: var(--card); opacity: 0; transition: opacity .3s; }
.ledger a:hover::before { opacity: 1; }
.ledger a:hover { padding-left: 12px; }
.lg-n { font-family: var(--mono); font-size: 13px; color: var(--faint); }
.lg-t { font: 600 clamp(28px, 3.2vw, 44px)/1 var(--display); letter-spacing: -.01em; }
.lg-k { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.lg-s { color: var(--muted); font-size: 16px; }
.lg-a { justify-self: end; font-size: 22px; transition: transform .4s var(--ease); }
.ledger a:hover .lg-a { transform: translateX(6px); color: var(--accent); }
.ledger-foot, .shipped-foot { display: flex; flex-wrap: wrap; gap: 14px 36px; margin-top: 36px; }
@media (max-width: 900px) {
  .ledger a { grid-template-columns: 40px minmax(0, 1fr) 24px; gap: 6px 14px; padding: 24px 0; }
  .lg-k, .lg-s { grid-column: 2 / 3; }
  .lg-a { grid-row: 1; grid-column: 3; }
}

/* Calmer custom cursor and tilt (kept, toned down) */
.cursor-ring { width: 30px; height: 30px; margin: -15px 0 0 -15px; border-width: 1px; }
.cursor.is-label .cursor-ring { background: var(--text); }
.cursor.is-label .cursor-label { color: var(--bg); }

.case-store { margin-top: 28px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero h1.two-tone { max-width: 15ch; }
.hero h1.two-tone .dim { display: block; }
.rel-stage { min-height: 0; padding: clamp(40px, 5vw, 64px) 16px 76px; }
.case-facts { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)) !important; }
.why-card .big { line-height: 1.08; padding-bottom: .08em; }

/* ---------- Phone-width polish ---------- */
@media (max-width: 600px) {
  .hero { padding-top: 104px; }
  .btns { gap: 10px; flex-wrap: nowrap; }
  .btns .btn { min-height: 52px; padding: 0 20px; font-size: 16px; white-space: nowrap; }
  .glance-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; font-size: 12px; }
  .glance-row span:last-child { grid-column: 1 / -1; }
  .service, .why-card { min-height: 0; padding: 22px 22px 24px; gap: 8px; }
  .service .ico { width: 36px; height: 36px; }
  .service .num { margin-top: 10px; }
  .service h3 { font-size: 25px; }
  .why-card .big { font-size: 40px; margin-bottom: 10px; }
  .why-card h3 { font-size: 22px; }
  .build-steps .why-card::after { top: 24px; right: 22px; }
  .scrub { font-size: 27px; line-height: 1.18; }
  .pitch { padding: 88px 0; }
  .section, .shipped { padding-top: 80px; padding-bottom: 80px; }
  .section-head { margin-bottom: 36px; }
  .release { padding: 56px 0; gap: 36px; }
  .rel-name h3 { font-size: 60px; }
  .rel-ctas { gap: 16px 22px; }
}

/* Xpense recent list fills the screen like the real app */
.xp-recent { list-style: none; margin: 0; padding: 0; display: grid; gap: calc(var(--pw) * .02); flex: 1; min-height: 0; overflow: hidden; align-content: start; }
.xp-recent li { display: flex; align-items: center; gap: calc(var(--pw) * .03); background: #fff; border-radius: calc(var(--pw) * .04); padding: calc(var(--pw) * .028) calc(var(--pw) * .035); font-size: calc(var(--pw) * .034); animation: xp-in .5s var(--ease); }
.xp-recent i { width: calc(var(--pw) * .075); height: calc(var(--pw) * .075); border-radius: 28%; background: var(--c); flex: none; }
.xp-recent span { display: grid; flex: 1; min-width: 0; line-height: 1.2; }
.xp-recent b { font-weight: 600; }
.xp-recent small { color: #777; font-size: calc(var(--pw) * .028); }
.xp-recent em { font-style: normal; font-weight: 700; font-variant-numeric: tabular-nums; }
@keyframes xp-in { from { opacity: 0; transform: translateY(-8px); } }
.xp-app .xp-qh { margin-top: calc(var(--pw) * .045); }
.xp-recent li:nth-child(n+2) { display: none; }
.xp-app .xp-qh { margin: calc(var(--pw) * .035) 0 calc(var(--pw) * .02); font-size: calc(var(--pw) * .048); }
.xp-sub { margin-bottom: calc(var(--pw) * .03); }
.xp-card { padding: calc(var(--pw) * .042) calc(var(--pw) * .048); }
.xp-tile { padding: calc(var(--pw) * .024) 0 calc(var(--pw) * .02); }
.xp-recent { overflow: visible; }
@media (max-width: 600px) { .app-sec h2 { font-size: 40px; } .app-sec .body { font-size: 17px; } .btn-row .btn { padding: 0 20px; } }

/* Phones: the particle mark sits in its own space above the hero text */
@media (max-width: 819px) {
  .hero { justify-content: flex-start; padding-top: calc(92px + var(--mark-h, min(44vw, 190px)) * .86 + 26px); }
  .hero .hint { display: none; }
}

/* Work page: one page, two sections */
.jump { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.jump a { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: baseline; min-width: 240px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 18px; text-decoration: none; background: var(--card); transition: border-color .3s, transform .4s var(--ease); }
.jump a:hover { border-color: var(--accent); transform: translateY(-2px); }
.jump .mono { color: var(--accent); grid-row: span 2; }
.jump a { font: 600 22px/1.15 var(--display); }
.jump small { font: 400 14px/1.4 var(--body); color: var(--muted); }
.part-head { margin-bottom: 40px; }
.brand-part { border-top: 1px solid var(--line); scroll-margin-top: 70px; }
#product { scroll-margin-top: 70px; }
@media (max-width: 600px) { .jump a { min-width: 0; flex: 1 1 100%; } }
.part-head h2 { font-size: clamp(36px, 4.4vw, 64px); }

/* Case studies: labelled sections from the Behance boards */
.shots .wrap { display: grid; gap: clamp(40px, 6vw, 80px); }
.shot-row { margin: 0; display: grid; gap: 16px; }
.shot-row figcaption { display: flex; align-items: baseline; gap: 14px; font: 600 clamp(20px, 2vw, 26px)/1.2 var(--display); color: var(--text); }
.shot-row figcaption .mono { color: var(--accent); font-size: 13px; }
.shot-row .media { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--card); }
.shot-row .media img { width: 100%; height: auto; display: block; }

/* dotXline hero follows the theme */
.dx-logos { display: block; }
.dx-logo.on-light { display: none; }
html:not(.is-dark) .dx-logo.on-dark { display: none; }
html:not(.is-dark) .dx-logo.on-light { display: block; }

/* ==========================================================================
   Case-study kit: coded palettes, type, wireframes, phones and browsers
   ========================================================================== */
.kit .section-head { margin-bottom: 40px; }
.kit-block { margin-bottom: clamp(48px, 6vw, 80px); }
.kit-label { color: var(--muted); margin-bottom: 18px; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; }
.kit-note, .kt-note { color: var(--muted); font-size: 14px; margin-top: 12px; display: block; }
.kit-quote { font: 500 clamp(22px, 2.4vw, 32px)/1.3 var(--display); max-width: 30ch; margin-bottom: 40px; color: var(--muted); }

.kp-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kp-sw { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 14px 18px; display: grid; gap: 4px; }
.kp-sw i { display: block; aspect-ratio: 4 / 3; border-radius: 14px; margin-bottom: 12px; box-shadow: inset 0 0 0 1px rgba(127,127,127,.25); }
.kp-sw b { font: 600 20px/1.2 var(--display); }
.kp-sw .mono { color: var(--muted); }
@media (max-width: 700px) { .kp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.kt { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 32px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 36px); }
.kt-aa { font: 600 clamp(96px, 12vw, 168px)/1 var(--kf); letter-spacing: -.02em; }
.kt-body b { font: 600 28px/1.1 var(--kf); display: block; }
.kt-body .mono { color: var(--muted); display: block; margin: 6px 0 14px; }
.kt-abc { font: 400 clamp(18px, 1.8vw, 24px)/1.5 var(--kf); color: var(--muted); }
.kt-num { font: 500 20px/1.5 var(--kf); color: var(--muted); margin-top: 6px; }
@media (max-width: 700px) { .kt { grid-template-columns: 1fr; gap: 8px; } }

.wf-row { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.wf-phone { flex: 0 0 auto; width: clamp(150px, 17vw, 200px); aspect-ratio: 9 / 19; border-radius: 26px; border: 1.5px solid var(--line); background: var(--card); padding: 22px 14px; display: flex; flex-direction: column; gap: 10px; scroll-snap-align: start; }
.wf-phone > div { border-radius: 8px; background: color-mix(in srgb, var(--faint) 26%, transparent); }
.wf-bar { height: 34px; } .wf-title { height: 14px; width: 70%; } .wf-sub { height: 10px; width: 50%; }
.wf-hero { height: 26%; border-radius: 14px !important; } .wf-circle { width: 56%; aspect-ratio: 1; border-radius: 50% !important; align-self: center; }
.wf-line { height: 9px; } .wf-line-s { height: 9px; width: 60%; } .wf-input { height: 26px; border-radius: 13px !important; }
.wf-btn { height: 28px; border-radius: 14px !important; background: color-mix(in srgb, var(--kacc, var(--accent)) 45%, transparent) !important; margin-top: auto; }
.wf-btn-ghost { height: 28px; border-radius: 14px !important; background: transparent !important; border: 1.5px dashed color-mix(in srgb, var(--faint) 60%, transparent); margin-top: auto; }
.wf-spacer { flex: 1; background: none !important; }
.wf-grid, .wf-list, .wf-chart, .wf-tabs { background: none !important; display: grid; gap: 6px; }
.wf-grid { grid-template-columns: repeat(3, 1fr); } .wf-grid i { aspect-ratio: 1; border-radius: 6px; background: color-mix(in srgb, var(--faint) 26%, transparent); }
.wf-list i { height: 22px; border-radius: 6px; background: color-mix(in srgb, var(--faint) 26%, transparent); }
.wf-chart { grid-template-columns: repeat(6, 1fr); align-items: end; height: 70px; } .wf-chart i { border-radius: 4px; background: color-mix(in srgb, var(--kacc, var(--accent)) 40%, transparent); }
.wf-tabs { grid-template-columns: repeat(4, 1fr); margin-top: auto; } .wf-tabs i { height: 16px; border-radius: 8px; background: color-mix(in srgb, var(--faint) 26%, transparent); }

.kit-phones { display: flex; gap: clamp(16px, 2.4vw, 32px); overflow-x: auto; padding: 4px 4px 16px; scroll-snap-type: x mandatory; }
.kit-phone { margin: 0; flex: 0 0 auto; scroll-snap-align: start; display: grid; gap: 12px; justify-items: center; }
.kit-phone .phone { --pw: clamp(220px, 22vw, 270px); }
.kit-phone figcaption, .kit-browser figcaption { font: 500 15px/1.3 var(--body); color: var(--muted); text-align: center; }
.kit-stage { position: relative; border-radius: var(--radius); overflow: hidden; padding: clamp(28px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 32px; align-items: center; }
.kit-stage .ks-phones { display: flex; gap: 20px; justify-content: center; align-items: flex-end; }
.kit-stage .ks-phones .kit-phone:nth-child(2) { transform: translateY(-36px); }
.kit-stage .kit-phone figcaption { display: none; }
.ks-brand { display: grid; gap: 14px; color: #fff; }
.ks-brand img, .ks-brand svg { width: 92px; height: 92px; border-radius: 22px; }
.ks-brand b { font: 700 clamp(40px, 5vw, 64px)/1 var(--display); }
.ks-brand span { font: 500 17px/1.4 var(--body); opacity: .85; }
.kit-stage.cv-stage { grid-template-columns: 1fr; background: radial-gradient(120% 120% at 0% 0%, #4B3FB0, #221C5A 70%); }
@media (max-width: 860px) { .kit-stage { grid-template-columns: 1fr; } .kit-stage .ks-phones .kit-phone:nth-child(2) { transform: none; } .kit-stage .ks-phones .kit-phone:nth-child(2) { display: none; } }

/* Card scenes with coded phones */
.kit-scene { display: grid !important; place-items: center; }
.ks-mini { display: flex; gap: 18px; align-items: flex-end; justify-content: center; transform: translateY(8%); }
.ks-mini .phone, .ks-mini .kit-phone .phone { --pw: clamp(150px, 15vw, 200px); }
.ks-mini .kit-phone figcaption { display: none; }
.ks-mini .kit-phone:nth-child(2) { margin-bottom: -10%; }
.panel-media .ks-mini .phone, .wcard .ks-mini .phone { pointer-events: none; }

/* Browser frame */
.kit-browser { margin: 0 0 clamp(40px, 5vw, 64px); display: grid; gap: 14px; }
.kb-win { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; }
.kb-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: #F3F2F8; border-bottom: 1px solid #E3E1EE; }
.kb-bar i { width: 11px; height: 11px; border-radius: 50%; background: #E0DDEB; }
.kb-bar i:nth-child(1) { background: #FF6159; } .kb-bar i:nth-child(2) { background: #FFBD2E; } .kb-bar i:nth-child(3) { background: #28C941; }
.kb-bar span { margin-left: 12px; flex: 1; max-width: 360px; padding: 4px 12px; border-radius: 7px; background: #fff; font: 400 12px/1.4 var(--mono); color: #77738E; }
.kb-body { overflow-x: auto; }
.kit-stage .kit-browser { margin: 0; }

/* ---------- Puff Count screens ---------- */
.pc-app { --ph-bg: #fff; --ph-ink: #111; font-family: "Poppins", system-ui, sans-serif !important; }
.pc-app .ph-status { color: #111; }
.pc-head { margin: calc(var(--pw) * .03) calc(var(--pw) * .02) 0; padding: calc(var(--pw) * .05) calc(var(--pw) * .05) calc(var(--pw) * .08); background: #E6F1FF; border-radius: calc(var(--pw) * .06) calc(var(--pw) * .06) 0 0; display: flex; align-items: center; gap: 8px; color: #1058FF; font-size: calc(var(--pw) * .038); }
.pc-back { width: calc(var(--pw) * .06); height: calc(var(--pw) * .06); fill: none; stroke: #1058FF; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.pc-body { flex: 1; min-height: 0; padding: calc(var(--pw) * .07) calc(var(--pw) * .07) calc(var(--pw) * .06); display: flex; flex-direction: column; gap: calc(var(--pw) * .035); color: #111; }
.pc-head + .pc-body { margin-top: calc(var(--pw) * -.05); background: #fff; border-radius: calc(var(--pw) * .06) calc(var(--pw) * .06) 0 0; }
.pc-center { align-items: center; text-align: center; justify-content: center; }
.pc-low { justify-content: flex-start; padding-top: calc(var(--pw) * .32); }
.pc-app h4 { font: 700 calc(var(--pw) * .068)/1.2 "Poppins", sans-serif; margin: 0; }
.pc-app h5 { font: 600 calc(var(--pw) * .055)/1.3 "Poppins", sans-serif; margin: 0; }
.pc-mute { font-size: calc(var(--pw) * .038); color: #555; }
.pc-small { font-size: calc(var(--pw) * .032); color: #888; margin-top: calc(var(--pw) * .04); }
.pc-small b { color: #111; }
.pc-btn { display: inline-grid; place-items: center; padding: calc(var(--pw) * .03) calc(var(--pw) * .1); border-radius: 99px; background: linear-gradient(180deg, #1BA2FF, #1288F0); color: #fff; font-weight: 600; font-size: calc(var(--pw) * .04); box-shadow: 0 8px 18px -10px #1288F0; }
.pc-btn.sm { align-self: flex-start; padding: calc(var(--pw) * .028) calc(var(--pw) * .1); }
.pc-btn.wide { align-self: stretch; }
.pc-input { border-bottom: 1.5px solid #D5DAE3; padding-bottom: calc(var(--pw) * .02); font-size: calc(var(--pw) * .04); color: #8A93A3; }
.pc-art { position: relative; width: calc(var(--pw) * .5); aspect-ratio: 1; display: grid; place-items: center; margin-bottom: calc(var(--pw) * .06); }
.pc-art .pc-icon { width: 58%; height: auto; border-radius: 22%; position: relative; z-index: 1; }
.pc-art i { position: absolute; border-radius: 18%; background: #BFE0FF; }
.pc-art i:nth-of-type(1) { width: 18%; aspect-ratio: 1; left: 6%; top: 10%; } .pc-art i:nth-of-type(2) { width: 28%; aspect-ratio: 1; right: 4%; bottom: 6%; opacity: .7; }
.pc-art i:nth-of-type(3) { width: 12%; aspect-ratio: 1; right: 10%; top: 4%; } .pc-art i:nth-of-type(4) { width: 14%; aspect-ratio: 1; left: 2%; bottom: 20%; opacity: .6; }
.pc-picker { margin-top: auto; margin-inline: calc(var(--pw) * -.07); margin-bottom: calc(var(--pw) * -.06); background: #F2F4F7; }
.pc-pick-bar { display: flex; justify-content: space-between; padding: calc(var(--pw) * .025) calc(var(--pw) * .06); font-size: calc(var(--pw) * .036); color: #1288F0; border-bottom: 1px solid #E2E6EC; }
.pc-wheel { padding: calc(var(--pw) * .02) calc(var(--pw) * .06) calc(var(--pw) * .05); display: grid; gap: calc(var(--pw) * .01); font-size: calc(var(--pw) * .036); }
.pc-wheel div { display: grid; grid-template-columns: 2fr 1fr 1fr; text-align: center; color: #999; }
.pc-wheel .f2 { opacity: .4; } .pc-wheel .on { color: #111; font-weight: 600; background: #E4E8EE; border-radius: 8px; padding: 2px 0; }
.pc-keys { margin: auto calc(var(--pw) * -.07) calc(var(--pw) * -.06); padding: calc(var(--pw) * .025); background: #D3D6DD; display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(var(--pw) * .018); }
.pc-keys span { background: #fff; border-radius: 6px; display: grid; justify-items: center; padding: calc(var(--pw) * .012) 0; line-height: 1.05; }
.pc-keys b { font-size: calc(var(--pw) * .055); font-weight: 400; } .pc-keys small { font-size: calc(var(--pw) * .022); letter-spacing: .08em; }
.pc-keys .blank { background: none; align-items: center; font-size: calc(var(--pw) * .05); }
.pc-unlock-art { width: calc(var(--pw) * .3); margin: calc(var(--pw) * .04) 0 calc(var(--pw) * .02); }
.pc-unlock-art .pc-icon { width: 100%; height: auto; border-radius: 22%; }
.pc-left { text-align: left; } .pc-blue { color: #1288F0; font-weight: 500; font-size: calc(var(--pw) * .045); margin-top: calc(var(--pw) * -.03); }
.pc-perks { list-style: none; margin: 0; padding: 0; display: grid; gap: calc(var(--pw) * .012); font-size: calc(var(--pw) * .034); color: #444; }
.pc-perks li::before { content: "✓"; color: #1288F0; font-weight: 700; margin-right: 8px; }
.pc-plan { display: flex; align-items: center; gap: 6px; padding: calc(var(--pw) * .03) calc(var(--pw) * .04); border-radius: 12px; background: #F3F5F8; font-size: calc(var(--pw) * .034); }
.pc-plan i { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid #B9C2CF; }
.pc-plan.on { background: #E8F3FF; } .pc-plan.on i { border: 4px solid #1288F0; }
.pc-plan b { font-size: calc(var(--pw) * .04); } .pc-plan span { color: #666; }
.pc-plan em { margin-left: auto; font-style: normal; font-size: calc(var(--pw) * .028); color: #1288F0; background: #D5E9FF; padding: 2px 8px; border-radius: 99px; }
.pc-stage { background: radial-gradient(120% 120% at 0% 0%, #2F7BFF, #0C46D6 70%); }

/* ---------- Pocket screens ---------- */
.pw-app { --ph-bg: #fff; --ph-ink: #111; font-family: "DM Sans", system-ui, sans-serif !important; --pw-on: #fff; }
.pw-app.pw-cyan { --ph-bg: #00B4D8; }
.pw-app .ph-status.on-dark, .pw-cyan .ph-status { color: #fff; }
.pw-body { flex: 1; min-height: 0; padding: calc(var(--pw) * .04) calc(var(--pw) * .08) calc(var(--pw) * .04); display: flex; flex-direction: column; gap: calc(var(--pw) * .03); color: #111; }
.pw-splash { align-items: center; justify-content: center; color: #fff; text-align: center; gap: calc(var(--pw) * .02); }
.pw-splash .pw-mark { width: calc(var(--pw) * .26); color: #fff; --pw-on: #00B4D8; }
.pw-splash b { font-size: calc(var(--pw) * .085); letter-spacing: .06em; font-weight: 500; }
.pw-splash span { margin-top: calc(var(--pw) * .5); font-size: calc(var(--pw) * .03); letter-spacing: .2em; text-transform: uppercase; opacity: .9; }
.pw-title { text-align: center; letter-spacing: .25em; font-size: calc(var(--pw) * .036); font-weight: 500; margin-top: calc(var(--pw) * .02); }
.pw-logo { display: grid; place-items: center; margin: calc(var(--pw) * .06) 0 calc(var(--pw) * .07); }
.pw-logo .pw-mark { width: calc(var(--pw) * .2); color: #00B4D8; }
.pw-in { display: flex; justify-content: space-between; align-items: center; background: #EEEEEE; border-radius: 99px; padding: calc(var(--pw) * .042) calc(var(--pw) * .06); font-size: calc(var(--pw) * .03); letter-spacing: .14em; color: #555; }
.pw-in i { font-style: normal; opacity: .6; letter-spacing: 0; }
.pw-btn { display: grid; place-items: center; border-radius: 99px; background: #00B4D8; color: #fff; padding: calc(var(--pw) * .045) 0; font-weight: 700; letter-spacing: .14em; font-size: calc(var(--pw) * .033); box-shadow: 0 10px 20px -12px #00B4D8; }
.pw-small { text-align: center; font-size: calc(var(--pw) * .028); letter-spacing: .14em; color: #555; } .pw-small b { color: #00B4D8; font-weight: 500; }
.pw-foot { margin-top: auto; text-align: center; font-size: calc(var(--pw) * .03); letter-spacing: .18em; color: #777; padding-bottom: calc(var(--pw) * .05); }
.pw-bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: calc(var(--pw) * .03); height: calc(var(--pw) * .4); align-items: end; padding: 0 calc(var(--pw) * .02); }
.pw-bars span { height: 100%; border-radius: 99px; background: #EFEFEF; display: flex; flex-direction: column-reverse; overflow: hidden; }
.pw-bars i { display: block; background: #00B4D8; } .pw-bars i.dk { background: #2B2B2B; }
.pw-bars.sm { height: calc(var(--pw) * .28); grid-template-columns: repeat(4, 1fr); gap: calc(var(--pw) * .02); }
.pw-key { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: calc(var(--pw) * .025); letter-spacing: .1em; color: #666; }
.pw-key i { width: 8px; height: 8px; background: #00B4D8; display: inline-block; } .pw-key i.dk { background: #2B2B2B; margin-left: 8px; }
.pw-rows { list-style: none; margin: 0 calc(var(--pw) * -.04); padding: 0; display: grid; gap: calc(var(--pw) * .025); }
.pw-rows li { display: flex; align-items: center; gap: calc(var(--pw) * .03); padding: calc(var(--pw) * .02) 0; border-bottom: 1px solid #F0F0F0; }
.pw-rows li > i { width: calc(var(--pw) * .085); height: calc(var(--pw) * .085); border-radius: 8px; background: #F3F3F3; display: grid; place-items: center; font-style: normal; font-size: calc(var(--pw) * .035); }
.pw-rows span { flex: 1; display: grid; line-height: 1.25; } .pw-rows small { font-size: calc(var(--pw) * .022); letter-spacing: .1em; color: #999; } .pw-rows b { font-size: calc(var(--pw) * .033); font-weight: 500; }
.pw-rows em { font-style: normal; font-size: calc(var(--pw) * .034); font-weight: 500; }
.pw-tabs { margin: auto calc(var(--pw) * .05) calc(var(--pw) * .035); display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; justify-items: center; padding: calc(var(--pw) * .02); border-radius: 99px; background: #F5F5F5; }
.pw-tabs i { width: calc(var(--pw) * .055); height: calc(var(--pw) * .055); border-radius: 4px; background: #C9C9C9; }
.pw-tabs b { width: calc(var(--pw) * .11); height: calc(var(--pw) * .11); border-radius: 50%; background: #00B4D8; color: #fff; display: grid; place-items: center; font-size: calc(var(--pw) * .07); font-weight: 400; }
.pw-hero { position: relative; margin: calc(var(--pw) * -.04) calc(var(--pw) * -.08) 0; padding: calc(var(--pw) * .3) calc(var(--pw) * .1) calc(var(--pw) * .08); border-radius: 0 0 calc(var(--pw) * .08) calc(var(--pw) * .08); background: #fff; box-shadow: 0 10px 30px -18px rgba(0,0,0,.35); display: grid; gap: 4px; overflow: hidden; }
.pw-waves { position: absolute; inset: 0 0 auto 0; height: 60%; width: 100%; fill: none; stroke: #CFCFCF; stroke-width: .7; }
.pw-avatar { position: absolute; right: calc(var(--pw) * .08); top: calc(var(--pw) * .1); width: calc(var(--pw) * .13); height: calc(var(--pw) * .13); border-radius: 50%; background: radial-gradient(circle at 50% 38%, #9a9a9a 22%, #5d5d5d 23% 40%, #d9d9d9 41%); box-shadow: 0 0 0 3px #00B4D8; }
.pw-hero small { font-size: calc(var(--pw) * .03); letter-spacing: .16em; color: #444; position: relative; }
.pw-hero b { font-size: calc(var(--pw) * .1); font-weight: 500; letter-spacing: -.01em; position: relative; }
.pw-cards { display: grid; grid-template-columns: 1fr 1fr; gap: calc(var(--pw) * .04); margin-top: calc(var(--pw) * .05); }
.pw-visa, .pw-mini { border-radius: calc(var(--pw) * .05); background: #fff; box-shadow: 0 10px 26px -16px rgba(0,0,0,.4); padding: calc(var(--pw) * .05); display: grid; gap: 4px; min-height: calc(var(--pw) * .55); }
.pw-visa b { font-style: italic; font-weight: 800; font-size: calc(var(--pw) * .05); }
.pw-visa strong { margin-top: auto; font-size: calc(var(--pw) * .05); font-weight: 500; } .pw-visa small, .pw-mini small { font-size: calc(var(--pw) * .024); color: #777; letter-spacing: .08em; }
.pw-stage { background: radial-gradient(120% 120% at 0% 0%, #19C6E6, #0078B7 75%); }
.pw-brand .pw-mark { width: 84px; height: auto; color: #fff; --pw-on: #00A3C8; }

/* ---------- Chatvertiser screens ---------- */
.cv-app { display: grid; grid-template-columns: 196px minmax(0, 1fr); min-width: 860px; font-family: "Roboto", system-ui, sans-serif; font-size: 12px; color: #27253A; background: #F6F6FB; }
.cv-ic { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.cv-ic.xs { width: 12px; height: 12px; } .cv-ic.big { width: 26px; height: 26px; color: #7678EC; }
.cv-logo { display: flex; align-items: center; gap: 8px; font: 600 17px/1 "Exo 2", sans-serif; color: #27253A; padding: 18px 18px 22px; }
.cv-logo svg { width: 26px; height: 22px; fill: #6C63E0; }
.cv-side { background: #fff; border-right: 1px solid #ECEBF4; }
.cv-side ul { list-style: none; margin: 0; padding: 0 10px; display: grid; gap: 2px; }
.cv-side li { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; color: #4B4867; font-size: 13px; }
.cv-side li.on { background: #EFEDFF; color: #5A4FD8; font-weight: 500; }
.cv-main { padding: 0 0 18px; min-width: 0; }
.cv-top { display: flex; align-items: center; gap: 10px; padding: 14px 22px; background: #fff; border-bottom: 1px solid #ECEBF4; color: #9A97B0; }
.cv-crumbs { display: flex; align-items: center; gap: 8px; padding: 16px 22px 8px; font-size: 16px; color: #8C89A6; }
.cv-crumbs b { color: #27253A; font-weight: 500; }
.cv-crumbs em { margin-left: auto; font-style: normal; font-size: 12px; display: flex; gap: 10px; align-items: center; } .cv-crumbs em b { color: #5A4FD8; }
.cv-filters { display: flex; gap: 10px; padding: 0 22px 14px; }
.cv-sel { border: 1px solid #C9C5F2; border-radius: 99px; padding: 4px 14px; color: #5A4FD8; background: #fff; font-size: 12px; }
.cv-chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #A49CF0; background: #F4F2FF; color: #5A4FD8; border-radius: 99px; padding: 5px 12px; }
.cv-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; padding: 0 22px; }
.cv-table { background: #fff; border-radius: 12px; border: 1px solid #ECEBF4; overflow: hidden; }
.cv-table.cv-wide { margin: 0 22px; }
.cv-th, .cv-table li { display: grid; grid-template-columns: 22px 1fr 1.3fr; gap: 10px; align-items: center; padding: 10px 14px; }
.cv-wide .cv-th, .cv-wide li { grid-template-columns: 22px 1.8fr .7fr 1fr 1fr .7fr .7fr; }
.cv-th { color: #8C89A6; border-bottom: 1px solid #ECEBF4; } .cv-th b { font-weight: 500; }
.cv-table ul { list-style: none; margin: 0; padding: 0; }
.cv-table li { border-bottom: 1px solid #F2F1F8; } .cv-table li b { font-weight: 500; } .cv-table li span { color: #8C89A6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv-table li.on { background: #F1EFFF; } .cv-table li.on b { color: #5A4FD8; }
.cv-check { width: 13px; height: 13px; border: 1.5px solid #C2BEDB; border-radius: 3px; display: inline-block; }
.cv-table li.on .cv-check, .cv-check.on { background: #6C63E0; border-color: #6C63E0; }
.cv-pages { display: flex; gap: 8px; align-items: center; padding: 10px 14px; color: #8C89A6; }
.cv-pages i { font-style: normal; padding: 1px 6px; } .cv-pages b { background: #6C63E0; color: #fff; border-radius: 50%; width: 20px; height: 20px; display: grid; place-items: center; font-weight: 500; }
.cv-detail { background: #fff; border-radius: 12px; border: 1px solid #ECEBF4; padding: 12px 14px; display: grid; gap: 10px; align-content: start; }
.cv-tabs { display: flex; gap: 14px; color: #8C89A6; } .cv-tabs b { display: flex; gap: 6px; align-items: center; color: #5A4FD8; background: #EFEDFF; padding: 4px 10px; border-radius: 8px; font-weight: 500; }
.cv-acts { list-style: none; margin: 0; padding: 0 0 0 4px; display: grid; gap: 10px; border-left: 1px dashed #D9D6EC; }
.cv-acts li { display: grid; grid-template-columns: 10px 1fr auto; gap: 8px; align-items: start; }
.cv-acts li > i { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid #9C97C4; margin: 3px 0 0 -9px; background: #fff; }
.cv-acts span { display: grid; } .cv-acts b { font-weight: 400; } .cv-acts small { color: #A29FBA; } .cv-acts em { font-style: normal; color: #A29FBA; font-size: 11px; }
.cv-meta { border-top: 1px solid #ECEBF4; padding-top: 10px; display: grid; gap: 2px; } .cv-meta small { color: #8C89A6; letter-spacing: .08em; margin-bottom: 4px; } .cv-meta b { font-weight: 500; } .cv-meta span { color: #8C89A6; margin-bottom: 6px; }
.cv-tog { width: 30px; height: 16px; border-radius: 99px; background: #D9D7E6; position: relative; display: inline-block; }
.cv-tog i { position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; }
.cv-tog.on { background: #6C63E0; } .cv-tog.on i { left: 16px; }
.cv-owner { display: flex; gap: 6px; align-items: center; color: #27253A !important; } .cv-owner i { width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(135deg, #C9B8A6, #7C6A5B); }
.cv-primary { background: #6C63E0; color: #fff; border-radius: 8px; padding: 6px 14px; font-weight: 500; }
.cv-outline { border: 1px solid #6C63E0; color: #5A4FD8; border-radius: 8px; padding: 6px 14px; background: #fff; }
.cv-ghost { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid #E3E1EE; color: #5A4FD8; border-radius: 8px; padding: 6px 12px; box-shadow: 0 4px 10px -8px rgba(60,52,138,.4); }
.cv-pager { display: inline-flex; gap: 6px; align-items: center; color: #8C89A6; } .cv-pager i { font-style: normal; padding: 0 4px; } .cv-pager b { background: #6C63E0; color: #fff; border-radius: 50%; width: 22px; height: 22px; display: grid; place-items: center; font-weight: 500; }
.cv-icons { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 12px; padding: clamp(18px, 3vw, 28px); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); justify-items: center; }
.cv-elements { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; padding: clamp(18px, 3vw, 28px); background: #F6F6FB; border: 1px solid var(--line); border-radius: var(--radius); font: 400 14px/1.2 "Roboto", system-ui, sans-serif; }
@media (max-width: 600px) { .cv-icons { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
/* chat */
.cv-chat { grid-template-columns: 230px minmax(0, 1fr) 210px; background: #fff; min-width: 900px; }
.cv-inbox { list-style: none; margin: 0; padding: 8px 0; border-right: 1px solid #ECEBF4; }
.cv-inbox li { display: grid; grid-template-columns: 26px 1fr auto; grid-template-rows: auto auto; column-gap: 10px; padding: 9px 14px; align-items: center; }
.cv-inbox li.on { background: #F1EFFF; }
.cv-av { grid-row: span 2; width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, #D7C4B1, #8A735F); }
.cv-inbox li:nth-child(3n) .cv-av { background: linear-gradient(135deg, #B6C6E4, #5F6F94); } .cv-inbox li:nth-child(3n+1) .cv-av { background: linear-gradient(135deg, #E4C1C9, #94606D); }
.cv-inbox b { font-weight: 500; } .cv-inbox span { grid-column: 2; color: #8C89A6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv-inbox em { grid-row: span 2; grid-column: 3; font-style: normal; background: #6C63E0; color: #fff; border-radius: 99px; font-size: 10px; padding: 1px 6px; }
.cv-thread { display: flex; flex-direction: column; background: #FAFAFD; min-width: 0; }
.cv-msgs { padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.cv-sys { align-self: center; color: #A29FBA; font-size: 11px; background: #fff; border: 1px solid #ECEBF4; padding: 2px 10px; border-radius: 99px; }
.cv-in, .cv-out { max-width: 70%; padding: 8px 12px; border-radius: 12px; line-height: 1.4; }
.cv-in { align-self: flex-start; background: #EFEEF6; border-bottom-left-radius: 4px; }
.cv-out { align-self: flex-end; background: #6C63E0; color: #fff; border-bottom-right-radius: 4px; }
.cv-quick { display: flex; gap: 8px; padding: 0 18px 10px; } .cv-quick span { border: 1px solid #D4D0F5; color: #5A4FD8; border-radius: 99px; padding: 4px 10px; background: #fff; }
.cv-compose { margin: 0 18px 16px; display: flex; justify-content: space-between; align-items: center; border: 1px solid #E3E1EE; border-radius: 10px; padding: 10px 12px; color: #A29FBA; background: #fff; }
.cv-compose b { background: #6C63E0; color: #fff; border-radius: 7px; padding: 4px 14px; font-weight: 500; }
.cv-panel { background: #2C2950; color: #DCD9F2; padding: 16px; display: grid; gap: 8px; align-content: start; }
.cv-panel small { color: #9C97C4; letter-spacing: .08em; font-size: 10px; margin-top: 8px; }
.cv-panel p { display: flex; justify-content: space-between; align-items: center; } .cv-panel .cv-tog { background: #4A4675; } .cv-panel .cv-tog.on { background: #8E86F5; }
.cv-coupons { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; } .cv-coupons li { display: flex; justify-content: space-between; } .cv-coupons span { border: 1px solid #5A5690; border-radius: 6px; padding: 2px 8px; } .cv-coupons em { font-style: normal; color: #7EE2A8; }
.cv-actions { display: flex; gap: 10px; color: #BDB8E6; }
.kit-stage { max-width: calc(var(--wrap) - 64px); margin: 0 auto; }
@media (max-width: 760px) { .kit-stage { margin: 0 16px; padding: 28px 18px; } }
.tb-btn, .xp-add { display: grid; place-items: center; }

/* ==========================================================================
   Dock header (floating, frosted, magnifies on hover) + search
   ========================================================================== */
.corner-logo { position: absolute; z-index: 60; top: 30px; left: max(32px, calc((100vw - var(--wrap)) / 2 + 32px)); display: flex; text-decoration: none; }
.corner-logo .logo-svg { height: 28px; width: auto; }
.dock-wrap { position: fixed; z-index: 100; top: calc(14px + env(safe-area-inset-top, 0px)); left: 0; right: 0; display: flex; justify-content: center; pointer-events: none; }
.dock { pointer-events: auto; display: flex; align-items: flex-start; gap: 6px; padding: 7px; border-radius: 22px;
  background: color-mix(in srgb, var(--card) 64%, transparent); -webkit-backdrop-filter: blur(22px) saturate(1.6); backdrop-filter: blur(22px) saturate(1.6);
  border: 1px solid color-mix(in srgb, var(--text) 12%, transparent); box-shadow: 0 18px 50px -24px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.07); }
.dk-item { --s: 1; position: relative; flex: none; display: block; width: calc(42px * var(--s)); height: calc(42px * var(--s)); padding: 0; border: 0; background: none; color: var(--text); cursor: pointer; text-decoration: none; transition: width .25s var(--ease), height .25s var(--ease); }
.dock.live .dk-item { transition: width .07s linear, height .07s linear; }
.dk-tile { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 28%; background: color-mix(in srgb, var(--text) 7%, transparent); border: 1px solid color-mix(in srgb, var(--text) 9%, transparent); transition: background .25s; }
.dk-item:hover .dk-tile, .dk-item:focus-visible .dk-tile { background: color-mix(in srgb, var(--text) 13%, transparent); }
.dk-item:focus-visible { outline: none; } .dk-item:focus-visible .dk-tile { box-shadow: 0 0 0 2px var(--accent); }
.dk-tile svg { width: 46%; height: 46%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.dk-mark .dk-tile { background: #15130F; border-color: transparent; } .dk-mark .dk-tile svg { width: 60%; height: 60%; stroke: none; }
.dk-item[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--text); }
.dk-tip { position: absolute; top: calc(100% + 12px); left: 50%; transform: translate(-50%, -4px); opacity: 0; pointer-events: none; white-space: nowrap; padding: 6px 10px; border-radius: 9px;
  background: color-mix(in srgb, var(--card) 92%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid var(--line); font: 500 13px/1 var(--body); color: var(--text); transition: opacity .2s, transform .25s var(--ease); }
.dk-item:hover .dk-tip, .dk-item:focus-visible .dk-tip { opacity: 1; transform: translate(-50%, 0); }
.dk-tip kbd, .fd-field kbd { font: 500 11px/1 var(--mono); padding: 3px 5px; border-radius: 5px; border: 1px solid var(--line); margin-left: 6px; color: var(--muted); }
.dk-sep { width: 1px; align-self: stretch; margin: 6px 3px; background: color-mix(in srgb, var(--text) 14%, transparent); }
.dock .theme-btn { width: calc(42px * var(--s)); height: calc(42px * var(--s)); border: 0; border-radius: 0; margin: 0; }
.dock .theme-btn svg { width: 46%; height: 46%; }
.dock .theme-btn .moon-cut { fill: color-mix(in srgb, var(--card) 80%, var(--text) 8%); }
.dk-hire { align-self: center; flex: none; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; margin-left: 2px; border-radius: 14px; background: var(--btn); color: var(--btn-ink); font: 600 15px/1 var(--body); text-decoration: none; transition: transform .3s var(--ease); }
.dk-hire:hover { transform: translateY(1px) scale(1.03); }
.dk-hire .pulse { width: 7px; height: 7px; border-radius: 50%; background: #22B35E; box-shadow: 0 0 0 0 rgba(34,179,94,.6); animation: pulse 2s infinite; }
@media (min-width: 821px) and (max-width: 1180px) { .corner-logo { display: none; } }
@media (max-width: 820px) {
  .corner-logo { top: 20px; left: 16px; } .corner-logo .logo-svg { height: 24px; }
  .dock-wrap { top: auto; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
  .dock { gap: 4px; padding: 6px; border-radius: 20px; }
  .dk-mark, .dk-sep, .dk-hire, .dk-tip { display: none; }
  .dk-item { width: 44px; height: 44px; }
  .dk-item[aria-current="page"]::after { bottom: -4px; }
  body { padding-bottom: 84px; }
}
.head, .menu, .menu-btn { display: none !important; }

/* Search (Command K) */
.finder { position: fixed; inset: 0; z-index: 300; display: grid; justify-items: center; align-items: start; padding: 12vh 16px 16px; }
.finder[hidden] { display: none; }
.fd-backdrop { position: absolute; inset: 0; background: rgba(10, 9, 8, .5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fd-fade .25s ease; }
.fd-panel { position: relative; width: min(640px, 100%); max-height: min(70vh, 640px); display: flex; flex-direction: column; overflow: hidden; border-radius: 22px;
  background: color-mix(in srgb, var(--card) 94%, transparent); -webkit-backdrop-filter: blur(24px) saturate(1.5); backdrop-filter: blur(24px) saturate(1.5);
  border: 1px solid var(--line); box-shadow: 0 40px 100px -30px rgba(0,0,0,.65); animation: fd-in .35s var(--ease); }
@keyframes fd-in { from { opacity: 0; transform: translateY(-10px) scale(.98); } }
@keyframes fd-fade { from { opacity: 0; } }
.fd-field { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.fd-field svg { width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; flex: none; }
.fd-field input { flex: 1; min-width: 0; border: 0; background: none; outline: none; color: var(--text); font: 500 19px/1.2 var(--body); }
.fd-field input::placeholder { color: var(--faint); }
.fd-list { list-style: none; margin: 0; padding: 8px; overflow: auto; overscroll-behavior: contain; }
.fd-group { padding: 12px 12px 6px; font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.fd-list a, .fd-list button { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: 12px; background: none; color: var(--text); text-align: left; text-decoration: none; font: inherit; cursor: pointer; }
.fd-list b { font: 600 16px/1.3 var(--body); }
.fd-list span { grid-column: 1; color: var(--muted); font-size: 13.5px; line-height: 1.35; }
.fd-list i { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-style: normal; color: var(--accent); opacity: 0; }
.fd-list li.on > a, .fd-list li.on > button { background: color-mix(in srgb, var(--accent) 13%, transparent); }
.fd-list li.on i { opacity: 1; }
.fd-list li[hidden] { display: none; }
.fd-empty { padding: 26px 20px; color: var(--muted); }
.fd-foot { display: flex; gap: 18px; padding: 12px 20px; border-top: 1px solid var(--line); color: var(--faint); font-size: 12px; }
@media (max-width: 600px) { .finder { padding-top: 10vh; } .fd-foot { display: none; } }

/* ---------- Brand-kit media: real screens, videos, App Store strip ---------- */
.kit-device { margin: 0; flex: 0 0 auto; scroll-snap-align: start; display: grid; gap: 12px; justify-items: center; }
.kd-bezel { width: clamp(220px, 21vw, 270px); padding: 7px; border-radius: 40px; background: #0D0C0B; box-shadow: 0 0 0 1.5px #3A3732 inset, 0 40px 80px -36px rgba(0,0,0,.6); }
.kd-bezel img { display: block; width: 100%; height: auto; border-radius: 33px; }
.kit-device figcaption, .kit-video figcaption { font: 500 15px/1.3 var(--body); color: var(--muted); text-align: center; max-width: 26ch; }
.kit-videos { display: flex; gap: clamp(16px, 2.4vw, 32px); overflow-x: auto; padding: 4px 4px 16px; scroll-snap-type: x mandatory; }
.kit-video { margin: 0; flex: 0 0 auto; scroll-snap-align: start; display: grid; gap: 12px; justify-items: center; }
.kv-frame { width: clamp(220px, 21vw, 270px); border-radius: 24px; overflow: hidden; background: #000; box-shadow: var(--shadow); border: 1px solid var(--line); }
.kv-frame video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.kit-strip { display: flex; gap: 0; overflow-x: auto; border-radius: var(--radius); scroll-snap-type: x proximity; box-shadow: var(--shadow); }
.kit-strip img { flex: 0 0 auto; height: min(70vh, 640px); width: auto; display: block; scroll-snap-align: start; }
.kit-stage.tb-stage { background: linear-gradient(160deg, #FF7A2F, #FF4F5A); }
.tb-brand { color: #2A1712; }
.tb-brand b { font-family: "Fredoka", var(--display); font-weight: 600; text-transform: lowercase; letter-spacing: 0; }
.tb-brand span { opacity: .9; }
.kit-stage .ks-phones .kit-device figcaption { display: none; }
.kit-stage .ks-phones .kit-device:nth-child(2) { transform: translateY(-36px); }
.kit-stage.xp-stage { grid-template-columns: minmax(0, .55fr) minmax(0, 1.45fr); background: radial-gradient(120% 120% at 0% 0%, #2BC79F, #0A7D61 70%); }
.xp-brand b { font-family: "Sora", var(--display); }
.kit-strip.on-stage { box-shadow: 0 30px 60px -30px rgba(0,0,0,.5); }
.kit-strip.on-stage img { height: min(60vh, 560px); }
.kp-sw small { color: var(--muted); font-size: 13px; line-height: 1.35; margin-top: 4px; }
.kp-grid:has(.kp-sw:nth-child(7)) { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.kp-grid:has(.kp-sw:nth-child(6)) { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.xl-row { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 28px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); }
.xl-row img { width: 140px; height: 140px; border-radius: 22%; }
.xl-row p { color: var(--muted); font-size: 18px; max-width: 60ch; }
@media (max-width: 860px) {
  .kit-stage.xp-stage { grid-template-columns: 1fr; }
  .kit-stage .ks-phones .kit-device:nth-child(2) { transform: none; display: none; }
  .xl-row { grid-template-columns: 1fr; } .xl-row img { width: 96px; height: 96px; }
}
/* The N-mark is the home button everywhere, so no corner logo or separate Home icon */
.corner-logo { display: none !important; }
@media (max-width: 820px) { .dk-mark { display: block; } .dk-mark + .dk-sep { display: none; } }

/* dotXline mark in the dock: Sky on dark, Electric on light (dotXline brand rules) */
.dk-tile svg.dk-dx { width: 62%; height: 62%; stroke: none; }

/* Phones: no particle mark; the hero starts with the introduction */
@media (max-width: 820px) {
  .hero-canvas { display: none; }
  .hero { padding-top: 72px !important; justify-content: flex-start; }
}
/* dotXline hero in the dotXline palette: Ink + Sky on dark, Mist + Electric on light */
@media (max-width: 820px) { .hero { padding-bottom: 104px !important; } }

/* Phones: the particle mark lives in its own framed panel under the hero buttons */
.hero-mark-slot { display: none; }
@media (max-width: 820px) {
  .hero-canvas { display: block !important; }
  .hero-mark-slot { display: block; position: relative; width: 100%; aspect-ratio: 5 / 4; margin-top: 28px; border-radius: var(--radius); border: 1px solid var(--line);
    background: radial-gradient(70% 70% at 50% 45%, color-mix(in srgb, #FF4A2C 8%, transparent), transparent 72%); }
  .hero-mark-slot .mono { position: absolute; left: 16px; bottom: 14px; color: var(--muted); font-size: 12px; }
}
.cursor-preview { display: none !important; }

/* dotXline (full brand kit): mark is Amber on Ink, Ember on light; Ink #0E1512 and Paper #F4F6F3 grounds */

/* ---- Round of fixes (Nov 2026) ---- */
/* dotXline dock icon uses the same colour as the other dock icons */
.dk-tile svg.dk-dx path { stroke: currentColor; }
/* dotXline app fans: keep the right-hand screen inside the column when it spreads on hover */
.stack .shot { width: 42%; }
.stack .shot:nth-child(1) { left: 5%; }
.stack .shot:nth-child(2) { left: 29%; }
.stack .shot:nth-child(3) { left: 51%; }
.stack:hover .shot:nth-child(1) { transform: rotate(-9deg) translateX(-14px); }
.stack:hover .shot:nth-child(3) { transform: rotate(9deg) translateX(14px); }
.app-sec h2 { margin-bottom: 8px; }
/* Read the case study and the App Store badge: same height and shape, side by side */
.btn-row { flex-wrap: wrap; align-items: stretch; }
.btn-row .btn, .btn-row .store { min-height: 56px; height: 56px; border-radius: 999px; box-sizing: border-box; }
.btn-row .store { padding: 0 24px 0 20px; }
/* Chatvertiser logo: show the whole wide logo, never cropped */
.logo-panel { display: grid; place-items: center; padding: 12%; background: var(--card); }
.logo-panel img { width: 100%; height: auto; object-fit: contain; }
/* Tockbee demo: clear room between the clock button (and its pulse) and the yellow pay card */
.tb-btn { width: calc(var(--pw) * .44); margin: calc(var(--pw) * .05) 0 calc(var(--pw) * .1); }
@keyframes tb-ring { 0% { opacity: .5; transform: scale(.96); } 100% { opacity: 0; transform: scale(1.1); } }
/* Click ring: the press scale now lives in the JS transform, so the ring stays on the pointer */
.cursor.is-down .cursor-ring { scale: none; }
/* Home hero: a softer ring around the portrait, with the brand colour carried by the headline instead */
.me-chip img { border: 2px solid var(--card); box-shadow: 0 0 0 1.5px color-mix(in srgb, #FF4A2C 38%, transparent); }
.two-tone .dim em .wi { color: transparent; }
/* Hero headline keeps three short lines so the mark has room beside it */
.hero h1.two-tone .dim em { display: block; }
/* Dock: steady zoom. Hovering the dock lifts every icon a little; the icon under the pointer grows more */
@media (hover: hover) and (pointer: fine) and (min-width: 821px) and (prefers-reduced-motion: no-preference) {
  .dk-item { transition: width .3s var(--ease), height .3s var(--ease); }
  /* the whole dock grows once on entry and holds that size until the pointer leaves it */
  .dock:hover .dk-item { --s: 1.12; }
  /* Liquid-glass feel: site.js sets --ts (scale) and --tx (slide) per icon from the pointer.
     Transforms only, scaled from the centre, so the dock never resizes or crops an icon. */
  .dock { position: relative; transition: padding .3s var(--ease); }
  /* breathing room around the magnified icons: the dock grows its padding once on entry and holds it */
  .dock:hover { padding: 13px 15px; }
  .dock::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
    background: radial-gradient(120px 80px at var(--mx, 50%) 30%, rgba(255,255,255,.16), transparent 70%); mix-blend-mode: soft-light; }
  .dock:hover::after { opacity: 1; }
  .dock > * { transform: translateX(var(--tx, 0px)); transition: transform .32s cubic-bezier(.25,1.35,.4,1); }
  .dk-tile { transform: scale(var(--ts, 1)); transform-origin: 50% 50%; transition: transform .32s cubic-bezier(.25,1.35,.4,1), background .25s; }
  .dock.live > *, .dock.live .dk-tile { transition-duration: .14s; transition-timing-function: cubic-bezier(.2,.8,.3,1); }
  .dock .dk-item:hover { z-index: 2; }
  .dock .dk-item:focus-visible .dk-tile { --ts: 1.18; }
}

/* ---------- Greenlife screens (grocery shopping app) ---------- */
.gl-app { --ph-bg: #fff; --ph-ink: #404E5A; font-family: "Open Sans", system-ui, sans-serif !important; --gl: #5BC34A; }
.gl-app .ph-status { color: #404E5A; }
.gl-body { flex: 1; min-height: 0; padding: calc(var(--pw) * .04) calc(var(--pw) * .08) calc(var(--pw) * .05); display: flex; flex-direction: column; gap: calc(var(--pw) * .03); color: #404E5A; font-size: calc(var(--pw) * .034); }
.gl-mark { color: #6CB33F; width: calc(var(--pw) * .2); height: auto; }
.gl-splash { align-items: center; justify-content: center; }
.gl-ic { width: calc(var(--pw) * .055); height: calc(var(--pw) * .055); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.gl-auth { position: relative; justify-content: center; }
.gl-h { text-align: center; color: var(--gl); font-size: calc(var(--pw) * .052); margin-bottom: calc(var(--pw) * .1); }
.gl-x { position: absolute; right: calc(var(--pw) * .06); top: calc(var(--pw) * .04); color: #9AA6B2; }
.gl-in { display: flex; align-items: center; gap: calc(var(--pw) * .03); background: #EFF2F6; border-radius: 6px; padding: calc(var(--pw) * .04) calc(var(--pw) * .04); color: #9AA6B2; font-size: calc(var(--pw) * .032); }
.gl-small { text-align: center; color: #9AA6B2; font-size: calc(var(--pw) * .028); }
.gl-btn { display: grid; place-items: center; margin-top: calc(var(--pw) * .1); border-radius: 99px; background: var(--gl); color: #fff; padding: calc(var(--pw) * .042) 0; font-weight: 600; letter-spacing: .06em; font-size: calc(var(--pw) * .03); box-shadow: 0 12px 22px -14px var(--gl); }
.gl-foot { margin-top: auto; text-align: center; font-size: calc(var(--pw) * .027); font-weight: 600; letter-spacing: .1em; color: #9AA6B2; }
.gl-onb { align-items: center; justify-content: center; text-align: center; }
.gl-onb p { max-width: 80%; color: #748A9D; line-height: 1.45; }
.gl-blob { position: relative; width: calc(var(--pw) * .56); aspect-ratio: 1; border-radius: 50%; background: #EEFBE9; display: grid; place-items: center; margin-bottom: calc(var(--pw) * .08); }
.gl-blob span { font-size: calc(var(--pw) * .2); filter: saturate(.9); }
.gl-blob em { position: absolute; font-style: normal; color: var(--gl); font-size: calc(var(--pw) * .05); }
.gl-blob em:nth-of-type(1) { left: 14%; top: 60%; } .gl-blob em:nth-of-type(2) { right: 12%; top: 22%; }
.gl-dots { display: flex; gap: 6px; margin-top: calc(var(--pw) * .06); } .gl-dots i { width: 6px; height: 6px; border-radius: 50%; background: #D5DCE3; } .gl-dots i.on { background: #748A9D; }
.gl-num { color: var(--gl); font-size: calc(var(--pw) * .08); font-weight: 600; }
.gl-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; color: #9AA6B2; }
.gl-top b { font-weight: 400; color: #748A9D; font-size: calc(var(--pw) * .036); } .gl-top > :last-child { justify-self: end; }
.gl-hero { display: grid; place-items: center; font-size: calc(var(--pw) * .3); line-height: 1.15; margin-top: calc(var(--pw) * .03); }
.gl-cat { text-align: center; font-size: calc(var(--pw) * .055); color: #404E5A; } .gl-sub { text-align: center; color: #9AA6B2; font-size: calc(var(--pw) * .028); margin-top: calc(var(--pw) * -.03); }
.gl-tiles { display: grid; grid-auto-flow: column; grid-auto-columns: 42%; gap: calc(var(--pw) * .03); overflow: hidden; margin-right: calc(var(--pw) * -.08); }
.gl-tile { aspect-ratio: .95; border-radius: 6px; display: grid; place-items: center; align-content: center; gap: 4px; color: #fff; font-size: calc(var(--pw) * .03); font-weight: 600; }
.gl-tile i { font-style: normal; font-size: calc(var(--pw) * .1); }
.gl-tabs { margin: auto calc(var(--pw) * .06) calc(var(--pw) * .05); display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; justify-items: center; color: #9AA6B2; }
.gl-tabs span { position: relative; } .gl-tabs span.on { color: var(--gl); }
.gl-tabs sup { position: absolute; right: -6px; bottom: -4px; width: 13px; height: 13px; border-radius: 50%; background: var(--gl); color: #fff; font-size: 8px; display: grid; place-items: center; }
.gl-tabs b { width: calc(var(--pw) * .12); height: calc(var(--pw) * .12); border-radius: 50%; background: #748A9D; color: #fff; display: grid; place-items: center; font-weight: 300; font-size: calc(var(--pw) * .075); }
.gl-pick { background: #F2F4F7; border-radius: 8px; padding: calc(var(--pw) * .04); display: grid; gap: 6px; color: #9AA6B2; font-size: calc(var(--pw) * .028); }
.gl-wheel { display: grid; grid-template-columns: 1fr 1fr; text-align: center; } .gl-wheel span { display: grid; gap: 3px; }
.gl-wheel i { font-style: normal; opacity: .6; } .gl-wheel b { color: #404E5A; font-weight: 600; }
.gl-pick em { font-style: normal; justify-self: end; color: #404E5A; }
.gl-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: calc(var(--pw) * .025); }
.gl-rows li { display: flex; align-items: center; gap: calc(var(--pw) * .03); background: #F5F7F9; border-radius: 6px; padding: calc(var(--pw) * .025) calc(var(--pw) * .03); }
.gl-rows li > i { font-style: normal; font-size: calc(var(--pw) * .06); } .gl-rows span { flex: 1; display: grid; line-height: 1.25; }
.gl-rows small { color: #9AA6B2; font-size: calc(var(--pw) * .025); } .gl-rows em { font-style: normal; }
.gl-sum { display: grid; gap: 3px; color: #748A9D; font-size: calc(var(--pw) * .03); } .gl-sum p { display: flex; justify-content: space-between; }
.gl-sum .tot { color: #404E5A; font-weight: 600; font-size: calc(var(--pw) * .042); }
.gl-sum + .gl-btn { margin-top: calc(var(--pw) * .02); }
.gl-chat { display: grid; gap: calc(var(--pw) * .03); margin-top: calc(var(--pw) * .04); font-size: calc(var(--pw) * .03); line-height: 1.4; }
.gl-chat p { max-width: 78%; padding: calc(var(--pw) * .03) calc(var(--pw) * .04); border-radius: 10px; }
.gl-chat .them { background: #EFF2F6; color: #404E5A; border-bottom-left-radius: 3px; }
.gl-chat .me { background: var(--gl); color: #fff; justify-self: end; border-bottom-right-radius: 3px; }
.gl-stage { background: radial-gradient(120% 120% at 0% 0%, #2BD066, #078F3D 75%); }
.gl-brand .gl-mark { width: 70px; height: auto; color: #fff; }
.gl-brand b { font-family: "Open Sans", system-ui, sans-serif; font-weight: 600; letter-spacing: -.02em; }
.gl-flow .gl-lane { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.gl-flow .gl-lane > p { color: var(--muted); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.gl-flow .gl-lane > div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.gl-flow .gl-lane span { padding: 8px 14px; border-radius: 8px; background: var(--card); border: 1px solid var(--line); font-weight: 600; font-size: 15px; }
.gl-flow .gl-lane span.key { background: #09B44D; border-color: #09B44D; color: #fff; }
.gl-flow .gl-lane span.end { border-radius: 99px; }
.gl-flow .gl-lane i { font-style: normal; color: var(--muted); }
@media (max-width: 600px) { .gl-flow .gl-lane { grid-template-columns: 1fr; gap: 8px; } }

/* Dock minimise (iOS style): scrolling down folds the dock into a round N-mark button;
   scrolling up, hovering, focusing or tapping the button opens it again (site.js toggles .mini) */
.dock { transition: padding .45s var(--ease), gap .45s var(--ease), border-radius .45s var(--ease), box-shadow .45s var(--ease); }
.dock .dk-item, .dock .dk-sep, .dock .dk-hire { transition: width .45s var(--ease), height .45s var(--ease), max-width .45s var(--ease), margin .45s var(--ease), padding .45s var(--ease), opacity .3s, transform .32s cubic-bezier(.25,1.35,.4,1); }
.dk-hire { max-width: 160px; overflow: hidden; white-space: nowrap; }
.dock.mini { gap: 0; padding: 5px; border-radius: 999px; }
.dock.mini > :not(.dk-mark) { width: 0; max-width: 0; margin: 0; padding-left: 0; padding-right: 0; opacity: 0; overflow: hidden; pointer-events: none; }
.dock.mini .dk-sep { margin: 0; }
.dock.mini .dk-mark { display: block; }
.dock.mini .dk-mark .dk-tile { border-radius: 50%; }
.dock.mini .dk-mark .dk-tip, .dock.mini .dk-item[aria-current="page"]::after { display: none; }
.dk-mark .dk-tile { transition: border-radius .45s var(--ease), transform .32s cubic-bezier(.25,1.35,.4,1), background .25s; }
@media (prefers-reduced-motion: reduce) { .dock, .dock > *, .dk-mark .dk-tile { transition: none !important; } }
/* Folding back is slower and softer than opening */
.dock.mini, .dock.mini > *, .dock.mini .dk-tile { transition-duration: .75s; transition-timing-function: cubic-bezier(.65, 0, .35, 1); }
.dock.mini > :not(.dk-mark) { transition-property: width, max-width, margin, padding, opacity; transition-duration: .75s, .75s, .75s, .75s, .35s; }
/* Fold without a snap: Hire me collapses through max-width (its real width is ~104px), never width:auto -> 0 */
.dk-hire { max-width: 112px; }
.dock.mini .dk-hire { width: auto; max-width: 0; }
/* While waiting to fold after a hover-open, hold the hover size so the fold is one motion */
@media (hover: hover) and (pointer: fine) and (min-width: 821px) and (prefers-reduced-motion: no-preference) {
  .dock.hold { padding: 13px 15px; }
  .dock.hold .dk-item { --s: 1.12; }
}
/* max-width must start from a number, not "none", or the fold snaps instead of animating */
.dock .dk-item, .dock .dk-sep { max-width: 80px; }
/* Opening: smooth and unhurried. The fast hover timing (.live) only touches transforms,
   never the sizes, so entering the dock no longer makes it pop open. */
.dock { --open: cubic-bezier(.22, 1, .36, 1); transition: padding .6s var(--open), gap .6s var(--open), border-radius .6s var(--open), box-shadow .6s var(--open); }
.dock .dk-item, .dock .dk-sep, .dock .dk-hire {
  transition: width .6s var(--open), height .6s var(--open), max-width .6s var(--open), margin .6s var(--open), padding .6s var(--open), opacity .4s ease .12s, transform .32s cubic-bezier(.25,1.35,.4,1); }
.dock.live > * {
  transition: width .6s var(--open), height .6s var(--open), max-width .6s var(--open), margin .6s var(--open), padding .6s var(--open), opacity .4s ease .12s, transform .14s cubic-bezier(.2,.8,.3,1); }
.dock.live .dk-tile { transition: transform .14s cubic-bezier(.2,.8,.3,1), background .25s, border-radius .6s var(--open); }
@media (prefers-reduced-motion: reduce) { .dock, .dock > *, .dock .dk-tile { transition: none !important; } }
/* beat the older .dock.live .dk-item rule (width .07s) so opening stays slow and smooth */
.dock.live .dk-item, .dock.live .dk-sep, .dock.live .dk-hire {
  transition: width .6s var(--open), height .6s var(--open), max-width .6s var(--open), margin .6s var(--open), padding .6s var(--open), opacity .4s ease .12s, transform .14s cubic-bezier(.2,.8,.3,1); }
/* folding back keeps its own gentle ease-in-out, icons fade out first */
.dock.mini .dk-item, .dock.mini .dk-sep, .dock.mini .dk-hire {
  transition: width .75s cubic-bezier(.65,0,.35,1), height .75s cubic-bezier(.65,0,.35,1), max-width .75s cubic-bezier(.65,0,.35,1), margin .75s cubic-bezier(.65,0,.35,1), padding .75s cubic-bezier(.65,0,.35,1), opacity .3s ease, transform .32s ease; }
@media (prefers-reduced-motion: reduce) { .dock .dk-item, .dock .dk-sep, .dock .dk-hire { transition: none !important; } }

/* ---------- Work cards, framed (no watermark word) ---------- */
.wgrid { gap: 28px; }
.wcard { gap: 0; padding: 10px; border-radius: 30px; background: var(--card); border: 1px solid var(--line);
  transition: border-color .5s var(--ease), box-shadow .6s var(--ease), transform .6s var(--ease); }
.wcard:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); box-shadow: var(--shadow); transform: translateY(-4px); }
.wcard .media { border-radius: 22px; aspect-ratio: 4 / 3; }
.wcard .badge { background: rgba(18,17,15,.42); color: #fff; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: none; border: 1px solid rgba(255,255,255,.18); }
.wcard-body { display: grid; gap: 10px; padding: 22px 16px 14px; }
.wcard-meta { display: flex; justify-content: flex-start; align-items: center; gap: 12px; }
.wcard-n { font: 500 12px/1 var(--mono); color: var(--accent); letter-spacing: .04em; }
.wcard .tags { font-size: 14px; text-align: left; color: var(--faint); }
.wcard-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wcard h3 { font-size: clamp(28px, 2.6vw, 38px); line-height: 1; }
.wcard-go { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); color: var(--text);
  transition: background .4s var(--ease), color .4s, border-color .4s, transform .5s var(--ease); }
.wcard-go svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wcard:hover .wcard-go { background: var(--btn); color: var(--btn-ink); border-color: var(--btn); transform: rotate(45deg); }
.wcard-body > p { font-size: 15.5px; line-height: 1.55; }
@media (max-width: 560px) {
  .wcard { padding: 8px; border-radius: 24px; }
  .wcard .media { border-radius: 18px; }
  .wcard-body { padding: 18px 12px 10px; }
  .wcard-go { width: 38px; height: 38px; }
}
/* list view: one clean row per project */
[data-view="list"] .wcard { padding: 26px 0; background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; transform: none; }
[data-view="list"] .wcard-body { display: flex; align-items: center; gap: 24px; flex: 1; padding: 0; }
[data-view="list"] .wcard-meta, [data-view="list"] .wcard-head { display: contents; }
[data-view="list"] .wcard-n { order: 1; }
[data-view="list"] .wcard h3 { order: 2; flex: 1; }
[data-view="list"] .wcard .tags { order: 3; text-align: right; }
[data-view="list"] .wcard-go { order: 4; }
@media (max-width: 560px) { [data-view="list"] .wcard .tags { display: none; } }
@media (prefers-reduced-motion: reduce) { .wcard, .wcard-go { transition: none; } .wcard:hover { transform: none; } .wcard:hover .wcard-go { transform: none; } }

/* ---------- FreshBit (screens are pre-framed press renders, transparent around the device) ---------- */
.fb-scene { background: radial-gradient(120% 120% at 0% 0%, #DDFB86, #C8F550 45%, #8FC21F); }
.ks-mini.fb-mini img { width: clamp(150px, 15vw, 200px); height: auto; filter: drop-shadow(0 24px 30px rgba(14,26,18,.28)); }
.ks-mini.fb-mini img:nth-child(2) { margin-bottom: -10%; }
.wcard .ks-mini.fb-mini img { pointer-events: none; }
.kit-stage.fb-stage { background: radial-gradient(120% 120% at 0% 0%, #DDFB86, #C8F550 50%, #9BCB2C); }
.fb-brand { color: #0E1A12; }
.fb-brand b { font-family: "Montserrat", var(--display); font-weight: 800; letter-spacing: -.03em; }
.fb-brand span { opacity: 1; color: #24331F; }
.fb-shot { margin: 0; flex: 0 0 auto; scroll-snap-align: start; display: grid; gap: 10px; justify-items: center; }
.fb-shot img { width: clamp(220px, 21vw, 270px); height: auto; display: block; filter: drop-shadow(0 30px 40px rgba(14,26,18,.22)); }
.fb-shot figcaption { font: 500 15px/1.3 var(--body); color: var(--muted); text-align: center; }
.kit-stage .ks-phones .fb-shot:nth-child(2) { transform: translateY(-36px); }
.kit-stage .fb-shot figcaption { display: none; }
@media (max-width: 860px) { .kit-stage .ks-phones .fb-shot:nth-child(2) { display: none; } }
.fb-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.fb-step { padding: 26px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.fb-step .mono { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.fb-step h3 { font-size: clamp(24px, 2.2vw, 30px); }
.fb-step p:not(.mono) { color: var(--muted); font-size: 16px; line-height: 1.55; }
.fb-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.fb-chips span { font: 600 13px/1 var(--body); padding: 8px 11px; border-radius: 999px; background: #C8F550; color: #0E1A12; }
@media (max-width: 860px) { .fb-steps { grid-template-columns: 1fr; } }
.fb-concepts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.fb-concept { display: grid; gap: 8px; align-content: start; padding: 18px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.fb-concept i { display: grid; place-items: center; aspect-ratio: 1; border-radius: 18px; background: #C8F550; }
.fb-concept i img { width: 46%; height: auto; }
.fb-concept b { font: 600 18px/1.2 var(--display); }
.fb-concept span { color: var(--muted); font-size: 14.5px; line-height: 1.45; }
.fb-concept.on { border-color: #7FB800; box-shadow: 0 0 0 1px #7FB800 inset; }
@media (max-width: 860px) { .fb-concepts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fb-icons { display: flex; align-items: center; gap: 18px; margin-top: 22px; flex-wrap: wrap; }
.fb-icons img { width: 96px; height: 96px; border-radius: 22px; }
.fb-icons p { flex: 1 1 280px; color: var(--muted); font-size: 16px; line-height: 1.55; max-width: 60ch; }
.stack .shot.fb-st { background: none; box-shadow: none; border-radius: 0; overflow: visible; aspect-ratio: 1 / 2; }
.stack .shot.fb-st img { object-fit: contain; filter: drop-shadow(0 30px 40px rgba(0,0,0,.25)); }
.kit .kit-note + .kit-block { margin-top: 36px; }


/* ---------- FreshBit in My apps (home): real screens, light and dark ---------- */
.rel-stage.fb-rel { background: radial-gradient(120% 120% at 0% 0%, #DDFB86, #C8F550 45%, #8FC21F); border-color: transparent; }
.rel-stage.fb-rel::before { display: none; }
.fb-pair { display: flex; gap: clamp(12px, 2vw, 22px); align-items: flex-end; justify-content: center; }
.fb-pair .fb-shot img { width: clamp(150px, 17vw, 230px); height: auto; filter: drop-shadow(0 24px 30px rgba(14, 26, 18, .28)); }
.fb-pair .fb-shot:nth-child(2) { margin-bottom: -7%; }
.rel-stage.fb-rel .demo-hint { color: #24361A; }
.rel-stage.fb-rel .demo-hint::before { background: #0E1A12; animation: none; }
.store.fb-site small { opacity: .75; }
@media (max-width: 560px) { .fb-pair .fb-shot:nth-child(2) { display: none; } .fb-pair .fb-shot img { width: min(230px, 62vw); } }
/* FreshBit rebrand, 19 Nov 2026: violet layers on black, lime on top */
.fb-scene { background: radial-gradient(60% 55% at 82% 14%, #DBFF63 0%, #C8F550 30%, transparent 62%), radial-gradient(90% 80% at 30% 40%, #5B2BFF 0%, #4B1FFF 40%, transparent 75%), #0A0A0C; }
.kit-stage.fb-stage { background: radial-gradient(42% 60% at 88% 12%, #DBFF63 0%, #C8F550 32%, transparent 64%), radial-gradient(80% 90% at 20% 55%, #5B2BFF 0%, #4B1FFF 38%, transparent 76%), #0A0A0C; }
.fb-brand { color: #fff; }
.fb-brand span { color: rgba(255,255,255,.82); }
.fb-concept.on { border-color: #5B2BFF; box-shadow: 0 0 0 1px #5B2BFF inset; }
:root[data-theme="dark"] .fb-concept.on { border-color: #6E45FF; box-shadow: 0 0 0 1px #6E45FF inset; }
.ks-mini.fb-mini img { filter: drop-shadow(0 24px 30px rgba(0,0,0,.45)); }
/* FreshBit real assets: shown whole, never cropped (no object-fit cover, no clipping radius) */
.fb-phone { margin: 0; flex: 0 0 auto; display: grid; gap: 10px; justify-items: center; }
.fb-phone img { width: clamp(220px, 21vw, 270px); height: auto; display: block; border-radius: 0; box-shadow: 0 30px 60px -28px rgba(10,10,12,.55), 0 0 0 1px rgba(255,255,255,.06); }
.fb-phone figcaption { font: 500 15px/1.3 var(--body); color: var(--muted); }
.kit-stage .ks-phones .fb-phone:nth-child(2) { transform: translateY(-36px); }
.kit-stage .fb-phone figcaption { display: none; }
@media (max-width: 860px) { .kit-stage .ks-phones .fb-phone:nth-child(2) { display: none; } }
.fb-row { justify-content: center; }
.fb-board img { display: block; width: 100%; height: auto; max-width: 1040px; margin: 0 auto; }
.fb-icons img { width: 120px; height: 120px; border-radius: 0; }
.ks-mini.fb-mini img { border-radius: 0; }
.stack .shot.fb-st { aspect-ratio: 460 / 1000; }
.stack .shot.fb-st img { object-fit: contain; }
.app-id img[src*="fb2-icon"] { background: none; }
.fb-brand img, .app-id img[src*="fb2-icon"] { border-radius: 0; box-shadow: none; }
/* iPhone 17 Pro frame for FreshBit's real screen renders (render and screen share the 402:874 shape, so nothing is cut but the rounded corners) */
.iph { --w: 100%; width: var(--w); aspect-ratio: 71.9 / 150; padding: 3.7%; border-radius: 18% / 8.6%; background: linear-gradient(145deg, #4A4A52, #1B1B20 40%, #2E2E35 70%, #121216); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.14), inset 0 0 0 4px #0B0B0D, 0 34px 60px -30px rgba(10,10,12,.7); }
.iph-scr { position: relative; width: 100%; height: 100%; border-radius: 15.5% / 7.2%; overflow: hidden; background: #000; }
.iph-scr img { display: block; width: 100%; height: 100%; object-fit: contain; }
.iph-island { position: absolute; left: 34.45%; top: 1.26%; width: 31.1%; height: 4.23%; border-radius: 999px; background: #000; }
.fb-phone .iph { width: clamp(220px, 21vw, 270px); }
.fb-phone img { box-shadow: none; }
.ks-mini.fb-mini .iph { width: clamp(140px, 14vw, 190px); }
.ks-mini.fb-mini .iph:nth-child(2) { margin-bottom: -10%; }
.stack .shot.fb-st { aspect-ratio: 71.9 / 150; border-radius: 0; background: none; box-shadow: none; overflow: visible; }
.stack .shot.fb-st .iph { height: 100%; }
.fb-concept i.now { background: none; }
.fb-concept i.now img { width: 100%; height: auto; }

/* FreshBit brand v3, 23 Nov 2026: electric violet leads; lime is a small accent (Confirmed, the leaf, a glint) */
.fb-scene { background: radial-gradient(14% 18% at 92% 8%, rgba(219,255,99,.75) 0%, transparent 70%), radial-gradient(70% 80% at 84% 14%, #5B2BFF 0%, rgba(91,43,255,.45) 45%, transparent 75%), radial-gradient(60% 70% at 8% 100%, #4B1FFF 0%, transparent 70%), #0A0A0C; }
.kit-stage.fb-stage { background: radial-gradient(12% 18% at 94% 8%, rgba(219,255,99,.7) 0%, transparent 70%), radial-gradient(70% 90% at 86% 12%, #5B2BFF 0%, rgba(91,43,255,.4) 45%, transparent 76%), radial-gradient(60% 70% at 10% 100%, #4B1FFF 0%, transparent 72%), #0A0A0C; }
.rel-stage.fb-rel { background: radial-gradient(12% 18% at 94% 8%, rgba(219,255,99,.7) 0%, transparent 70%), radial-gradient(80% 90% at 80% 20%, #5B2BFF 0%, rgba(91,43,255,.4) 45%, transparent 76%), #0A0A0C; }
.fb-chips span { background: #5B2BFF; color: #fff; }
.fb-concept i { background: #0A0A0C; }
