/*
 * Phase-2 polish layer — retired in design system v11.
 *
 * Every visual rule now lives in /assets/styles.css. This file is kept because
 * the Cloudflare build fingerprints it and older cached copies of app.js
 * still request it. Keep it small.
 */

/* Touch devices do not use pointer tilt. Clear compositor hints so mobile
   WebKit does not keep a GPU layer for every tilt-capable card. */
@media (hover: none), (pointer: coarse) {
  [data-tilt] {
    will-change: auto !important;
    transform: none !important;
  }
}

/* ===== v12 "showpiece" layer (homepages only; this file is loaded by the 12 home pages) =====
   Same identity (paper / ink / gold, 3D icons); adds depth, contrast moments and motion.
   No HTML changes. Motion only under prefers-reduced-motion: no-preference. */
@property --lv-p { syntax: "<percentage>"; inherits: false; initial-value: 0%; }

/* --- hero --- */
.home-page .hero-sales .hero-sales-bg::before {
  content: "" !important; display: block !important; position: absolute; inset: 0; opacity: 1; transform: none; filter: none; animation: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--pk-ink) 16%, transparent) 1px, transparent 1.6px) 0 0 / 22px 22px !important;
  -webkit-mask-image: radial-gradient(62% 78% at 50% 34%, #000 10%, transparent 76%); mask-image: radial-gradient(62% 78% at 50% 34%, #000 10%, transparent 76%);
}
.home-page .hero-sales h1 span {
  background: linear-gradient(100deg, #7a5513 0%, #b9862c 28%, #f3d98f 44%, #b9862c 60%, #7a5513 100%) var(--lv-p) 0 / 260% 100% !important;
  -webkit-background-clip: text !important; background-clip: text !important;
}
:root[data-theme="dark"] .home-page .hero-sales h1 span {
  background: linear-gradient(100deg, #d9a948 0%, #f0cf7c 28%, #fff6d8 44%, #f0cf7c 60%, #d9a948 100%) var(--lv-p) 0 / 260% 100% !important;
  -webkit-background-clip: text !important; background-clip: text !important;
}

/* --- platform picker --- */
.home-page .pk-pf[aria-current="true"] {
  border-color: transparent; color: var(--pk-card);
  background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--pk-gold-hi) 30%, transparent), transparent 60%), var(--pk-ink);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--pk-gold-hi) 70%, transparent), 0 22px 40px -22px color-mix(in srgb, var(--pk-ink) 70%, transparent);
}
:root[data-theme="dark"] .home-page .pk-pf[aria-current="true"] { color: #1a1205; background: linear-gradient(180deg, #f6dc8f, #d9a948); box-shadow: 0 0 0 1px #f6dc8f, 0 22px 40px -20px rgba(230, 190, 98, .55); }
:root[data-theme="dark"] .home-page .pk-pf[aria-current="true"]::after { filter: brightness(.22); }
.home-page .pk-pf[aria-current="true"] .pk-pf-desc { color: color-mix(in srgb, var(--pk-card) 68%, transparent); }
.home-page .pk-pf[aria-current="true"] img { transform: scale(1.08) rotate(-4deg); }
.home-page .pk-panel {
  border-color: transparent;
  background: linear-gradient(var(--pk-card), var(--pk-card)) padding-box,
    linear-gradient(135deg, color-mix(in srgb, var(--pk-gold-hi) 85%, transparent), var(--pk-line) 22%, var(--pk-line) 78%, color-mix(in srgb, var(--pk-gold) 60%, transparent)) border-box;
  box-shadow: var(--pk-shadow), 0 50px 90px -70px var(--pk-gold);
}
.home-page .pk-item > img, .home-page .pk-item .pk-ico { transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.home-page .pk-item:hover > img, .home-page .pk-item:hover .pk-ico, .home-page .pk-item:focus-visible > img, .home-page .pk-item:focus-visible .pk-ico { transform: scale(1.1) rotate(-5deg); }
.home-page .pk-item:hover .pk-price b, .home-page .pk-item:focus-visible .pk-price b { color: var(--pk-gold); }
.home-page .pk-item:active, .home-page .pk-pf:active { transform: scale(.975); }

/* --- contact card: the one ink moment near the top --- */
.home-page .home-contact .hero-contact {
  max-width: 700px; padding: 22px 22px 20px; border: 1px solid rgba(233, 196, 106, .34);
  background: radial-gradient(90% 130% at 50% -10%, rgba(233, 196, 106, .26), transparent 58%), linear-gradient(180deg, #1b1a17, #100f0e);
  box-shadow: 0 34px 60px -34px rgba(18, 17, 16, .7), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.home-page .home-contact .hcx-label { color: #f6f2e8; }
.home-page .home-contact .hcx:not(.hcx-tg) { border-color: rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .07); color: #f6f2e8; box-shadow: none; }
.home-page .home-contact .hcx:not(.hcx-tg):hover, .home-page .home-contact .hcx:not(.hcx-tg):focus-visible { background: rgba(255, 255, 255, .13); border-color: rgba(233, 196, 106, .55); }
.home-page .home-contact .hcx-tg { position: relative; overflow: hidden; box-shadow: 0 14px 28px -14px #229ed9; }
.home-page .home-contact .hcx-tg::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; transform: skewX(-20deg); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .38), transparent); pointer-events: none; }

/* --- steps --- */
.home-page .buy-steps-list li { transition: transform .3s cubic-bezier(.2, .8, .2, 1), border-color .25s, box-shadow .3s; }
.home-page .buy-steps-list li:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--pk-gold) 50%, transparent) !important; box-shadow: var(--pk-shadow-hi) !important; }
.home-page .buy-steps-list li:not(:last-child)::after { opacity: 1; height: 2px; background: repeating-linear-gradient(90deg, var(--pk-gold) 0 4px, transparent 4px 8px); }

/* --- trust: ink band with gold figures --- */
:root[data-theme="light"] .home-page main .home-trust {
  --bg: #0e0e0f; --bg-2: #151517; --bg-3: #1b1b1e; --card: #17171a; --sep: rgba(255, 255, 255, .08); --sep-2: rgba(255, 255, 255, .14);
  --text: #f4f1ea; --text-2: #b3ada2; --text-3: #8b867c; --shadow: inset 0 1px rgba(255, 255, 255, .05), 0 22px 44px -28px #000;
  --v-line: rgba(255, 255, 255, .1); --v-surface: #17171a;
}
html body.home-page main #reviews.home-trust {
  position: relative; margin-block: 28px 8px; padding-block: 64px; color: var(--text);
  background: radial-gradient(60% 50% at 50% 0%, rgba(233, 196, 106, .2), transparent 70%), #0e0e0f !important;
}
.home-page .home-trust .ht-head h2 { color: #f4f1ea; }
.home-page .home-trust .ht-head .eyebrow { color: #e9c46a !important; }
.home-page .home-trust :is(.rep-card, .review-bubble, .ht-videos) { border: 1px solid rgba(255, 255, 255, .09); background: #17171a !important; color: #f4f1ea; box-shadow: inset 0 1px rgba(255, 255, 255, .05), 0 22px 44px -28px #000 !important; }
.home-page .home-trust .rep-score, .home-page .home-trust .rep-score span {
  color: transparent !important; -webkit-text-fill-color: transparent; background: linear-gradient(180deg, #fbe7a8, #d9a948 60%, #b07d22); -webkit-background-clip: text; background-clip: text;
}
.home-page .home-trust .rep-score small { -webkit-text-fill-color: #b3ada2; color: #b3ada2 !important; background: none; }
.home-page .home-trust .rep-kpis > div { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .08); }
.home-page .home-trust :is(h3, b, strong, .review-bubble p) { color: #f4f1ea; }
.home-page .home-trust :is(.src, .disc, .proof-note, small, time, .rep-kpis span) { color: #b3ada2; }
.home-page .home-trust a:not(.btn) { color: #e9c46a; }
.home-page .home-trust .ht-score :is(.btn:not(.btn-primary), .proof-link) { border: 1px solid rgba(233, 196, 106, .4) !important; background: rgba(233, 196, 106, .1) !important; color: #f3d98f !important; box-shadow: none !important; }
.home-page .home-trust .review-bubble :is(span, small, time, em) { color: #b3ada2; }
.home-page .home-trust .review-bubble :is(b, strong, .who) { color: #f4f1ea; }

/* --- final call --- */
.home-page .home-final { padding: 26px 0 46px; }
.home-page .home-final .hf-btn { position: relative; min-height: 58px; padding-inline: 34px; font-size: 1.06rem; box-shadow: 0 22px 44px -20px var(--pk-gold); }

@media (max-width: 639px) {
  .home-page .home-contact .hero-contact { padding: 16px 12px 14px; }
  .home-page main .home-trust { padding-block: 44px; margin-block: 18px 4px; }
}

/* 2026-11-22 lighter site: only one-shot card pop kept; looping and scroll-linked motion removed (lag on phones). */
@media (prefers-reduced-motion: no-preference) {
  .home-page .pk-panel.is-active .pk-grid > .pk-item { animation: lv-pop .5s cubic-bezier(.2, .8, .2, 1) backwards; }
  .home-page .pk-grid > .pk-item:nth-child(2) { animation-delay: 30ms; }
  .home-page .pk-grid > .pk-item:nth-child(3) { animation-delay: 60ms; }
  .home-page .pk-grid > .pk-item:nth-child(4) { animation-delay: 90ms; }
  .home-page .pk-grid > .pk-item:nth-child(5) { animation-delay: 120ms; }
  .home-page .pk-grid > .pk-item:nth-child(6) { animation-delay: 150ms; }
  .home-page .pk-grid > .pk-item:nth-child(7) { animation-delay: 180ms; }
  .home-page .pk-grid > .pk-item:nth-child(8) { animation-delay: 210ms; }
  .home-page .pk-grid > .pk-item:nth-child(n+9) { animation-delay: 240ms; }
}
@keyframes lv-shimmer { 0%, 35% { --lv-p: 100%; } 100% { --lv-p: 0%; } }
@keyframes lv-pop { from { opacity: 0; transform: translateY(12px) scale(.97); } }
@keyframes lv-ping { 0% { box-shadow: 0 0 0 0 rgba(31, 168, 85, .6); } 100% { box-shadow: 0 0 0 12px rgba(31, 168, 85, 0); } }
@keyframes lv-sheen { 0%, 62% { left: -60%; } 100% { left: 130%; } }
@keyframes lv-dash { to { background-position: 8px 0; } }
@keyframes lv-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes lv-rise { from { opacity: 0; transform: translateY(44px) scale(.97); } to { opacity: 1; transform: none; } }

/* ===== v12 cinematic hero: platform icons orbit a large Telegram icon in real 3D =====
   Pure CSS (3D transforms + registered custom properties). Scrolling pushes the orbits outwards. */
@property --lv-a { syntax: "<angle>"; inherits: true; initial-value: 0deg; }
@property --lv-k { syntax: "<number>"; inherits: true; initial-value: 1; }

.home-page .hero-sales {
  --sc-h: clamp(250px, 31vw, 430px); --sc-r: clamp(138px, 33vw, 470px); --sc-c: clamp(104px, 14.5vw, 196px); --sc-i: clamp(40px, 6vw, 84px); --sc-tilt: -15deg;
  padding: 44px 0 calc(var(--sc-h) + 26px);
}
.home-page .hero-sales .hero-sales-bg {
  background:
    radial-gradient(34% 30% at 50% calc(100% - var(--sc-h) * .5), color-mix(in srgb, var(--pk-gold-hi) 55%, transparent), transparent 72%),
    radial-gradient(60% 46% at 50% calc(100% - var(--sc-h) * .5), var(--pk-gold-soft), transparent 74%),
    radial-gradient(70% 60% at 50% 0%, var(--pk-gold-soft), transparent 70%) !important;
}
/* slow light beams behind the centre piece */
.home-page .hero-sales .hero-sales-bg::after {
  content: "" !important; display: block !important; position: absolute; left: 50%; bottom: calc(var(--sc-h) * .5 + 26px); width: 1400px; height: 1400px; margin: 0 0 -700px -700px;
  opacity: 1; filter: none; border-radius: 50%; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, transparent 0 9deg, color-mix(in srgb, var(--pk-gold-hi) 30%, transparent) 12deg, transparent 15deg 30deg) !important;
  -webkit-mask-image: radial-gradient(closest-side, #000 8%, transparent 62%); mask-image: radial-gradient(closest-side, #000 8%, transparent 62%);
}
.home-page .hero-sales .pk-field {
  display: block !important; inset: auto 0 26px 0; height: var(--sc-h); perspective: 1300px; perspective-origin: 50% 46%; transform-style: preserve-3d;
}
/* orbit paths drawn in the same 3D space */
.home-page .hero-sales .pk-field::before, .home-page .hero-sales .pk-field::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: calc(var(--sc-r) * 2); height: calc(var(--sc-r) * 2); margin: calc(var(--sc-r) * -1) 0 0 calc(var(--sc-r) * -1);
  border-radius: 50%; border: 1px solid color-mix(in srgb, var(--pk-gold) 46%, transparent); transform: rotateX(calc(90deg + var(--sc-tilt))) scale(var(--lv-k));
  box-shadow: 0 0 40px color-mix(in srgb, var(--pk-gold-hi) 30%, transparent), inset 0 0 40px color-mix(in srgb, var(--pk-gold-hi) 18%, transparent);
}
.home-page .hero-sales .pk-field::after { transform: rotateX(calc(90deg + var(--sc-tilt))) scale(calc(var(--lv-k) * .58)); border-style: dashed; }

.home-page .hero-sales .pk-field img:nth-child(n) {
  display: block !important; left: 50%; right: auto; top: 50%; width: var(--sc-i); height: var(--sc-i); margin: calc(var(--sc-i) / -2) 0 0 calc(var(--sc-i) / -2);
  border-radius: 24%; opacity: 1; scale: none; animation: none; translate: none; backface-visibility: visible;
  filter: drop-shadow(0 16px 18px rgba(18, 17, 16, .3));
  --th: calc(var(--o) + var(--lv-a) * var(--dir));
  transform: rotateX(var(--sc-tilt)) rotateY(var(--th)) translateZ(calc(var(--sc-r) * var(--rk) * var(--lv-k))) rotateY(calc(var(--th) * -1)) rotateX(calc(var(--sc-tilt) * -1));
}
/* centre: Telegram, full-resolution art */
.home-page .hero-sales .pk-field img:nth-child(1) {
  width: var(--sc-c); height: var(--sc-c); margin: calc(var(--sc-c) / -2) 0 0 calc(var(--sc-c) / -2);
  transform: translateZ(0); filter: drop-shadow(0 34px 34px rgba(18, 17, 16, .4)) drop-shadow(0 0 46px color-mix(in srgb, var(--pk-gold-hi) 60%, transparent));
}
/* Large screens swap in the full-resolution art; phones keep the image that is already loaded. */
@media (min-width: 900px) { .home-page .hero-sales .pk-field img:nth-child(1) { content: url("/assets/pi3d-telegram.webp"); } }
/* inner orbit */
.home-page .hero-sales .pk-field img:nth-child(n+2):nth-child(-n+6) { --rk: .58; --dir: 1; width: calc(var(--sc-i) * .86); height: calc(var(--sc-i) * .86); margin: calc(var(--sc-i) * -.43) 0 0 calc(var(--sc-i) * -.43); }
.home-page .hero-sales .pk-field img:nth-child(2) { --o: 20deg; }
.home-page .hero-sales .pk-field img:nth-child(3) { --o: 92deg; }
.home-page .hero-sales .pk-field img:nth-child(4) { --o: 164deg; }
.home-page .hero-sales .pk-field img:nth-child(5) { --o: 236deg; }
.home-page .hero-sales .pk-field img:nth-child(6) { --o: 308deg; }
/* outer orbit, opposite direction */
.home-page .hero-sales .pk-field img:nth-child(n+7) { --rk: 1; --dir: -.6; }
.home-page .hero-sales .pk-field img:nth-child(7) { --o: 0deg; }
.home-page .hero-sales .pk-field img:nth-child(8) { --o: 60deg; }
.home-page .hero-sales .pk-field img:nth-child(9) { --o: 120deg; }
.home-page .hero-sales .pk-field img:nth-child(10) { --o: 180deg; }
.home-page .hero-sales .pk-field img:nth-child(11) { --o: 240deg; }
.home-page .hero-sales .pk-field img:nth-child(12) { --o: 300deg; }
:root[data-theme="dark"] .home-page .hero-sales .pk-field img:nth-child(n) { opacity: 1; }

@media (max-width: 899px) { .home-page .hero-sales { padding: 30px 0 calc(var(--sc-h) + 20px); } }
@media (max-width: 639px) {
  .home-page .hero-sales {
    --sc-h: 184px;
    --sc-r: clamp(120px, 36vw, 150px);
    --sc-c: clamp(84px, 24vw, 104px);
    --sc-tilt: -18deg;
    padding: 20px 0 calc(var(--sc-h) + 12px);
  }
  .home-page .hero-sales .pk-field { inset: auto 0 12px 0; perspective: 900px; }
}

/* Hero stays still (looping 3D orbit removed 2026-11-22); only a gentle float of the centre icon on large screens. */
@media (prefers-reduced-motion: no-preference) and (min-width: 900px) {
  .home-page .hero-sales .pk-field img:nth-child(1) { animation: lv-core 6s ease-in-out infinite; }
}
@keyframes lv-orbit { to { --lv-a: 360deg; } }
@keyframes lv-core { 50% { translate: 0 -10px; rotate: 3deg; } }
@keyframes lv-beams { to { transform: rotate(360deg); } }
@keyframes lv-fly { to { --lv-k: 2.3; opacity: 0; } }
@keyframes lv-copy { to { transform: translateY(70px); opacity: .25; } }

/* styles.css switches every animation and transition off site-wide; switch the few kept ones back on. */
@media (prefers-reduced-motion: no-preference) {
  .home-page .pk-panel.is-active .pk-grid > .pk-item { animation-duration: .5s !important; }
  .home-page :is(.pk-pf, .pk-item, .buy-steps-list li, .hcx) { transition-duration: .2s !important; }
}
@media (prefers-reduced-motion: no-preference) and (min-width: 900px) {
  .home-page .hero-sales .pk-field img:nth-child(1) { animation-duration: 6s !important; animation-iteration-count: infinite !important; }
}

/* Light theme: the hero is an ink stage (same black & gold as the inner-page heroes); the picker rises over it as a paper sheet. */
html:root[data-theme="light"] body.home-page .hero-sales.hero-sales {
  --pk-ink: #f6f2e8; --pk-mute: #b3ada2; --pk-card: #17171a; --pk-soft: #131315; --pk-line: rgba(255, 255, 255, .08); --pk-line2: rgba(255, 255, 255, .16);
  --pk-gold: #e6be62; --pk-gold-hi: #f6dc8f; --pk-gold-soft: rgba(230, 190, 98, .12); --pk-shadow: inset 0 1px rgba(255, 255, 255, .05), 0 18px 40px -26px #000;
  background: linear-gradient(180deg, #131214, #09090a) !important; padding-bottom: calc(var(--sc-h) + 62px);
}
html:root[data-theme="light"] body.home-page .hero-sales h1 { color: #fbf7ee !important; }
html:root[data-theme="light"] body.home-page .hero-sales h1 span {
  background: linear-gradient(100deg, #d9a948 0%, #f0cf7c 28%, #fff6d8 44%, #f0cf7c 60%, #d9a948 100%) var(--lv-p) 0 / 260% 100% !important;
  -webkit-background-clip: text !important; background-clip: text !important;
}
html:root[data-theme="light"] body.home-page .hero-sales .hero-sales-copy .eyebrow { background: rgba(255, 255, 255, .06); border-color: rgba(236, 198, 104, .3); color: #d9d2c4 !important; box-shadow: none; }
html:root[data-theme="light"] body.home-page .hero-sales .hero-sales-copy .eyebrow::before { background-color: #ecc668 !important; }
html:root[data-theme="light"] body.home-page .hero-sales .pk-field { bottom: 62px; }
html:root[data-theme="light"] body.home-page .hero-sales .pk-field img:nth-child(n) { filter: drop-shadow(0 18px 20px rgba(0, 0, 0, .6)); }
html:root[data-theme="light"] body.home-page .hero-sales .pk-field img:nth-child(1) { filter: drop-shadow(0 34px 34px rgba(0, 0, 0, .7)) drop-shadow(0 0 54px rgba(246, 220, 143, .5)); }
html:root[data-theme="light"] body.home-page { background-image: linear-gradient(#131214, #131214); background-size: 100% 150px; background-repeat: no-repeat; }
html:root[data-theme="light"] body.home-page main > .services-hub { position: relative; margin-top: -36px; padding-top: 44px; border-radius: 36px 36px 0 0; background: var(--pk-bg, #f6f4ef); box-shadow: 0 -24px 50px -30px rgba(0, 0, 0, .55); }
@media (max-width: 639px) {
  html:root[data-theme="light"] body.home-page .hero-sales.hero-sales { padding-bottom: calc(var(--sc-h) + 27px); }
  html:root[data-theme="light"] body.home-page .hero-sales .pk-field { bottom: 27px; }
  html:root[data-theme="light"] body.home-page main > .services-hub { margin-top: -26px; padding-top: 30px; border-radius: 26px 26px 0 0; }
}


/* ===== v13 unified first screen (2026-11-21): seamless ink-to-paper dissolve + floating picker =====
   1. Eliminates the hard rounded paper slab cutoff; the obsidian ink stage dissolves seamlessly
      into the warm paper canvas behind the floating platform picker (both light and dark themes).
   2. Compacts the hero (eyebrow removed from index.html) and refines the 3D orbit tilt and light
      feathering so H1, orbiting icons, picker heading and all 10 platform cards fit cleanly on
      1366x768 without scrolling, icon overlap, or clipped rays, and stay compact on phones.
   3. Preserves all v12 animations under prefers-reduced-motion: no-preference. */

/* --- shared first-screen geometry (both themes) --- */
.home-page .hero-sales.hero-sales {
  --sc-h: clamp(196px, 16.4vw, 234px);
  --sc-r: clamp(130px, 24vw, 356px);
  --sc-c: clamp(92px, 8.6vw, 126px);
  --sc-i: clamp(36px, 3.85vw, 54px);
  --sc-tilt: -11deg;
  --sc-b: 32px;
  padding: 16px 0 calc(var(--sc-h) + var(--sc-b));
}
.home-page .hero-sales h1 {
  margin-top: 0;
  max-width: 16em;
  font-size: clamp(2.05rem, 3.45vw, 3.2rem);
  line-height: 1.04;
}
.home-page .hero-sales .pk-field {
  inset: auto 0 var(--sc-b) 0;
  perspective: 1380px;
  perspective-origin: 50% 46%;
}
/* Glows and rotating rays fade to 0 opacity strictly inside the hero bounds (zero clipped edge). */
.home-page .hero-sales .hero-sales-bg {
  background:
    radial-gradient(28% 38% at 50% calc(100% - var(--sc-b) - var(--sc-h) * .5), color-mix(in srgb, var(--pk-gold-hi) 42%, transparent), transparent 68%),
    radial-gradient(50% 44% at 50% calc(100% - var(--sc-b) - var(--sc-h) * .5), color-mix(in srgb, var(--pk-gold-hi) 15%, transparent), transparent 68%),
    radial-gradient(66% 42% at 50% 0%, color-mix(in srgb, var(--pk-gold) 12%, transparent), transparent 70%) !important;
}
.home-page .hero-sales .hero-sales-bg::before {
  -webkit-mask-image: radial-gradient(62% 60% at 50% 42%, #000 10%, transparent 70%);
  mask-image: radial-gradient(62% 60% at 50% 42%, #000 10%, transparent 70%);
}
.home-page .hero-sales .hero-sales-bg::after {
  --ray-r: calc(var(--sc-h) * .5 + var(--sc-b) - 4px);
  top: auto;
  right: auto;
  bottom: calc(var(--sc-b) + var(--sc-h) * .5);
  width: calc(var(--ray-r) * 2);
  height: calc(var(--ray-r) * 2);
  margin: 0 0 calc(var(--ray-r) * -1) calc(var(--ray-r) * -1);
  -webkit-mask-image: radial-gradient(closest-side, #000 8%, rgba(0, 0, 0, .42) 48%, transparent 94%);
  mask-image: radial-gradient(closest-side, #000 8%, rgba(0, 0, 0, .42) 48%, transparent 94%);
}

/* Standard laptop heights (1366x768, 1280x720): keep all 10 platform cards plus panel peek visible. */
@media (min-width: 900px) and (max-height: 790px) {
  .home-page .hero-sales.hero-sales {
    --sc-h: clamp(188px, 15.6vw, 212px);
    --sc-r: clamp(128px, 23.5vw, 332px);
    --sc-c: clamp(88px, 8.2vw, 114px);
    --sc-i: clamp(36px, 3.65vw, 50px);
    --sc-b: 28px;
    padding-top: 12px;
  }
  .home-page .hero-sales h1 {
    font-size: clamp(2rem, 3.35vw, 2.95rem);
  }
}

/* --- floating header alignment on desktop homepages --- */
@media (min-width: 1100px) {
  html:root[data-theme="light"] body.home-page .site-header.site-header,
  html:root[data-theme="dark"] body.home-page .site-header.site-header {
    top: 10px;
    margin-top: 10px;
  }
  html:root[data-theme="light"] body.home-page .site-header.site-header .nav-shell,
  html:root[data-theme="dark"] body.home-page .site-header.site-header .nav-shell {
    min-height: 60px;
    height: 60px;
  }
}

/* --- platform picker joined seamlessly under the orbit --- */
.home-page main > .services-hub {
  position: relative;
  z-index: 2;
  margin-top: -2px;
  padding-top: 8px;
  padding-bottom: 54px;
  border-radius: 0;
  box-shadow: none;
}
.home-page .pk-head {
  position: relative;
  max-width: 660px;
  margin: 0 auto 14px;
}
.home-page .pk-head::before {
  content: "";
  display: block;
  width: 58px;
  height: 2px;
  margin: 0 auto 11px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(246, 220, 143, .82), transparent);
  box-shadow: 0 0 16px rgba(233, 196, 106, .5);
}
.home-page .pk-head h2 {
  margin: 0 0 4px;
  font-size: clamp(1.32rem, 2.05vw, 1.72rem);
  line-height: 1.15;
}
.home-page .pk-head p {
  font-size: .88rem;
  line-height: 1.4;
}
.home-page .pk-platforms {
  gap: 10px;
  margin: 0 0 16px;
}
@media (min-width: 900px) {
  .home-page .pk-pf {
    padding-block: 10px;
    padding-inline: 11px 13px;
    column-gap: 11px;
    border-radius: 16px;
  }
  .home-page .pk-pf img {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }
  .home-page .pk-pf-name { font-size: .92rem; }
  .home-page .pk-pf-desc { font-size: .73rem; }
}

/* --- light theme: unified obsidian header + smooth ink-to-paper atmospheric dissolve --- */
html:root[data-theme="light"] body.home-page {
  background-image: linear-gradient(180deg, #0d0c0f, #0e0d10);
  background-size: 100% 180px;
  background-repeat: no-repeat;
}
html:root[data-theme="light"] body.home-page .site-header.site-header {
  color-scheme: dark;
  --bg: #121114; --bg-2: #1b1a1f; --bg-3: #242329; --card: #16151a; --input: #1f1e24;
  --sep: rgba(255, 255, 255, .09); --sep-2: rgba(233, 196, 106, .22);
  --text: #f6f2e8; --text-2: #c6bfb1; --text-3: #8f897e; --tg-ink: #f0cf7c;
  --v-line: rgba(255, 255, 255, .1); --v-line-2: rgba(233, 196, 106, .22);
  color: #f6f2e8;
  border-color: rgba(233, 196, 106, .2);
  background: rgb(15, 14, 18); /* opaque: no blur since 2026-11-22, so see-through text showed under it */
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 18px 40px -24px rgba(0, 0, 0, .85);
}
html:root[data-theme="light"] body.home-page .site-header.site-header.scrolled {
  background: rgb(14, 13, 17);
  border-color: rgba(233, 196, 106, .26);
}
html:root[data-theme="light"] body.home-page .site-header.site-header .nav-shell {
  background-color: transparent;
  border-radius: inherit;
}
html:root[data-theme="light"] body.home-page .site-header .brand-mark {
  background-image: url("/assets/brand-mark-ribbon.svg");
}
html:root[data-theme="light"] body.home-page .site-header .brand-copy > span {
  color: #fbf7ee;
}
html:root[data-theme="light"] body.home-page .site-header .brand-copy > span b {
  background-image: linear-gradient(100deg, #f3d27a, #c99a3e);
}
html:root[data-theme="light"] body.home-page .hero-sales.hero-sales {
  background: linear-gradient(180deg, #0e0d10 0%, #121114 55%, #0f0e11 100%) !important;
  padding: 16px 0 calc(var(--sc-h) + var(--sc-b));
}
@media (min-width: 900px) and (max-height: 790px) {
  html:root[data-theme="light"] body.home-page .hero-sales.hero-sales {
    padding-top: 12px;
  }
}
html:root[data-theme="light"] body.home-page .hero-sales .pk-field {
  bottom: var(--sc-b);
}
/* Radial gold glow is centered inside the picker so its alpha is strictly 0 at y = 0 (zero cut). */
html:root[data-theme="light"] body.home-page main > .services-hub {
  margin-top: -2px;
  padding-top: 8px;
  border-radius: 0;
  box-shadow: none;
  background:
    radial-gradient(56% 118px at 50% 120px, rgba(233, 196, 106, .16) 0%, rgba(233, 196, 106, .05) 52%, transparent 96%),
    linear-gradient(180deg,
      #0f0e11 0px,
      #121114 48px,
      #191718 90px,
      #2d2822 134px,
      #5c5346 178px,
      #a59b8b 220px,
      #dad3c7 258px,
      #f0ece3 292px,
      #f6f4ef 322px
    );
}
html:root[data-theme="light"] body.home-page main > .services-hub .pk-head h2 {
  color: #fbf7ee;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .45);
}
html:root[data-theme="light"] body.home-page main > .services-hub .pk-head p {
  color: #c8c0b3;
}
html:root[data-theme="light"] body.home-page .pk-pf:not([aria-current="true"]) {
  border-color: rgba(233, 196, 106, .24);
  background: linear-gradient(180deg, rgba(255, 254, 251, .97), rgba(251, 248, 242, .94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .95),
    0 14px 30px -16px rgba(10, 9, 8, .48),
    0 2px 6px -2px rgba(10, 9, 8, .14);
}
html:root[data-theme="light"] body.home-page .pk-pf:not([aria-current="true"]):hover,
html:root[data-theme="light"] body.home-page .pk-pf:not([aria-current="true"]):focus-visible {
  border-color: rgba(212, 166, 66, .72);
  background: #ffffff;
  box-shadow:
    inset 0 1px 0 #ffffff,
    0 20px 38px -16px rgba(10, 9, 8, .52),
    0 0 0 1px rgba(233, 196, 106, .35);
}
html:root[data-theme="light"] body.home-page .pk-pf[aria-current="true"] {
  background:
    radial-gradient(125% 145% at 0% 0%, rgba(246, 220, 143, .30), transparent 62%),
    linear-gradient(180deg, #1b1a1d, #0f0e11);
  box-shadow:
    0 0 0 1.5px rgba(246, 220, 143, .82),
    0 20px 38px -16px rgba(10, 9, 8, .72),
    0 0 28px -8px rgba(233, 196, 106, .35);
}

/* --- dark theme: continuous golden glow and smoked-obsidian bridge cards --- */
html:root[data-theme="dark"] body.home-page .hero-sales.hero-sales {
  background: linear-gradient(180deg, #0b0b0d 0%, #0e0d10 56%, #0b0b0c 100%) !important;
  padding: 16px 0 calc(var(--sc-h) + var(--sc-b));
}
@media (min-width: 900px) and (max-height: 790px) {
  html:root[data-theme="dark"] body.home-page .hero-sales.hero-sales {
    padding-top: 12px;
  }
}
html:root[data-theme="dark"] body.home-page main > .services-hub {
  background:
    radial-gradient(56% 118px at 50% 120px, rgba(230, 190, 98, .12) 0%, rgba(230, 190, 98, .035) 54%, transparent 96%),
    #0b0b0c;
}
html:root[data-theme="dark"] body.home-page .pk-pf:not([aria-current="true"]) {
  border-color: rgba(255, 255, 255, .09);
  background: linear-gradient(180deg, rgba(26, 25, 29, .92), rgba(18, 18, 21, .96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 16px 32px -18px rgba(0, 0, 0, .85);
}
html:root[data-theme="dark"] body.home-page .pk-pf:not([aria-current="true"]):hover,
html:root[data-theme="dark"] body.home-page .pk-pf:not([aria-current="true"]):focus-visible {
  border-color: rgba(230, 190, 98, .48);
  background: linear-gradient(180deg, rgba(33, 31, 36, .96), rgba(22, 21, 25, .98));
  box-shadow: inset 0 1px 0 rgba(246, 220, 143, .16), 0 20px 40px -18px rgba(0, 0, 0, .92), 0 0 22px -10px rgba(230, 190, 98, .28);
}

/* --- tablets and phones: compact vertical rhythm and matched zero-seam dissolve stops --- */
@media (max-width: 1099px) {
  html:root[data-theme="light"] body.home-page .site-header.site-header {
    background: rgb(14, 13, 16);
    border-bottom-color: rgba(233, 196, 106, .14);
    box-shadow: none;
  }
}
@media (max-width: 899px) {
  .home-page .hero-sales.hero-sales,
  html:root[data-theme="light"] body.home-page .hero-sales.hero-sales,
  html:root[data-theme="dark"] body.home-page .hero-sales.hero-sales {
    --sc-h: 176px;
    --sc-b: 22px;
    padding: 14px 0 calc(var(--sc-h) + var(--sc-b));
  }
  .home-page main > .services-hub,
  html:root[data-theme="light"] body.home-page main > .services-hub {
    margin-top: -2px;
    padding-top: 8px;
  }
}
@media (max-width: 639px) {
  .home-page .hero-sales.hero-sales,
  html:root[data-theme="light"] body.home-page .hero-sales.hero-sales,
  html:root[data-theme="dark"] body.home-page .hero-sales.hero-sales {
    --sc-h: 158px;
    --sc-r: clamp(110px, 32.5vw, 138px);
    --sc-c: clamp(74px, 21vw, 90px);
    --sc-i: clamp(32px, 8.8vw, 40px);
    --sc-tilt: -15deg;
    --sc-b: 20px;
    padding: 12px 0 calc(var(--sc-h) + var(--sc-b));
  }
  .home-page .hero-sales h1 {
    margin-top: 0;
    font-size: clamp(1.66rem, 7.5vw, 2.15rem);
    line-height: 1.06;
  }
  .home-page .hero-sales .pk-field,
  html:root[data-theme="light"] body.home-page .hero-sales .pk-field {
    inset: auto 0 var(--sc-b) 0;
    perspective: 900px;
  }
  .home-page main > .services-hub,
  html:root[data-theme="light"] body.home-page main > .services-hub {
    margin-top: -2px;
    padding-top: 8px;
    border-radius: 0;
  }
  html:root[data-theme="light"] body.home-page main > .services-hub {
    background:
      radial-gradient(82% 106px at 50% 108px, rgba(233, 196, 106, .16) 0%, rgba(233, 196, 106, .045) 54%, transparent 96%),
      linear-gradient(180deg,
        #0f0e11 0px,
        #131115 48px,
        #1e1b19 96px,
        #4a4137 148px,
        #9e9484 198px,
        #dfd9ce 244px,
        #f6f4ef 282px
      );
  }
  html:root[data-theme="dark"] body.home-page main > .services-hub {
    background:
      radial-gradient(82% 106px at 50% 108px, rgba(230, 190, 98, .12) 0%, rgba(230, 190, 98, .03) 54%, transparent 96%),
      #0b0b0c;
  }
  .home-page .pk-head { margin-bottom: 12px; }
  .home-page .pk-head::before { width: 48px; margin-bottom: 9px; }
  .home-page .pk-head h2 { font-size: 1.24rem; }
  .home-page .pk-head p { font-size: .8rem; }
  .home-page .pk-platforms { gap: 6px; margin-bottom: 14px; }
  .home-page .pk-pf { padding: 8px 2px 7px; border-radius: 14px; }
  .home-page .pk-pf img { width: 38px; height: 38px; border-radius: 11px; }
}
