/* =============================================================================
   SAPT ALPHA — CINEMATIC 3D PHONE SCROLL STAGE & DIRECT DEMAT CUSTODY JOURNEY
   Agency-Tier Quiet Luxury Craft, Optical Alignment & Complete Mobile Responsiveness
   ============================================================================= */

:root {
  --phone-height: min(560px, calc(100vh - 195px), calc(100dvh - 195px));
  --phone-width: calc(var(--phone-height) / 2.02);
  --phone-radius: 36px;
  --phone-screen-radius: 31px;
  --phone-bezel: 5px;
  --phone-titanium: #323337;
}

/* 1. Master Container Runway (Interactive Scroll Progression Runway) */
.journey-stage {
  position: relative;
  min-height: 250vh;
  padding: 0;
  background: var(--cream);
  background-image: 
    radial-gradient(ellipse 70% 50% at 50% 35%, rgba(184, 144, 71, 0.12), transparent 70%),
    linear-gradient(180deg, var(--cream) 0%, var(--cream2) 50%, var(--cream) 100%);
  isolation: isolate;
  overflow: visible;
  border-top: 1px solid var(--line);
}

/* 2. Pinned Responsive Stage Viewport Container */
.journey-sticky-viewport {
  position: sticky;
  top: 0;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  overflow: visible;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 74px;
  padding-bottom: 28px;
  padding-left: clamp(16px, 2.5vw, 32px);
  padding-right: clamp(16px, 2.5vw, 32px);
  box-sizing: border-box;
  z-index: 5;
}

/* Ambient Backlit Radial Aura behind Phone */
.journey-ambient-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -45%);
  width: 580px;
  height: 580px;
  background: radial-gradient(circle, rgba(184, 144, 71, 0.32) 0%, rgba(16, 138, 86, 0.14) 45%, transparent 72%);
  filter: blur(80px);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* 3. Stage Header & Kicker (Guaranteed Clearance Above Phone/Cards) */
.journey-stage-header {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 auto 6px;
  text-align: center;
  z-index: 25;
  pointer-events: auto;
  flex-shrink: 0;
}

.journey-kicker {
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(184, 144, 71, 0.08);
  border: 1px solid rgba(184, 144, 71, 0.25);
  padding: 3px 12px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.journey-stage-title {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.2vw, 32px);
  line-height: 1.15;
  color: var(--green);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 4px auto 3px;
  text-wrap: balance;
}

.journey-stage-title em {
  font-style: italic;
  color: var(--green);
}

.journey-stage-lead {
  font-family: var(--font-sans);
  font-size: 12.5px;
  line-height: 1.42;
  color: var(--muted);
  margin: 0 auto;
  max-width: 58ch;
  text-wrap: balance;
}

/* 4. Desktop Stage Grid (Left Narrative Cards, Center 3D Phone, Right Narrative Cards) */
.journey-stage-grid {
  position: relative;
  width: 100%;
  max-width: 1240px;
  flex: 1;
  min-height: 0;
  margin: 4px auto 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) var(--phone-width) minmax(260px, 1fr);
  align-items: center;
  gap: clamp(16px, 2.5vw, 36px);
  z-index: 10;
  box-sizing: border-box;
}

/* =============================================================================
   IPHONE 16 PRO — AEROSPACE TITANIUM CHASSIS & SCREEN CANVAS
   Photorealistic Machined Grade-5 Titanium Band, Micro Bezel, Pure OLED Glass
   ============================================================================= */
.journey-phone-container {
  grid-column: 2;
  position: relative;
  width: var(--phone-width);
  height: var(--phone-height);
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1100px;
  perspective-origin: 50% 45%;
  z-index: 20;
}

/* Floating 3D Contact Shadow Plane */
.phone-3d-shadow {
  position: absolute;
  bottom: -22px;
  left: 50%;
  width: 90%;
  height: 32px;
  transform: translateX(-50%) rotateX(75deg);
  background: radial-gradient(ellipse at center, rgba(10, 16, 13, 0.75) 0%, rgba(13, 22, 18, 0.45) 42%, rgba(184, 144, 71, 0.10) 60%, transparent 75%);
  filter: blur(12px);
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  will-change: transform, opacity;
  transition: opacity 0.2s ease;
}

/* Realistic Titanium Phone Frame */
.luxury-phone-frame {
  position: relative;
  width: var(--phone-width);
  height: var(--phone-height);
  border-radius: var(--phone-radius);
  background: linear-gradient(150deg, #3d3e42 0%, #25262a 20%, #161719 55%, #2c2d31 100%);
  padding: var(--phone-bezel);
  box-sizing: border-box;
  box-shadow:
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.45),
    inset 1px 0 1px 0 rgba(255, 255, 255, 0.28),
    inset -1px -1px 1px 0 rgba(0, 0, 0, 0.75),
    0 0 0 0.8px rgba(255, 255, 255, 0.12),
    0 0 0 2px #18191b,
    1px 1px 0 0 #2a2b2f,
    2px 2px 0 0 #242528,
    3px 2px 0 0 #1f2022,
    4px 3px 0 0 #1b1c1d,
    5px 3px 0 0 #161718,
    6px 4px 0 0 #121314,
    0 0 42px rgba(184, 144, 71, 0.14),
    12px 18px 25px -4px rgba(0, 0, 0, 0.38),
    24px 38px 56px -8px rgba(10, 16, 13, 0.42);
  overflow: visible;
  will-change: transform;
  transform-origin: center center;
  transform-style: preserve-3d;
  transform: perspective(1200px) rotateY(-6deg) rotateX(3deg);
  transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}

.luxury-phone-frame::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--phone-radius) + 1px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.35) 0%, rgba(184, 144, 71, 0.2) 20%, transparent 45%, rgba(0, 0, 0, 0.6) 100%);
  pointer-events: none;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.phone-btn-left-action,
.phone-btn-left-vol-up,
.phone-btn-left-vol-down,
.phone-btn-right-power {
  position: absolute;
  background: linear-gradient(180deg, #6c6d72 0%, #35363a 45%, #18191b 100%);
  z-index: 12;
  pointer-events: none;
}

.phone-btn-left-action {
  left: -3.5px;
  top: 17%;
  width: 3.5px;
  height: 4.8%;
  border-radius: 2.5px 0 0 2.5px;
  box-shadow: -1px 0 1.5px rgba(0, 0, 0, 0.55), inset 0 0.8px 0 rgba(255, 255, 255, 0.45);
}

.phone-btn-left-vol-up {
  left: -3.5px;
  top: 24.5%;
  width: 3.5px;
  height: 7.6%;
  border-radius: 2.5px 0 0 2.5px;
  box-shadow: -1px 0 1.5px rgba(0, 0, 0, 0.55), inset 0 0.8px 0 rgba(255, 255, 255, 0.45);
}

.phone-btn-left-vol-down {
  left: -3.5px;
  top: 33.5%;
  width: 3.5px;
  height: 7.6%;
  border-radius: 2.5px 0 0 2.5px;
  box-shadow: -1px 0 1.5px rgba(0, 0, 0, 0.55), inset 0 0.8px 0 rgba(255, 255, 255, 0.45);
}

.phone-btn-right-power {
  right: -3.5px;
  top: 26.5%;
  width: 3.5px;
  height: 11.5%;
  border-radius: 0 2.5px 2.5px 0;
  box-shadow: 1px 0 1.5px rgba(0, 0, 0, 0.55), inset 0 0.8px 0 rgba(255, 255, 255, 0.45);
}

.phone-glass-glare {
  position: absolute;
  inset: var(--phone-bezel);
  border-radius: var(--phone-screen-radius);
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.02) 26%, transparent 54%);
  pointer-events: none;
  z-index: 45;
  mix-blend-mode: screen;
  will-change: background, opacity;
  transition: opacity 0.15s ease;
}

/* Inner OLED Phone Screen Canvas */
/* Inner Sapt Alpha Phone Screen Canvas (Warm Linen & Cream) */
.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: #FBF9F5; /* Authentic Sapt Alpha Warm Linen/Cream Canvas */
  border-radius: var(--phone-screen-radius);
  color: #18221D;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
  z-index: 10;
  box-sizing: border-box;
  font-family: var(--font-sans);
  box-shadow: inset 0 0 0 1px rgba(28, 35, 30, 0.08);
}

/* Phone Status Bar */
.phone-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 28px;
  padding: 4px 14px 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #18221D;
  position: relative;
  z-index: 30;
  flex-shrink: 0;
  box-sizing: border-box;
}

/* Dynamic Island */
.phone-dynamic-island {
  position: absolute;
  left: 50%;
  top: 5px;
  transform: translateX(-50%);
  width: 78px;
  height: 19px;
  background: #000000;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
  box-sizing: border-box;
  z-index: 35;
  box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.08), 0 1px 3px rgba(0, 0, 0, 0.6);
}

.di-lens {
  width: 9.5px;
  height: 9.5px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #18283e 0%, #0a111a 60%, #000000 100%);
  box-shadow: inset 0 0 0 1px #050505, 0 0 0 0.5px #1c1c1e;
  position: relative;
  display: block;
}

.di-lens i {
  position: absolute;
  top: 2.5px;
  left: 2.5px;
  width: 3.5px;
  height: 3.5px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #688bb5, #142236 75%);
  display: block;
}

.di-mic {
  width: 3.5px;
  height: 3.5px;
  border-radius: 50%;
  background: #0d0d0e;
  box-shadow: inset 0 0 0 0.6px #1c1c1e;
  display: block;
}

.phone-icons {
  display: flex;
  gap: 5px;
  align-items: center;
  color: #18221D;
}

.phone-icons svg {
  display: block;
}

/* Internal Phone App Framework */
.phone-app {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
  font-family: var(--font-sans);
  position: relative;
}

.phone-app-inner {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  position: relative;
  display: flex;
}

.phone-tabs-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  width: 400%;
  min-width: 400%;
  max-width: 400%;
  flex: 0 0 400%;
  height: 100%;
  transform: translate3d(0%, 0, 0);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.phone-tab-pane {
  width: 25%;
  min-width: 25%;
  max-width: 25%;
  flex: 0 0 25%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 6px 9px 8px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 5.5px;
  scrollbar-width: none;
  user-select: none;
}

.phone-tab-pane::-webkit-scrollbar {
  display: none;
}

/* 1. Client & Demat Header */
.phone-user-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 1px;
  flex-shrink: 0;
  height: 25px;
}

.phone-user-info {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.phone-avatar-box {
  position: relative;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #B89047 0%, #8A6520 100%);
  display: grid;
  place-items: center;
  border: 1px solid rgba(184, 144, 71, 0.35);
  box-shadow: 0 1px 4px rgba(13, 22, 20, 0.12);
  flex-shrink: 0;
}

.phone-avatar-txt {
  font-size: 9px;
  font-weight: 700;
  color: #FAF8F5;
  line-height: 1;
}

.phone-avatar-dot {
  position: absolute;
  bottom: -0.5px;
  right: -0.5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #108A56;
  border: 1px solid #FFFFFF;
}

.phone-welcome {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.phone-client-row {
  display: flex;
  align-items: center;
  gap: 3px;
}

.phone-client-row b {
  font-size: 10.5px;
  color: #18221D;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  line-height: 1.15;
}

.phone-verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #108A56;
  color: #FFFFFF;
  font-size: 7px;
  font-weight: 800;
  line-height: 1;
  flex-shrink: 0;
}

.phone-welcome small {
  font-size: 7px;
  color: #78857E;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.1;
  white-space: nowrap;
}

.phone-demat-badge {
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 2px 6.5px;
  background: rgba(16, 138, 86, 0.08);
  color: #108A56;
  border: 1px solid rgba(16, 138, 86, 0.25);
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 3.5px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.phone-demat-live-dot {
  width: 3.5px;
  height: 3.5px;
  border-radius: 50%;
  background: #108A56;
  box-shadow: 0 0 4px rgba(16, 138, 86, 0.5);
}

.phone-demat-badge.highlight {
  background: rgba(16, 138, 86, 0.18);
  border-color: #108A56;
  box-shadow: 0 0 10px rgba(16, 138, 86, 0.25);
  transform: scale(1.04);
}

/* 2. Direct Demat Net Wealth Hero Card (Warm Ivory & Gold Top Hairline) */
.phone-portfolio-card {
  background: #FFFFFF;
  border: 1px solid rgba(28, 35, 30, 0.08);
  border-top: 2px solid rgba(184, 144, 71, 0.45);
  border-radius: 11px;
  padding: 6px 8px 3px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(13, 22, 20, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
  flex-shrink: 0;
}

.phone-portfolio-card.highlight {
  border-color: rgba(184, 144, 71, 0.75);
  box-shadow: 0 4px 18px rgba(184, 144, 71, 0.18);
}

.phone-card-label {
  font-size: 7.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #96702E;
  font-weight: 600;
  margin-bottom: 1.5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.phone-mandate-badge {
  font-size: 7px;
  font-weight: 700;
  color: #96702E;
  background: rgba(184, 144, 71, 0.10);
  border: 1px solid rgba(184, 144, 71, 0.30);
  padding: 1px 4.5px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.phone-net-worth {
  font-family: var(--font-serif);
  font-size: 18.5px;
  line-height: 1.1;
  color: #18221D;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 1px 0 2px;
  font-variant-numeric: tabular-nums;
}

.phone-metrics-subline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.phone-gain-badge {
  display: inline-flex;
  align-items: center;
  gap: 2.5px;
  font-size: 8px;
  font-weight: 600;
  color: #108A56;
  background: rgba(16, 138, 86, 0.08);
  border: 1px solid rgba(16, 138, 86, 0.22);
  padding: 1px 4.5px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.phone-gain-badge svg {
  width: 8px;
  height: 8px;
  stroke: #108A56;
  flex-shrink: 0;
}

.phone-alpha-metric {
  font-size: 7px;
  font-weight: 600;
  color: #96702E;
  background: rgba(184, 144, 71, 0.10);
  border: 1px solid rgba(184, 144, 71, 0.22);
  padding: 1px 4px;
  border-radius: 4px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.phone-chart-wrap {
  margin: 2px -4px 0;
  position: relative;
}

.phone-chart-wrap svg {
  width: 100%;
  height: 30px;
  display: block;
}

.phone-timeframes {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1px 2px 0;
  margin-top: 1px;
}

.phone-timeframes span {
  font-size: 6.5px;
  font-weight: 600;
  color: #78857E;
  letter-spacing: 0.03em;
  padding: 0.5px 3px;
  border-radius: 3px;
  transition: all 0.2s ease;
}

.phone-timeframes span.active {
  color: #108A56;
  background: rgba(16, 138, 86, 0.10);
  font-weight: 700;
}

/* 3. Institutional Mandate Allocation Bar Strip */
.phone-alloc-strip {
  background: #FFFFFF;
  border: 1px solid rgba(28, 35, 30, 0.08);
  border-radius: 9px;
  padding: 5px 8px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(13, 22, 20, 0.04);
  transition: all 0.3s ease;
}

.phone-alloc-strip.highlight {
  background: #FFFFFF;
  border-color: rgba(184, 144, 71, 0.65);
  box-shadow: 0 0 12px rgba(184, 144, 71, 0.2);
}

.phone-alloc-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3px;
  font-size: 6.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #78857E;
  text-transform: uppercase;
}

.phone-alloc-drift b {
  color: #108A56;
  font-variant-numeric: tabular-nums;
}

.phone-alloc-bar {
  display: flex;
  width: 100%;
  height: 4.5px;
  border-radius: 999px;
  overflow: hidden;
  background: #F0EBE1;
  gap: 1.5px;
}

.pab-segment {
  height: 100%;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.pab-segment.core {
  background: #B89047;
}

.pab-segment.shield {
  background: #108A56;
}

.pab-segment.tax {
  background: #78857E;
}

/* Sovereign Demat Custody Guarantee Strip */
.phone-custody-strip {
  background: #FFFFFF;
  border: 1px solid rgba(28, 35, 30, 0.08);
  border-radius: 8px;
  padding: 4px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  box-shadow: 0 1px 4px rgba(13, 22, 20, 0.03);
}

.pcs-left {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.pcs-shield {
  font-size: 11px;
}

.pcs-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pcs-text b {
  font-size: 7.5px;
  color: #18221D;
  font-weight: 600;
  line-height: 1.15;
}

.pcs-text small {
  font-size: 6px;
  color: #78857E;
  line-height: 1.1;
  white-space: nowrap;
}

.pcs-tag {
  font-size: 6px;
  font-weight: 700;
  color: #108A56;
  background: rgba(16, 138, 86, 0.08);
  border: 1px solid rgba(16, 138, 86, 0.22);
  padding: 1px 4px;
  border-radius: 999px;
  text-transform: uppercase;
}

/* Tab Pane Header */
.phone-pane-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1px 1px 0;
  margin-bottom: 1px;
}

.pph-title {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #96702E;
  line-height: 1.2;
}

.pph-sub {
  font-size: 6px;
  color: #78857E;
  font-weight: 500;
  line-height: 1.15;
}

.pph-badge {
  font-size: 6px;
  font-weight: 700;
  color: #108A56;
  background: rgba(16, 138, 86, 0.08);
  border: 1px solid rgba(16, 138, 86, 0.22);
  padding: 1px 4px;
  border-radius: 999px;
  text-transform: uppercase;
}

.pph-badge.badge-alert {
  color: #B89047;
  background: rgba(184, 144, 71, 0.1);
  border-color: rgba(184, 144, 71, 0.3);
}

.pph-badge.badge-gold {
  color: #96702E;
  background: rgba(184, 144, 71, 0.12);
  border-color: rgba(184, 144, 71, 0.35);
}

/* Multi-Factor Sleeve Cards */
.phone-sleeve-card {
  background: #FFFFFF;
  border: 1px solid rgba(28, 35, 30, 0.08);
  border-left: 2.5px solid #B89047;
  border-radius: 8px;
  padding: 4.5px 6.5px;
  display: flex;
  flex-direction: column;
  gap: 3.5px;
  box-shadow: 0 1px 4px rgba(13, 22, 20, 0.03);
}

.phone-sleeve-card.sleeve-shield {
  border-left-color: #108A56;
}

.phone-sleeve-card.sleeve-tactical {
  border-left-color: #7C3AED;
}

.psc-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.psc-title-wrap {
  display: flex;
  align-items: center;
  gap: 4.5px;
}

.psc-icon {
  width: 13px;
  height: 13px;
  border-radius: 3px;
  display: grid;
  place-items: center;
  font-size: 7.5px;
  flex-shrink: 0;
}

.psc-icon.core {
  background: rgba(184, 144, 71, 0.12);
  color: #96702E;
}

.psc-icon.shield {
  background: rgba(16, 138, 86, 0.10);
  color: #108A56;
}

.psc-icon.tactical {
  background: rgba(124, 58, 237, 0.10);
  color: #7C3AED;
}

.psc-name {
  font-size: 8px;
  font-weight: 700;
  color: #18221D;
  line-height: 1.15;
}

.psc-spec {
  font-size: 6px;
  color: #78857E;
  line-height: 1.1;
}

.psc-vals {
  text-align: right;
}

.psc-val {
  font-size: 8.5px;
  font-weight: 700;
  color: #18221D;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}

.psc-ret.positive {
  font-size: 6px;
  font-weight: 600;
  color: #108A56;
  font-variant-numeric: tabular-nums;
}

.psc-holdings-line {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5px;
}

.psc-holdings-line span {
  font-size: 5.5px;
  font-weight: 600;
  color: #49544E;
  background: #F5F1EA;
  padding: 1px 3px;
  border-radius: 2.5px;
  font-variant-numeric: tabular-nums;
}

.psc-meter-row {
  display: flex;
  align-items: center;
  gap: 5px;
}

.psc-meter-bar {
  flex: 1;
  height: 3px;
  background: #F0EBE1;
  border-radius: 999px;
  overflow: hidden;
}

.pmb-fill {
  height: 100%;
  border-radius: 999px;
}

.pmb-fill.core { background: #B89047; }
.pmb-fill.shield { background: #108A56; }
.pmb-fill.tactical { background: #7C3AED; }

.psc-drift-text {
  font-size: 5.5px;
  color: #78857E;
  white-space: nowrap;
}

.psc-drift-text b {
  color: #108A56;
}

/* Rebalance Tab: Tax Alpha Banner & Discrete Orders */
.phone-tax-alpha-banner {
  background: #FFFFFF;
  border: 1px solid rgba(2, 132, 199, 0.25);
  border-top: 2px solid #0284c7;
  border-radius: 8px;
  padding: 4.5px 6.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 4px rgba(13, 22, 20, 0.03);
}

.ptab-left {
  display: flex;
  align-items: center;
  gap: 4.5px;
}

.ptab-symbol {
  width: 14px;
  height: 14px;
  border-radius: 3.5px;
  background: rgba(2, 132, 199, 0.10);
  color: #0284c7;
  display: grid;
  place-items: center;
  font-size: 8px;
  font-weight: 700;
}

.ptab-left b {
  display: block;
  font-size: 7.5px;
  color: #18221D;
  font-weight: 600;
  line-height: 1.15;
}

.ptab-left small {
  display: block;
  font-size: 5.8px;
  color: #78857E;
  line-height: 1.1;
}

.ptab-val {
  font-size: 8px;
  font-weight: 700;
  color: #0284c7;
  background: rgba(2, 132, 199, 0.08);
  padding: 1.5px 4.5px;
  border-radius: 4px;
  white-space: nowrap;
}

.phone-orders-list {
  display: flex;
  flex-direction: column;
  gap: 2.5px;
}

.phone-order-row {
  background: #FFFFFF;
  border: 1px solid rgba(28, 35, 30, 0.08);
  border-radius: 7px;
  padding: 3px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
}

.por-badge {
  font-size: 6px;
  font-weight: 700;
  padding: 1px 3.5px;
  border-radius: 2px;
  letter-spacing: 0.02em;
}

.por-badge.sell {
  background: rgba(184, 144, 71, 0.12);
  color: #96702E;
  border: 1px solid rgba(184, 144, 71, 0.25);
}

.por-badge.buy {
  background: rgba(16, 138, 86, 0.10);
  color: #108A56;
  border: 1px solid rgba(16, 138, 86, 0.25);
}

.por-desc {
  flex: 1;
  min-width: 0;
  line-height: 1.15;
}

.por-desc b {
  font-size: 7.5px;
  color: #18221D;
}

.por-desc small {
  font-size: 6px;
  color: #78857E;
}

.por-meta {
  text-align: right;
  line-height: 1.15;
}

.por-reason {
  display: block;
  font-size: 5.5px;
  color: #78857E;
  font-weight: 600;
}

.por-amt {
  font-size: 7.5px;
  color: #18221D;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Advisory Tab: Fiduciary, Suitability & Compliance Dossiers */
.phone-fiduciary-card {
  background: #FFFFFF;
  border: 1px solid rgba(184, 144, 71, 0.3);
  border-top: 2px solid #B89047;
  border-radius: 8px;
  padding: 4px 6.5px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  box-shadow: 0 1px 4px rgba(13, 22, 20, 0.03);
}

.pfc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 6.5px;
}

.pfc-label {
  color: #78857E;
  font-weight: 500;
}

.pfc-val {
  color: #18221D;
  font-weight: 600;
  text-align: right;
}

.pfc-val.highlight {
  color: #108A56;
}

.phone-profile-card {
  background: #FFFFFF;
  border: 1px solid rgba(28, 35, 30, 0.08);
  border-radius: 8px;
  padding: 4px 6.5px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ppc-header {
  display: flex;
  align-items: center;
  gap: 4px;
}

.ppc-icon {
  font-size: 9px;
}

.ppc-header b {
  display: block;
  font-size: 7.5px;
  color: #18221D;
  line-height: 1.15;
}

.ppc-header small {
  display: block;
  font-size: 5.8px;
  color: #78857E;
  line-height: 1.1;
}

.ppc-chips {
  display: flex;
  gap: 2.5px;
  flex-wrap: wrap;
}

.ppc-chip {
  font-size: 5.5px;
  font-weight: 600;
  color: #18221D;
  background: #F5F1EA;
  border: 1px solid rgba(28, 35, 30, 0.08);
  padding: 1px 3.5px;
  border-radius: 3px;
}

.phone-dossier-list {
  display: flex;
  flex-direction: column;
  gap: 2.5px;
}

.phone-dossier-row {
  background: #FFFFFF;
  border: 1px solid rgba(28, 35, 30, 0.08);
  border-radius: 7px;
  padding: 3px 6px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.pdr-icon {
  font-size: 9px;
}

.pdr-info {
  flex: 1;
  min-width: 0;
  line-height: 1.15;
}

.pdr-info b {
  display: block;
  font-size: 7px;
  color: #18221D;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pdr-info small {
  display: block;
  font-size: 5.5px;
  color: #78857E;
}

.pdr-badge {
  font-size: 5.5px;
  font-weight: 700;
  color: #96702E;
  background: rgba(184, 144, 71, 0.10);
  border: 1px solid rgba(184, 144, 71, 0.25);
  padding: 1px 3.5px;
  border-radius: 2px;
}

/* 5. 1-Tap Institutional Demat Rebalance Ticket */
.phone-action-card {
  background: #FFFFFF;
  border: 1px solid rgba(184, 144, 71, 0.35);
  border-left: 3px solid #B89047;
  border-radius: 9px;
  padding: 4.5px 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  box-shadow: 0 3px 8px rgba(184, 144, 71, 0.10);
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.3s ease;
  flex-shrink: 0;
}

.phone-action-card.highlight {
  border-color: rgba(184, 144, 71, 0.85);
  box-shadow: 0 0 14px rgba(184, 144, 71, 0.25);
  transform: translateY(-1px);
}

.pac-ticket-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pac-ticket-tag {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pac-order-code {
  font-size: 6.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #96702E;
  text-transform: uppercase;
}

.pac-churn-badge {
  font-size: 6px;
  font-weight: 600;
  color: #108A56;
  background: rgba(16, 138, 86, 0.08);
  padding: 0.5px 3px;
  border-radius: 2px;
}

.pac-order-summary {
  font-size: 8px;
  color: #18221D;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
}

.phone-tap-btn {
  background: #18221D;
  color: #FAF8F5;
  border: 1px solid rgba(184, 144, 71, 0.4);
  border-radius: 999px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 4.5px 9px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(13, 22, 20, 0.2);
  transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1), background 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
}

.phone-tap-btn:hover {
  background: #1B2E28;
  color: #DFC894;
  box-shadow: 0 2px 10px rgba(184, 144, 71, 0.35);
}

.phone-tap-btn:active {
  transform: scale(0.95);
}

/* 6. Native iOS Bottom Tab Bar (Pinned - Deep Forest Navy & Gold) */
.phone-tab-bar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 28px;
  background: #1B2E28;
  border-top: 1px solid rgba(184, 144, 71, 0.22);
  padding: 3px 12px 1px;
  margin-top: 0;
  flex-shrink: 0;
  z-index: 20;
}

.ptab-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5px;
  color: #A3B0A9;
  position: relative;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 2px 7px;
  border-radius: 5px;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  -webkit-user-select: none;
}

.ptab-tab:hover {
  color: #FAF8F5;
  transform: translateY(-1px);
}

.ptab-tab:active {
  transform: scale(0.92);
}

.ptab-tab svg {
  display: block;
  transition: transform 0.22s ease, filter 0.22s ease;
}

.ptab-tab span {
  font-size: 6px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.ptab-tab.active {
  color: #DFC894;
}

.ptab-tab.active svg {
  filter: drop-shadow(0 0 3px rgba(223, 200, 148, 0.45));
}

.ptab-tab.has-badge .ptab-notif-dot {
  position: absolute;
  top: -2px;
  right: 0px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #B89047;
  color: #18221D;
  font-size: 5.5px;
  font-weight: 800;
  display: grid;
  place-items: center;
  line-height: 1;
}

/* Home Indicator Bar */
.phone-home-indicator {
  width: 68px;
  height: 3px;
  background: rgba(28, 35, 30, 0.25);
  border-radius: 100px;
  margin: 2px auto 4px;
  opacity: 0.85;
  flex-shrink: 0;
}

/* =============================================================================
   FLANKING NARRATIVE STORY CARDS (Desktop Viewport)
   ============================================================================= */
.journey-story-left,
.journey-story-right {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.journey-story-left {
  grid-column: 1;
}

.journey-story-right {
  grid-column: 3;
}

.story-card {
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line-medium);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
  opacity: 0.44;
  transform: translateY(0) scale(0.98);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, box-shadow 0.35s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.story-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3.5px;
  background: var(--gold);
  opacity: 0;
  transform: scaleY(0);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.story-card:hover,
.story-card.is-active {
  opacity: 1;
  transform: translateY(-3px) scale(1.02);
  border-color: rgba(184, 144, 71, 0.75);
  box-shadow: var(--shadow-card-hover), 0 8px 30px rgba(184, 144, 71, 0.18);
}

.story-card.is-active::before {
  opacity: 1;
  transform: scaleY(1);
}

.story-card-tag {
  font-family: var(--font-sans);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.story-card-tag::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

.story-card h3 {
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.22;
  color: var(--green);
  font-weight: 500;
  margin-bottom: 6px;
}

.story-card p {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--body-text);
  margin: 0;
}

.story-metric-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  margin-top: 10px;
  background: var(--cream2);
  border: 1px solid var(--line-medium);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--green);
}

.story-metric-pill b {
  font-family: var(--font-mono);
  color: var(--accent-emerald);
}

/* =============================================================================
   MOBILE NARRATIVE DECK (Synchronized Interactive Carousel Pill for Screens <= 900px)
   ============================================================================= */
.journey-mobile-narrative {
  display: none;
  width: 100%;
  max-width: 400px;
  margin: 6px auto 0;
  flex-shrink: 0;
  z-index: 25;
}

.journey-mobile-card-pill {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(184, 144, 71, 0.38);
  border-radius: 16px;
  padding: 10px 14px;
  box-shadow: 0 8px 24px -4px rgba(13, 22, 20, 0.16), 0 0 16px rgba(184, 144, 71, 0.1);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.jm-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3px;
}

.jm-badge {
  font-family: var(--font-sans);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.jm-pips {
  display: flex;
  align-items: center;
  gap: 5px;
}

.jm-pip {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(24, 34, 29, 0.18);
  transition: all 0.3s ease;
}

.jm-pip.active {
  width: 18px;
  border-radius: 999px;
  background: var(--gold);
}

.jm-title {
  font-family: var(--font-serif);
  font-size: 14.5px;
  line-height: 1.25;
  color: var(--green);
  font-weight: 600;
  margin: 2px 0 2px;
  text-wrap: balance;
}

.jm-desc {
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--body-text);
  margin: 0;
}

/* =============================================================================
   FLOATING BOTTOM PRIORITY DOCK
   ============================================================================= */
.byld-dock {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  z-index: 85;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(24, 34, 29, 0.92);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(184, 144, 71, 0.35);
  border-radius: 999px;
  padding: 7px 10px 7px 18px;
  box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.4), 0 0 20px rgba(184, 144, 71, 0.2);
  transition: transform 0.3s var(--ease-out), opacity 0.3s ease;
}

.byld-dock-text {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: #FAF8F5;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.byld-dock-text .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
}

.byld-dock-btn {
  background: linear-gradient(135deg, #B89047 0%, #96702E 100%);
  color: #FAF8F5;
  border: none;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 7px 16px;
  cursor: pointer;
  transition: transform var(--dur-press) var(--ease-out), box-shadow 0.2s ease;
  white-space: nowrap;
}

.byld-dock-btn:active {
  transform: scale(0.96);
}

/* =============================================================================
   PERFORMANCE SECTION (#performance) MOBILE MODEL SWITCHER
   Eliminates right-side cutoff distortion on mobile screens
   ============================================================================= */
#performance {
  scroll-margin-top: 80px;
}

.perf-mobile-switcher {
  display: none;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 18px;
  padding: 0 12px;
  max-width: 420px;
}

.perf-ms-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  background: var(--surface);
  color: var(--muted);
  border: 1px solid var(--line-medium);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.perf-ms-btn .pms-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.perf-ms-btn .pms-dot.shield { background: #108A56; }
.perf-ms-btn .pms-dot.core { background: #B89047; }
.perf-ms-btn .pms-dot.edge { background: #8C6E38; }

.perf-ms-btn.active {
  background: var(--green);
  color: var(--inverse);
  border-color: var(--green);
  box-shadow: var(--shadow-sm);
}

/* =============================================================================
   RESPONSIVE DESIGN (Tablets & Mobile Viewports)
   ============================================================================= */
@media (max-width: 900px) {
  .journey-stage {
    min-height: 220vh;
    padding: 0;
  }

  .journey-sticky-viewport {
    position: sticky !important;
    top: 0 !important;
    height: 100vh !important;
    height: 100dvh !important;
    padding-top: max(58px, 8.5vh) !important; /* Guaranteed clearance below fixed navbar */
    padding-bottom: 12px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important; /* Natural vertical stack: header -> phone -> narrative pill */
    align-items: center !important;
    gap: clamp(4px, 1.2vh, 8px) !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .journey-stage-header {
    margin: 0 auto 2px !important;
    flex-shrink: 0;
  }

  .journey-kicker {
    font-size: 8.5px !important;
    padding: 2px 9px !important;
  }

  .journey-stage-title {
    font-size: clamp(16px, 4.2vw, 20px) !important;
    line-height: 1.15 !important;
    margin: 2px auto 1px !important;
  }

  .journey-stage-lead {
    font-size: 10px !important;
    line-height: 1.3 !important;
    max-width: 38ch !important;
  }

  .journey-stage-grid {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    gap: 0 !important;
    flex: 0 0 auto !important; /* Never push narrative pill off screen */
    min-height: 0 !important;
  }

  /* Hide flanking cards on mobile — replaced by synchronized mobile narrative deck */
  .journey-story-left,
  .journey-story-right {
    display: none !important;
  }

  .journey-phone-container {
    width: 100% !important;
    height: auto !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 auto !important;
    perspective: 1100px !important;
    perspective-origin: 50% 50% !important;
  }

  :root {
    --phone-height: clamp(320px, calc(100dvh - 250px), 365px);
    --phone-width: calc(var(--phone-height) / 2.08); /* AUTHENTIC IPHONE 16 PRO ASPECT RATIO */
    --phone-radius: 30px;
    --phone-screen-radius: 25px;
    --phone-bezel: 3px;
  }

  .luxury-phone-frame {
    width: var(--phone-width) !important;
    height: var(--phone-height) !important;
  }

  .phone-screen {
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .phone-status-bar {
    height: 18px !important;
    padding: 2px 9px 0 !important;
    font-size: 8.5px !important;
  }

  .phone-dynamic-island {
    width: 54px !important;
    height: 13px !important;
    top: 2px !important;
  }

  .phone-app {
    padding: 1px 7px 2px !important;
  }

  .phone-app-inner {
    gap: 1.5px !important;
  }

  .phone-user-header {
    height: 18px !important;
    margin: 0 !important;
  }

  .phone-avatar-box {
    width: 17px !important;
    height: 17px !important;
  }

  .phone-avatar-txt {
    font-size: 7.5px !important;
  }

  .phone-client-row b {
    font-size: 8.5px !important;
  }

  .phone-verified-badge {
    width: 8.5px !important;
    height: 8.5px !important;
    font-size: 6px !important;
  }

  .phone-welcome small {
    font-size: 5.5px !important;
  }

  .phone-demat-badge {
    font-size: 6px !important;
    padding: 1px 5px !important;
  }

  .phone-portfolio-card {
    padding: 3px 5px 2px !important;
    border-radius: 8px !important;
  }

  .phone-card-label {
    font-size: 6px !important;
  }

  .phone-mandate-badge {
    font-size: 5.5px !important;
    padding: 0.5px 3px !important;
  }

  .phone-net-worth {
    font-size: 14.5px !important;
    margin: 0 !important;
  }

  .phone-gain-badge {
    font-size: 6.5px !important;
    white-space: nowrap !important;
  }

  .phone-gain-badge svg {
    width: 6.5px !important;
    height: 6.5px !important;
  }

  .phone-alpha-metric {
    font-size: 5.5px !important;
    padding: 0.5px 2.5px !important;
  }

  .phone-chart-wrap svg {
    height: 20px !important;
  }

  .phone-timeframes span {
    font-size: 5px !important;
    padding: 0 1.5px !important;
  }

  .phone-alloc-strip {
    padding: 2px 4px !important;
    border-radius: 6px !important;
  }

  .phone-alloc-meta {
    font-size: 5px !important;
    margin-bottom: 1.5px !important;
  }

  .phone-alloc-bar {
    height: 3px !important;
  }

  .phone-assets-list {
    gap: 1.5px !important;
  }

  .phone-asset-item {
    padding: 2px 4px !important;
    border-radius: 5px !important;
  }

  .indicator {
    width: 11px !important;
    height: 11px !important;
    font-size: 6.5px !important;
    border-radius: 3px !important;
  }

  .phone-asset-item .name {
    font-size: 6.8px !important;
    white-space: nowrap !important;
  }

  .phone-asset-item .sub {
    font-size: 5px !important;
    white-space: nowrap !important;
  }

  .phone-asset-item .val {
    font-size: 7px !important;
    white-space: nowrap !important;
  }

  .phone-asset-item .stat {
    font-size: 5px !important;
  }

  .phone-action-card {
    padding: 2.5px 5px !important;
    border-radius: 6px !important;
  }

  .pac-order-code {
    font-size: 5px !important;
  }

  .pac-churn-badge {
    font-size: 4.5px !important;
  }

  .pac-order-summary {
    font-size: 6.5px !important;
  }

  .phone-tap-btn {
    padding: 2.5px 6px !important;
    font-size: 6.5px !important;
  }

  .phone-tab-bar {
    height: 17px !important;
  }

  .ptab-tab svg {
    width: 9px !important;
    height: 9px !important;
  }

  .ptab-tab span {
    font-size: 4.5px !important;
  }

  .phone-home-indicator {
    height: 2px !important;
    width: 48px !important;
    margin: 1px auto !important;
  }

  /* Synchronized Mobile Narrative Card */
  .journey-mobile-narrative {
    display: block !important;
    width: min(340px, 94vw) !important;
    margin: 1px auto 0 !important;
    z-index: 25 !important;
    flex-shrink: 0 !important;
  }

  .journey-mobile-card-pill {
    background: rgba(255, 255, 255, 0.94) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid var(--border-medium) !important;
    border-radius: 12px !important;
    padding: 6px 10px !important;
    box-shadow: 0 6px 20px rgba(18, 26, 22, 0.08) !important;
  }

  .jm-card-top {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 2px !important;
    flex-wrap: nowrap !important;
  }

  .jm-badge {
    font-size: 7.5px !important;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--gold-dark);
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
  }

  .jm-nav-controls {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 4px !important;
    flex-shrink: 0 !important;
  }

  .jm-nav-btn {
    background: var(--surface-subtle);
    border: 1px solid var(--border-medium);
    width: 18px !important;
    height: 18px !important;
    border-radius: 50%;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--green);
    cursor: pointer;
    padding: 0 !important;
    flex-shrink: 0 !important;
  }

  .jm-nav-btn:active {
    transform: scale(0.92);
  }

  .jm-pips {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 3px !important;
    flex-shrink: 0 !important;
  }

  .jm-pip {
    width: 10px;
    height: 3px;
    border-radius: 2px;
    background: rgba(28, 35, 30, 0.18);
    transition: all 0.25s ease;
    cursor: pointer;
  }

  .jm-pip.active {
    width: 18px;
    background: var(--gold);
    box-shadow: 0 0 6px rgba(184, 144, 71, 0.4);
  }

  .jm-title {
    font-family: var(--font-serif);
    font-size: 11.5px !important;
    line-height: 1.2 !important;
    color: var(--green);
    margin: 1px 0 1px !important;
  }

  .jm-desc {
    font-size: 9.5px !important;
    line-height: 1.3 !important;
    color: var(--text-body);
    margin: 0 !important;
  }

  .journey-stage-lead {
    font-size: 11.5px;
    max-width: 44ch;
  }

  .journey-kicker {
    font-size: 9.5px;
    padding: 3px 10px;
  }

  .journey-ambient-glow {
    width: 380px;
    height: 380px;
    filter: blur(55px);
  }

  /* Performance Section on Mobile: 100% card width, zero side clipping */
  .perf-mobile-switcher {
    display: flex;
  }

  #perf-grid {
    display: grid !important;
    grid-auto-flow: column !important;
    grid-auto-columns: 100% !important;
    grid-template-columns: none !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    gap: 16px !important;
    margin: 0 !important;
    padding: 4px 0 16px !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch !important;
  }

  #perf-grid::-webkit-scrollbar {
    display: none !important;
  }

  #perf-grid .pcard {
    scroll-snap-align: center !important;
    scroll-snap-stop: always !important;
    width: 100% !important;
    min-width: 100% !important;
    box-sizing: border-box !important;
  }

  .byld-dock {
    padding: 5px 8px 5px 14px;
    bottom: 12px;
    gap: 8px;
    max-width: calc(100% - 32px);
  }
  .byld-dock-text { font-size: 10.5px; }
  .byld-dock-btn { padding: 6px 12px; font-size: 10.5px; }
}

@media (max-width: 480px) {
  :root {
    --phone-height: min(340px, calc(100dvh - 270px));
    --phone-width: calc(var(--phone-height) / 2.08);
    --phone-radius: 30px;
    --phone-screen-radius: 25px;
    --phone-bezel: 4px;
  }

  .journey-sticky-viewport {
    padding-top: 58px !important;
    padding-bottom: 16px !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  .journey-stage-title {
    font-size: 19px;
  }

  .phone-net-worth {
    font-size: 17px;
  }

  .jm-title {
    font-size: 13px;
  }

  .jm-desc {
    font-size: 10px;
  }
}

/* =============================================================================
   QUIET LUXURY CLIENT SIGN-IN MODAL (#login-modal)
   ============================================================================= */
.login-modal-scrim {
  position: fixed;
  inset: 0;
  background: rgba(13, 22, 20, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 998;
}

.login-modal-box {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 440px;
  background: var(--cream);
  border: 1px solid rgba(184, 144, 71, 0.35);
  border-radius: var(--radius-xl);
  padding: 30px 28px 26px;
  box-shadow: 0 24px 60px -12px rgba(13, 22, 20, 0.4), 0 0 24px rgba(184, 144, 71, 0.12);
  z-index: 999;
}

.login-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.login-modal-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.login-modal-brand svg {
  color: var(--gold);
}

.login-modal-badge {
  font-family: var(--font-sans);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.login-close-btn {
  background: none;
  border: 1px solid var(--line-medium);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
}

.login-close-btn:hover {
  color: var(--green);
  border-color: var(--green);
}

.login-title {
  font-family: var(--font-serif);
  font-size: 23px;
  color: var(--green);
  font-weight: 500;
  margin-bottom: 4px;
}

.login-sub {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--body-text);
  margin-bottom: 18px;
}

.login-input-group {
  margin-bottom: 14px;
}

.login-label {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 6px;
}

.login-phone-wrapper {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line-medium);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.login-phone-wrapper:focus-within {
  border-color: var(--gold);
}

.login-cc {
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--green);
  background: var(--cream2);
  border-right: 1px solid var(--line-medium);
}

.login-phone-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--green);
  outline: none;
}

.login-submit-btn {
  width: 100%;
  padding: 11px;
  font-size: 13px;
  margin-top: 6px;
  cursor: pointer;
}

.login-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 16px 0 12px;
}

.login-divider::before,
.login-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid var(--line-medium);
}

.login-divider span {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--dim);
  padding: 0 10px;
}

.login-demo-btn {
  width: 100%;
  padding: 10px 14px;
  background: rgba(184, 144, 71, 0.08);
  border: 1px solid rgba(184, 144, 71, 0.3);
  border-radius: var(--radius-pill);
  color: var(--green);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: all 0.2s ease;
}

.login-demo-btn:hover {
  background: rgba(184, 144, 71, 0.16);
  border-color: var(--gold);
}

.ldb-dot {
  font-size: 8px;
  color: #108A56;
}

@media (prefers-reduced-motion: reduce) {
  .luxury-phone-frame,
  .phone-app-scroll,
  .phone-3d-shadow,
  .phone-glass-glare {
    transition: none !important;
    animation: none !important;
  }
}

/* =============================================================================
   SEBI RIA FIDUCIARY CHAT — Portfolio Architect
   ============================================================================= */
#portfolio-drawer .suite-drawer-panel {
  display: flex !important;
  flex-direction: column !important;
  height: 100vh !important;
  height: 100dvh !important;
  overflow: hidden !important;
}

#portfolio-drawer .suite-drawer-body {
  flex: 1 1 0% !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 0 !important;
  overflow: hidden !important;
}

#portfolio-drawer:has(#port-pane-architect.active) .suite-drawer-body,
#portfolio-drawer.mode-architect .suite-drawer-body,
#portfolio-drawer .suite-drawer-body:has(#port-pane-architect.active) {
  padding: 0 !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 0% !important;
  min-height: 0 !important;
  height: 100% !important;
  background: var(--cream);
}

#portfolio-drawer #port-pane-architect {
  display: none;
}

#portfolio-drawer #port-pane-architect.active,
#portfolio-drawer.mode-architect #port-pane-architect {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 0% !important;
  min-height: 0 !important;
  height: 100% !important;
  width: 100% !important;
  overflow: hidden !important;
}

#portfolio-drawer #port-pane-portfolios {
  display: none;
}

#portfolio-drawer #port-pane-portfolios.active,
#portfolio-drawer.mode-portfolios #port-pane-portfolios {
  display: block !important;
  flex: 1 1 0% !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  padding: 24px 32px 64px !important;
}

.ria-chat {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 0% !important;
  min-height: 0 !important;
  height: 100% !important;
  width: 100% !important;
  background: var(--cream);
  overflow: hidden !important;
  position: relative !important;
}

.ria-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 249, 245, 0.92);
  flex-shrink: 0;
}

.ria-chat-status {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ria-chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #18221D;
  color: #FBF9F5;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.ria-chat-status b {
  display: block;
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 500;
  color: var(--green);
  letter-spacing: -0.02em;
}

.ria-chat-status small {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #3D6B54;
  font-weight: 500;
}

.ria-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #108A56;
  box-shadow: 0 0 0 3px rgba(16, 138, 86, 0.16);
}

.ria-chat-reset {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1);
}

.ria-chat-reset:active {
  transform: scale(0.97);
}

.ria-chat-stream {
  flex: 1 1 0% !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 24px 28px 16px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  scrollbar-color: rgba(184, 144, 71, 0.4) transparent;
  scroll-behavior: smooth;
}

.ria-msg {
  max-width: min(62ch, 86%);
  animation: riaIn 280ms cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes riaIn {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.ria-msg.advisor {
  align-self: flex-start;
}

.ria-msg.client {
  align-self: flex-end;
}

.ria-bubble {
  padding: 12px 16px;
  font-size: 14.5px;
  line-height: 1.55;
  letter-spacing: -0.01em;
}

.ria-msg.advisor .ria-bubble {
  background: #F3EEE4;
  color: #18221D;
  border-radius: 4px 18px 18px 18px;
}

.ria-msg.client .ria-bubble {
  background: #18221D;
  color: #FBF9F5;
  border-radius: 18px 4px 18px 18px;
}

.ria-typing {
  padding: 12px 16px;
  background: #F3EEE4;
  border-radius: 4px 18px 18px 18px;
  width: fit-content;
  font-size: 13px;
  color: #6B5A32;
}

.ria-mandate {
  align-self: stretch;
  max-width: 100%;
  background: var(--surface);
  border: 1px solid var(--line-medium);
  border-radius: 16px;
  padding: 18px 20px 16px;
}

.ria-mandate h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--green);
  letter-spacing: -0.02em;
  margin: 0 0 4px;
}

.ria-mandate .ria-tagline {
  font-size: 13px;
  color: #4A5852;
  margin: 0 0 16px;
}

.ria-sleeve {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  font-size: 13px;
  margin-bottom: 10px;
}

.ria-sleeve span { color: #4A5852; }
.ria-sleeve b {
  font-variant-numeric: tabular-nums;
  color: var(--green);
  font-weight: 600;
}

.ria-track {
  grid-column: 1 / -1;
  height: 4px;
  background: rgba(24, 34, 29, 0.08);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 6px;
}

.ria-fill { height: 100%; border-radius: 4px; }
.ria-fill.core { background: #B89047; }
.ria-fill.shield { background: #108A56; }
.ria-fill.tax { background: #3D6B54; }

.ria-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 14px 0 12px;
}

.ria-metrics div {
  background: var(--cream2);
  border-radius: 10px;
  padding: 10px 8px;
  text-align: center;
}

.ria-metrics b {
  display: block;
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--green);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.ria-metrics span {
  font-size: 10.5px;
  color: #4A5852;
}

.ria-mandate p.note {
  font-size: 12px;
  line-height: 1.5;
  color: #4A5852;
  margin: 0 0 14px;
}

.ria-push {
  width: 100%;
  border: 0;
  background: #18221D;
  color: #FBF9F5;
  font-size: 13.5px;
  font-weight: 600;
  padding: 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1);
}

.ria-push:active { transform: scale(0.98); }

.ria-chat-dock {
  flex-shrink: 0 !important;
  margin-top: auto !important;
  padding: 12px 24px 22px !important;
  background: linear-gradient(180deg, rgba(251, 249, 245, 0.82) 0%, rgba(251, 249, 245, 0.98) 24%, #FBF9F5 100%) !important;
  border-top: 1px solid var(--line-medium) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 -4px 20px rgba(24, 34, 29, 0.04);
  z-index: 20;
}

.ria-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.ria-chip {
  border: 1px solid var(--line-medium);
  background: var(--surface);
  color: var(--green);
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1), background-color 180ms ease, border-color 180ms ease;
}

.ria-chip:hover {
  border-color: var(--gold);
  background: #FBF9F5;
}

.ria-chip:active { transform: scale(0.97); }

.ria-composer {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  background: var(--surface);
  border: 1px solid var(--line-medium);
  border-radius: 22px;
  padding: 6px 6px 6px 16px;
}

.ria-composer:focus-within { border-color: var(--gold); }

.ria-composer textarea {
  flex: 1;
  border: 0;
  resize: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 14.5px;
  line-height: 1.4;
  color: var(--green);
  outline: none;
  min-height: 24px;
  max-height: 88px;
  padding: 8px 0;
}

.ria-composer textarea::placeholder { color: #6B7872; }

.ria-send {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #18221D;
  color: #FBF9F5;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1);
}

.ria-send:active { transform: scale(0.97); }
.ria-send:disabled { opacity: 0.4; cursor: default; }

@media (max-width: 720px) {
  .ria-chat-head { padding: 10px 16px !important; }
  .ria-chat-stream { padding: 16px 16px 12px !important; }
  .ria-chat-dock { padding: 10px 16px 18px !important; }
  .ria-metrics { grid-template-columns: 1fr; }
  .ria-msg { max-width: 92%; }
}

