/* ==========================================================================
   Parallex · v3 "Pulse" · pages-dex.css  (Dex page)
   ========================================================================== */

/* ---------- hero ---------- */
.dex-guard-chip { margin-top: 22px; display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px 0 14px; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 500; font-size: 15px; box-shadow: var(--sh-card); }
.dex-guard-chip .ic { color: var(--wa); }
.page-hero .dexh { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 1fr; gap: 18px 24px; place-items: stretch; align-items: start; min-height: 640px; padding: 28px 34px 26px 30px; background: radial-gradient(90% 70% at 20% 10%, #7FA0EC 0%, rgba(127,160,236,0) 60%), var(--field); }
.dexh-id { grid-column: 1; display: flex; align-items: center; gap: 26px; color: #fff; }
.dexh-av { position: relative; display: grid; place-items: center; }
.dexh-av .dex-av { --s: 92px; }
.dexh-av .dex-av { box-shadow: inset 0 0 0 1px rgba(255,255,255,.3), 0 20px 40px -16px rgba(16,22,36,.6); }
.dexh-av .dex-av .on { box-shadow: 0 0 0 3px #5E81D0; }
.dexh-av .ring { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 2px rgba(37,211,102,.7); animation: dexRing 2.9s var(--ease-out) infinite; pointer-events: none; }
.dexh-av .ring.r2 { animation-delay: 1.45s; }
@keyframes dexRing { from { transform: scale(1); opacity: .9; } to { transform: scale(1.9); opacity: 0; } }
.reduced-motion .dexh-av .ring, .motion-paused .dexh-av .ring { animation: none; opacity: 0; }
.dexh-name b { display: block; font-family: var(--f-head); font-weight: 500; font-size: 36px; letter-spacing: -.03em; line-height: 1; }
.dexh-name small { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 14px; color: rgba(255,255,255,.9); }
.dexh-phone { grid-column: 2; grid-row: 1 / span 2; align-self: center; --pw: 290px; }
.dexh-phone .phone-screen { font-size: 5.1cqw; }
/* polish: WhatsApp-style profile card pinned to the top of the chat, so the phone never looks empty */
.dexh-intro { margin-bottom: .3em; flex: none; align-self: center; display: grid; justify-items: center; gap: .15em; width: 88%; padding: 1em .8em .9em; margin-top: .2em; border-radius: .9em; background: rgba(255,255,255,.86); box-shadow: 0 1px 1px rgba(0,0,0,.06); text-align: center; }
.dexh-intro .dex-av { margin-bottom: .35em; }
.dexh-intro b { font-weight: 500; font-size: .95em; }
.dexh-intro small { color: var(--muted); font-size: .72em; }
.dexh-note { display: inline-flex; align-items: flex-start; gap: .4em; margin-top: .5em; padding: .45em .7em; border-radius: .6em; background: #FFF6D6; color: #6B5A1E; font-size: .66em; line-height: 1.35; text-align: start; }
.dexh-note .ic { width: 1.2em; height: 1.2em; flex: none; margin-top: .05em; }
.dexh-cap { position: absolute; left: 80px; bottom: 30px; color: rgba(255,255,255,.88); }
.dexh-ctrl { left: 30px; bottom: 22px; }
.reduced-motion .dexh-ctrl { display: none; }
@media (max-width: 1180px) and (min-width: 1024px) { .page-hero .dexh { padding: 24px; gap: 14px; } .dexh-phone { --pw: 224px; } .dexh-av .dex-av { --s: 64px; } .dexh-name b { font-size: 28px; } .dexh-name small { font-size: 12.5px; white-space: normal; } .dexh-moments li { height: 38px; font-size: 14px; white-space: nowrap; } }
@media (max-width: 699px) {
  .page-hero .dexh { grid-template-columns: 1fr; grid-template-rows: auto auto auto; min-height: 0; padding: 22px 16px 56px; justify-items: center; }
  .dexh-id { justify-self: start; }
  .dexh-av .dex-av { --s: 64px; }
  .dexh-name b { font-size: 28px; }
  .dexh-phone { grid-column: 1; grid-row: 2; --pw: 250px; }
  .dexh-cap { left: 64px; bottom: 22px; }
  .dexh-ctrl { left: 16px; bottom: 14px; }
}

/* ---------- before: notification pile ---------- */
.notif-pile { position: relative; display: grid; gap: 10px; filter: grayscale(1); padding: 10px 0; }
.nf { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; padding: 12px 16px 12px 12px; border-radius: 18px; background: rgba(255,255,255,.9); box-shadow: var(--sh-float); font-size: 14px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.nf:nth-child(2) { margin-inline-start: 24px; } .nf:nth-child(3) { margin-inline-start: 8px; } .nf:nth-child(4) { margin-inline-start: 36px; } .nf:nth-child(5) { margin-inline-start: 14px; opacity: .7; }
.nf b { display: block; font-weight: 500; } .nf small { color: var(--muted); font-size: 12.5px; }
.nf em { font-style: normal; font-size: 12px; color: var(--faint); }
.nf-ic { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: #E3E5E9; color: var(--before-text); }
.js .notif-pile.is-in .nf { animation: nfIn .5s var(--ease-snap) both; }
.js .notif-pile.is-in .nf:nth-child(2) { animation-delay: .12s; } .js .notif-pile.is-in .nf:nth-child(3) { animation-delay: .24s; } .js .notif-pile.is-in .nf:nth-child(4) { animation-delay: .36s; } .js .notif-pile.is-in .nf:nth-child(5) { animation-delay: .48s; }
@keyframes nfIn { from { opacity: 0; transform: translateY(-16px) scale(.97); } }
@media (max-width: 599px) { .nf:nth-child(n) { margin-inline-start: 0; } .nf { font-size: 13px; } }

/* ---------- three jobs ---------- */
.jobs-tag { justify-content: center; margin: 0; }
.job { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(32px, 5vw, 96px); align-items: center; padding: clamp(28px, 20px + 2.4vw, 60px); border-radius: 36px; background: linear-gradient(160deg, var(--mist), #fff 70%); box-shadow: 0 0 0 1px var(--border), var(--sh-soft); overflow: hidden; }
.job-h { font-size: clamp(32px, 22px + 2.4vw, 56px); line-height: 1.02; letter-spacing: -.035em; max-width: 14ch; margin-bottom: 30px; }
.caps { list-style: none; padding: 0; display: grid; gap: 10px; margin-bottom: 30px; max-width: 480px; }
.caps li { display: flex; align-items: center; gap: 14px; padding: 14px 18px 14px 14px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px var(--border); font-weight: 500; font-size: 17px; }
.caps .ic { width: 36px; height: 36px; padding: 8px; border-radius: 12px; background: var(--tint); color: var(--b1); flex: none; }
/* the phone is 1:1 with the Dex hero phone (size and type); it runs off the bottom of the card */
.job { overflow: hidden; padding-bottom: 0 !important; align-items: stretch; }
.job-copy { align-self: center; padding-bottom: clamp(28px, 20px + 2.4vw, 60px); }
/* the phone sits low and runs off the bottom of the card: it is out of flow, so the copy sets the card height */
.job-vis { position: relative; align-self: stretch; width: 330px; min-height: 480px; }
.job-vis .phone { position: absolute; left: 50%; top: 96px; translate: -50% 0; }
.job-vis .phone { --pw: 290px; }
.job-vis .phone-screen { font-size: 5.1cqw; }
.tab-panel.is-enter .caps li { animation: capIn .5s var(--ease-snap) both; }
.tab-panel.is-enter .caps li:nth-child(2) { animation-delay: 60ms; } .tab-panel.is-enter .caps li:nth-child(3) { animation-delay: 120ms; } .tab-panel.is-enter .caps li:nth-child(4) { animation-delay: 180ms; }
@keyframes capIn { from { opacity: 0; transform: translateX(-12px); } }
@media (max-width: 899px) { .job { grid-template-columns: 1fr; } .job-vis { width: 100%; min-height: 0; height: 440px; } .job-vis .phone { --pw: 270px; top: 28px; } }
@media (max-width: 599px) { .job { border-radius: 28px; padding: 22px 16px; } .caps li { font-size: 15.5px; padding: 10px 12px 10px 10px; } .caps .ic { width: 32px; height: 32px; padding: 7px; } }

/* ---------- guard ---------- */
.never-head { display: flex !important; align-items: center; gap: 34px; max-width: none; padding-inline-start: 15px; }
.never-head .sec-head { margin: 0; }
.never-av { position: relative; flex: none; display: grid; }
.never-av::after { content: ""; position: absolute; z-index: 0; inset: -15px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(239,68,88,.5); }
.never-av .dex-av { position: relative; z-index: 1; } /* the status dot sits above the ring */
.guard .never-head h2 { font-size: var(--t-h1); line-height: 1; letter-spacing: -.04em; }
.guard .never-head > div { display: grid; gap: 12px; }

/* polish: the larger hero phone leaves less room for the name block */
@media (min-width: 1024px) { .dexh-name small { white-space: normal; align-items: flex-start; line-height: 1.35; } .dexh-name small .live-dot { margin-top: .45em; flex: none; } }
