/* ==========================================================================
   Experience: a vertical list of roles on a rail. Each role pairs its notes
   with paper "sketches" of the work (drawn in HTML, since the real screens
   are internal).
   ========================================================================== */

.experience { padding: clamp(100px, 12vw, 170px) 0 clamp(60px, 8vw, 110px); }
.exp-list { position: relative; display: flex; flex-direction: column; gap: clamp(36px, 5vw, 72px); padding-left: 44px; }
.exp-rail { position: absolute; left: 6px; top: 30px; bottom: 30px; width: 1px; background: var(--line); }
.exp-rail i { position: absolute; inset: 0; background: var(--accent); transform-origin: top; transform: scaleY(0); transition: background 1s; }
.exp-dot {
    position: absolute; left: -43px; top: clamp(30px, 3.4vw, 50px); width: 11px; height: 11px; border-radius: 50%;
    background: var(--bg); border: 1px solid var(--muted); transition: background 0.5s, border-color 0.5s, box-shadow 0.5s;
}
.exp-panel.is-lit .exp-dot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 14px var(--accent); }

.exp-panel {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px);
    padding: clamp(24px, 3.2vw, 46px); border-radius: 26px; border: 1px solid var(--line);
    background: var(--card); backdrop-filter: blur(14px);
}
.exp-info { display: flex; flex-direction: column; }
.exp-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.exp-logo { display: flex; align-items: center; height: 44px; }
.exp-logo img { height: 100%; width: auto; max-width: 170px; object-fit: contain; }
.exp-logo .logo-bny { height: 34px; filter: brightness(0) invert(0.93); }
[data-theme="light"] .exp-logo .logo-bny { filter: none; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--ok) 45%, transparent); color: var(--ok); }
.badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); animation: ping 2.4s infinite; }
.exp-when { color: var(--muted); text-transform: none; letter-spacing: 0.01em; margin-bottom: 8px; }
.exp-role { font-family: var(--display); font-weight: var(--display-weight); font-stretch: var(--display-stretch); font-size: clamp(22px, 2.1vw, 32px); line-height: 1.05; letter-spacing: -0.025em; }
.exp-company { color: var(--accent); font-size: 14px; margin: 6px 0 16px; transition: color 1s; }
.exp-summary { color: var(--ink-2); font-size: 15.5px; margin-bottom: 18px; }
.exp-points { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.exp-points li { position: relative; padding-left: 20px; color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }
.exp-points li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 9px; height: 1px; background: var(--accent); }
.exp-points b { color: var(--ink); font-weight: 600; }
.exp-info .chips { margin-top: auto; }

/* ---------- Sketches ---------- */
.exp-sketches { position: relative; min-height: 460px; }
.sketch {
    position: absolute; margin: 0; padding: 7px 7px 0; border-radius: 6px;
    background: var(--paper); color: var(--paper-ink); box-shadow: var(--shadow);
    transition: rotate 0.6s var(--ease), scale 0.6s var(--ease);
}
.sketch::before {
    content: ""; position: absolute; top: -6px; left: 50%; width: 11px; height: 11px; margin-left: -5px; border-radius: 50%; z-index: 2;
    background: radial-gradient(circle at 35% 35%, color-mix(in srgb, var(--accent) 50%, #fff), var(--accent) 60%, color-mix(in srgb, var(--accent) 60%, #000));
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.35);
}
.sketch:hover { rotate: 0deg !important; scale: 1.04; z-index: 4; }
.sketch figcaption { font-family: var(--mono); font-size: 10px; padding: 7px 2px 8px; color: color-mix(in srgb, var(--paper-ink) 70%, transparent); }
.sketch-body { border-radius: 3px; overflow: hidden; }
.sketch.s1 { left: 0; top: 0; width: 62%; rotate: -2deg; z-index: 2; }
.sketch.s2 { right: 0; top: 30%; width: 58%; rotate: 2.5deg; z-index: 3; }
.sketch.s3 { left: 8%; bottom: 0; width: 56%; rotate: -1deg; z-index: 1; }
.sketch.s1.phone { left: 6%; width: 40%; }
.exp-panel[data-index="1"] .sketch.s2 { top: 22%; width: 52%; }

/* Wealth assistant */
.mock-agent { display: flex; flex-direction: column; gap: 7px; background: #f7f6f3; }
.agent-head { display: flex; justify-content: space-between; font-size: 11px; padding-bottom: 6px; border-bottom: 1px solid #e7e6e1; }
.agent-head span { font-family: var(--mono); font-size: 9px; color: #6a8f5c; }
.agent-steps { display: flex; flex-direction: column; gap: 3px; padding: 6px 8px; border-radius: 6px; background: #efeee9; font-size: 9px; text-transform: none; color: #6d6c74; }
.agent-steps li::before { content: "→ "; color: var(--accent); }

/* Plain language to DSL */
.mock-dsl { padding: 0; background: #1d1d22; }
.dsl-q { margin: 10px; padding: 7px 10px 7px 26px; border-radius: 7px; background: #fff; color: #232227; font-size: 11px; position: relative; }
.dsl-q::before { content: ""; position: absolute; left: 9px; top: 50%; width: 8px; height: 8px; margin-top: -5px; border: 1.5px solid #8a8990; border-radius: 50%; }
.mock-dsl pre { margin: 0; padding: 4px 12px 12px; font-size: 9.5px; line-height: 1.5; color: #e6e5e0; text-transform: none; letter-spacing: 0; white-space: pre; overflow: hidden; }

/* Monte Carlo fan */
.mock-fan { background: #fcfcfb; }
.fan-head { display: flex; justify-content: space-between; font-size: 11px; margin-bottom: 6px; }
.fan-head span { font-family: var(--mono); font-size: 9px; color: #8a8990; }
.mock-fan svg { width: 100%; height: 92px; display: block; }
.mock-fan .band { fill: color-mix(in srgb, var(--accent) 16%, #fff); }
.mock-fan .p { fill: none; stroke: #b3b2ab; stroke-width: 1; }
.mock-fan .median { fill: none; stroke: var(--accent); stroke-width: 2; }
.alloc { display: flex; gap: 2px; height: 7px; margin-top: 8px; border-radius: 4px; overflow: hidden; }
.alloc i { width: var(--w); background: color-mix(in srgb, var(--accent) 85%, #fff); }
.alloc i:nth-child(2) { background: color-mix(in srgb, var(--accent) 55%, #fff); }
.alloc i:nth-child(3) { background: color-mix(in srgb, var(--accent) 32%, #fff); }
.alloc i:nth-child(4) { background: #dcdad4; }

/* Photoshop Express style phone */
.mock-psx { padding: 8px; background: #1b1b1f; color: #eee; }
.psx-photo { aspect-ratio: 3 / 4; border-radius: 8px; overflow: hidden; position: relative;
    background: linear-gradient(180deg, #f7c59f 0%, #f39a8a 38%, #6a7fb4 70%, #2f3a5e 100%); }
.psx-photo span { position: absolute; left: 18%; right: 18%; bottom: 0; height: 42%; border-radius: 50% 50% 0 0; background: #232a44; }
.psx-label { font-size: 8.5px; color: #9c9ba3; text-transform: uppercase; margin: 8px 2px 6px; }
.psx-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.psx-actions li { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 8px; color: #c9c8c2; }
.psx-actions i { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), #6f86ff); }

/* Premium animation */
.mock-premium { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px 16px; background: radial-gradient(120% 120% at 0% 0%, #2a2333, #141418); color: #f1eff5; }
.mock-premium p { font-size: 12.5px; color: #c9c6d3; }
.premium-badge {
    position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
    font-size: 11px; font-weight: 600; color: #1b1b1f; background: linear-gradient(90deg, #f7d27a, #f39a6b);
}
.premium-badge::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.75) 50%, transparent 70%); transform: translateX(-120%); animation: shimmer 2.6s ease-in-out infinite; }
.premium-badge i { font-style: normal; display: inline-block; animation: twinkle 2.6s ease-in-out infinite; }
.premium-btn { font-size: 11px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.25); }
@keyframes shimmer { 0%, 35% { transform: translateX(-120%); } 70%, 100% { transform: translateX(120%); } }
@keyframes twinkle { 0%, 100% { transform: scale(1) rotate(0deg); } 50% { transform: scale(1.35) rotate(90deg); } }

/* ---------- Phones: sketches become a swipeable row ---------- */
@media (max-width: 900px) {
    .exp-list { padding-left: 24px; }
    .exp-rail { left: 3px; }
    .exp-dot { left: -26px; }
    .exp-panel { grid-template-columns: 1fr; padding: 22px 18px; }
    .exp-sketches {
        min-height: 0; display: flex; align-items: flex-start; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
        margin: 0 -18px; padding: 12px 18px 4px; order: 2;
    }
    .sketch, .sketch.s1, .sketch.s2, .sketch.s3, .sketch.s1.phone, .exp-panel[data-index="1"] .sketch.s2 {
        position: relative; inset: auto; flex: 0 0 68vw; width: auto; rotate: 0deg; scroll-snap-align: start;
    }
    .sketch.s1.phone { flex-basis: 44vw; }
}
