/* ═══════════════════════════════════════════════════════════════════
   Showcase sections (index.html) — four ways to present what MIT does:
     #services       Five pillars — expanding columns, each with a live mini scene
     #sub-services   Kinetic wall — the 15 services stream past in huge type
     #ai-products    Live AI console — pick a product, watch it answer
     #subscription   The MIT Pass — a 3D membership card you can put your name on
   All colours come from the --sx-* tokens: light by default, dark under
   [data-theme="glass"]. Pillar tones use the brand palette only.
   ═══════════════════════════════════════════════════════════════════ */
.sx {
    --sx-ink: #1a0e2e;
    --sx-soft: rgba(26,14,46,0.74);
    --sx-mute: rgba(26,14,46,0.56);
    --sx-line: rgba(26,14,46,0.12);
    --sx-surface: #ffffff;
    --sx-chip: rgba(255,255,255,0.86);
    --sx-bubble: #f5f2fa;
    --sx-track: rgba(26,14,46,0.08);
    --sx-shadow: 0 22px 46px -30px rgba(52,71,103,0.45);
    --sx-shadow-lg: 0 40px 80px -40px rgba(76,29,110,0.45);
    --sx-console: linear-gradient(#ffffff, #ffffff);
    --sx-badge: rgba(255,255,255,0.78);
    --sx-outline: rgba(26,14,46,0.32);
    --sx-grad: linear-gradient(110deg, #00a6ae 0%, #8A328A 62%, #C77DBA 100%);
    --sx-teal: #00838c;
    --sx-pink: #8A328A;
    position: relative; color: var(--sx-ink); background: transparent;
    padding: 100px 0;
}
[data-theme="glass"] .sx {
    --sx-ink: #f6f1fc;
    --sx-soft: rgba(246,241,252,0.80);
    --sx-mute: rgba(246,241,252,0.60);
    --sx-line: rgba(255,255,255,0.14);
    --sx-surface: rgba(255,255,255,0.055);
    --sx-chip: rgba(255,255,255,0.07);
    --sx-bubble: rgba(255,255,255,0.06);
    --sx-track: rgba(255,255,255,0.09);
    --sx-shadow: 0 22px 50px -30px rgba(0,0,0,0.7);
    --sx-shadow-lg: 0 40px 90px -40px rgba(0,0,0,0.85);
    --sx-console: linear-gradient(160deg, #1d1530, #150f24);
    --sx-badge: rgba(22,15,38,0.72);
    --sx-outline: rgba(246,241,252,0.42);
    --sx-grad: linear-gradient(110deg, #5eead4 0%, #FFB1FF 60%, #e0a5d6 100%);
    --sx-teal: #5eead4;
    --sx-pink: #FFB1FF;
}
.sx .btn-primary { background: linear-gradient(135deg, #00C9C6 0%, #8A328A 70%, #C77DBA 100%); color: #fff; box-shadow: 0 14px 30px -12px rgba(138,50,138,0.75); }
.sx .btn-primary:hover { box-shadow: 0 18px 36px -12px rgba(199,125,186,0.8); }

/* shared heading */
.sx-head { max-width: 900px; margin: 0 auto 52px; text-align: center; }
.sx-over { display: inline-flex; align-items: center; gap: 8px; padding: 6px 15px; border-radius: 999px; margin: 0 0 18px;
    background: var(--sx-chip); border: 1px solid var(--sx-line);
    font-family: var(--font-heading); font-size: .82rem; font-weight: 800; letter-spacing: 2.4px; color: var(--sx-pink); }
.sx-over .material-icons-round { font-size: 17px; }
.sx-title { font-family: var(--font-heading); font-size: clamp(2.4rem, 5.4vw, 4.6rem); font-weight: 900; line-height: 1; letter-spacing: -2px; margin: 0 0 18px; color: var(--sx-ink); }
.sx-title span { background: var(--sx-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.sx-lead { font-size: 1.15rem; line-height: 1.6; color: var(--sx-soft); max-width: 660px; margin: 0 auto; }


/* ══════════════════════════════════════════════════════════════════
   1 · FIVE PILLARS
   ══════════════════════════════════════════════════════════════════ */
.pl-row { display: flex; gap: 14px; height: 540px; }
.pl {
    --t1: #8A328A; --t2: #FFB1FF; --tc: var(--t1);
    --pl-on: linear-gradient(155deg, #8A328A, #4b1d5a);
    position: relative; flex: 1 1 0; min-width: 0; border-radius: 26px; overflow: hidden;
    background: var(--sx-surface);
    background: color-mix(in srgb, var(--t1) 8%, var(--sx-surface));
    border: 1px solid var(--sx-line);
    border-color: color-mix(in srgb, var(--t1) 22%, transparent);
    transition: flex-grow .75s cubic-bezier(.22,1,.36,1), box-shadow .5s ease, transform .4s ease;
}
[data-theme="glass"] .pl { --tc: var(--t2); }
.pl--creative  { --t1: #b04fa6; --t2: #FFB1FF; --pl-on: linear-gradient(155deg, #c25cb6 0%, #8A328A 100%); }
.pl--marketing { --t1: #8A328A; --t2: #e0a5d6; --pl-on: linear-gradient(155deg, #8A328A 0%, #4b1d5a 100%); }
.pl--technical { --t1: #344767; --t2: #A4ABBD; --pl-on: linear-gradient(155deg, #3d5480 0%, #1f2b45 100%); }
.pl--software  { --t1: #00a3a6; --t2: #5eead4; --pl-on: linear-gradient(155deg, #00a3a6 0%, #00566e 100%); }
.pl--business  { --t1: #006E91; --t2: #FFF7D6; --pl-on: linear-gradient(155deg, #006E91 0%, #344767 100%); }
.pl::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; z-index: 2; background: linear-gradient(90deg, var(--t1), var(--t2)); }
.pl:not(.is-active):hover { transform: translateY(-4px); box-shadow: var(--sx-shadow); }
.pl.is-active { flex-grow: 6.2; background: var(--pl-on); border-color: transparent; color: #fff;
    box-shadow: 0 34px 70px -34px var(--t1); }
.pl.is-active::before { background: linear-gradient(90deg, rgba(255,255,255,0.7), rgba(255,255,255,0.15)); }

.pl-h { margin: 0; font: inherit; }
.pl-tab { position: absolute; inset: 0; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: space-between;
    padding: 28px 0 24px; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; text-align: left; }
.pl-tab:focus-visible { outline: 3px solid var(--tc); outline-offset: -6px; border-radius: 24px; }
.pl-num { font-family: var(--font-heading); font-size: 1rem; font-weight: 800; letter-spacing: 1px; color: var(--tc); }
.pl-name { writing-mode: vertical-rl; transform: rotate(180deg); font-family: var(--font-heading); font-size: 1.9rem; font-weight: 900; letter-spacing: -0.5px; color: var(--sx-ink); white-space: nowrap; }
.pl-ico { width: 50px; height: 50px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 25px; color: var(--tc);
    background: color-mix(in srgb, var(--t1) 14%, transparent); }

.pl.is-active .pl-tab { position: relative; inset: auto; flex-direction: row; justify-content: flex-start; align-items: baseline; gap: 16px; padding: 36px 40px 0; cursor: default; }
.pl.is-active .pl-num { color: rgba(255,255,255,0.7); }
.pl.is-active .pl-name { writing-mode: horizontal-tb; transform: none; font-size: clamp(2.6rem, 4vw, 4rem); letter-spacing: -1.5px; color: #fff; }
.pl.is-active .pl-ico { display: none; }

.pl-body { display: none; }
.pl.is-active .pl-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 0.9fr); gap: 34px; align-items: center;
    padding: 20px 40px 36px; animation: plIn .6s cubic-bezier(.22,1,.36,1) .25s both; }
@keyframes plIn { from { opacity: 0; transform: translateY(14px); } }
.pl-tag { margin: 0 0 12px; font-family: var(--font-heading); font-size: 1.55rem; font-weight: 800; line-height: 1.2; color: #fff; }
.pl-desc { margin: 0 0 18px; font-size: 1.02rem; line-height: 1.65; color: rgba(255,255,255,0.88); }
.pl-chips { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pl-chips li { padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.26); font-size: .86rem; font-weight: 700; color: #fff; }
.pl-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: #fff; text-decoration: none; }
.pl-link .material-icons-round { font-size: 19px; transition: transform .25s; }
.pl-link:hover .material-icons-round { transform: translateX(4px); }

/* mini scenes (replay every time a pillar opens) */
.pv { position: relative; height: 250px; border-radius: 20px; overflow: hidden;
    background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.22); box-shadow: inset 0 1px 0 rgba(255,255,255,0.25); }
.pv-pop { position: absolute; display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px 7px 9px; border-radius: 999px;
    background: #fff; color: var(--t1); font-size: .86rem; font-weight: 800; box-shadow: 0 12px 26px -10px rgba(0,0,0,0.45);
    animation: pvPop .55s cubic-bezier(.34,1.56,.64,1) .8s both; }
.pv-pop .material-icons-round { font-size: 18px; }
@keyframes pvPop { from { opacity: 0; transform: translateY(10px) scale(.7); } }

/* creative: a pen-tool curve drawing itself, swatches, type */
.pv-pen { position: absolute; left: 7%; top: 14px; width: 86%; overflow: visible; }
.pv-curve { fill: none; stroke: #fff; stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 300; stroke-dashoffset: 300; animation: pvDraw 1.6s cubic-bezier(.6,0,.3,1) .35s forwards; }
.pv-handle { stroke: rgba(255,255,255,0.55); stroke-width: 1.5; }
.pv-anchor { fill: #fff; } .pv-knob { fill: none; stroke: #fff; stroke-width: 2; }
@keyframes pvDraw { to { stroke-dashoffset: 0; } }
.pv-swatches { position: absolute; left: 22px; bottom: 22px; display: flex; }
.pv-swatches i { width: 34px; height: 34px; border-radius: 50%; margin-right: -9px; border: 3px solid rgba(255,255,255,0.9); animation: pvPop .5s cubic-bezier(.34,1.56,.64,1) both; }
.pv-swatches i:nth-child(1) { background: #344767; animation-delay: .9s; }
.pv-swatches i:nth-child(2) { background: #8A328A; animation-delay: 1s; }
.pv-swatches i:nth-child(3) { background: #FFB1FF; animation-delay: 1.1s; }
.pv-swatches i:nth-child(4) { background: #00C9C6; animation-delay: 1.2s; }
.pv-swatches i:nth-child(5) { background: #FFF7D6; animation-delay: 1.3s; }
.pv-type { position: absolute; right: 22px; bottom: 10px; font-family: var(--font-heading); font-size: 3.6rem; font-weight: 900; letter-spacing: -2px; color: #fff; animation: pvPop .6s cubic-bezier(.34,1.56,.64,1) 1.2s both; }

/* marketing: bars rising + notifications */
.pv-bars { position: absolute; left: 22px; right: 22px; bottom: 0; height: 74%; display: flex; align-items: flex-end; gap: 10px; }
.pv-bars i { flex: 1; height: var(--h); border-radius: 9px 9px 0 0; background: linear-gradient(180deg, #fff, rgba(255,255,255,0.3)); transform-origin: bottom; animation: pvGrow .8s cubic-bezier(.22,1,.36,1) both; }
.pv-bars i:nth-child(2) { animation-delay: .08s; } .pv-bars i:nth-child(3) { animation-delay: .16s; } .pv-bars i:nth-child(4) { animation-delay: .24s; } .pv-bars i:nth-child(5) { animation-delay: .32s; } .pv-bars i:nth-child(6) { animation-delay: .4s; }
@keyframes pvGrow { from { transform: scaleY(0); } }
.pv-marketing .pv-pop { top: 18px; right: 18px; }
.pv-marketing .pv-pop--2 { top: 66px; left: 18px; right: auto; animation-delay: 1.15s; }

/* technical: a server rack with blinking lights */
.pv-rack { position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%); width: 74%; display: grid; gap: 10px; }
.pv-unit { height: 40px; border-radius: 11px; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.24); }
.pv-unit i { width: 9px; height: 9px; border-radius: 50%; background: #5eead4; box-shadow: 0 0 10px #5eead4; animation: pvBlink 1.4s steps(2) infinite; }
.pv-unit i:nth-child(2) { animation-delay: .3s; } .pv-unit i:nth-child(3) { background: #FFB1FF; box-shadow: 0 0 10px #FFB1FF; animation-delay: .7s; }
.pv-unit:nth-child(2) i { animation-duration: 1.1s; } .pv-unit:nth-child(3) i { animation-duration: 1.7s; }
.pv-unit b { margin-left: auto; width: 42%; height: 6px; border-radius: 3px; background: rgba(255,255,255,0.32); }
@keyframes pvBlink { 50% { opacity: .25; } }
.pv-technical .pv-pop { right: 18px; bottom: 16px; }

/* software: code typing itself */
.pv-code { position: absolute; inset: 18px; border-radius: 14px; padding: 38px 18px 14px; background: rgba(8,6,18,0.32); border: 1px solid rgba(255,255,255,0.14); }
.pv-dots { position: absolute; left: 14px; top: 13px; display: flex; gap: 5px; }
.pv-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.45); }
.pv-code p { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; animation: pvType .5s steps(8) both; }
.pv-code p.in { padding-left: 20px; } .pv-code p.in2 { padding-left: 40px; }
.pv-code p i { height: 8px; width: var(--w); border-radius: 4px; background: rgba(255,255,255,0.6); }
.pv-code p i:nth-child(2) { background: #5eead4; }
.pv-code p.in i:first-child { background: #FFB1FF; }
.pv-code p:nth-child(3) { animation-delay: .35s; } .pv-code p:nth-child(4) { animation-delay: .7s; } .pv-code p:nth-child(5) { animation-delay: 1.05s; } .pv-code p:nth-child(6) { animation-delay: 1.4s; }
.pv-code b { width: 2px; height: 15px; background: #fff; animation: pvBlink 1s steps(2) infinite; }
@keyframes pvType { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.pv-software .pv-pop { right: 26px; bottom: 26px; animation-delay: 1.8s; }

/* business: an automation flow with a dot travelling through it */
.pv-graph { position: absolute; left: 6%; top: 30px; width: 88%; overflow: visible; }
.pv-flow { fill: none; stroke: rgba(255,255,255,0.55); stroke-width: 3; stroke-dasharray: 7 9; stroke-linecap: round; animation: pvFlow 1.2s linear infinite; }
@keyframes pvFlow { to { stroke-dashoffset: -32; } }
.pv-node { fill: rgba(255,255,255,0.22); stroke: #fff; stroke-width: 2; }
.pv-node--end { fill: #fff; }
.pv-dot { fill: #FFF7D6; filter: drop-shadow(0 0 6px #FFF7D6); }
.pv-business .pv-pop { left: 18px; bottom: 18px; }


/* ══════════════════════════════════════════════════════════════════
   2 · KINETIC SERVICES WALL
   ══════════════════════════════════════════════════════════════════ */
.wall-section { overflow: hidden; padding-bottom: 80px; }
.wall-section .sx-head { margin-bottom: 34px; }
/* the real list: read by screen readers; shown as chips only when motion is reduced */
.wl-list { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; padding: 0; }
.wl { position: relative; display: grid; gap: 4px; padding: 6px 0;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.wl-row { overflow: hidden; }
.wl-track { display: flex; width: max-content; will-change: transform; }
.wl-item { display: inline-flex; align-items: center; gap: .3em; padding: 0 .35em; white-space: nowrap; cursor: default;
    font-family: var(--font-heading); font-size: clamp(2.6rem, 6.2vw, 6rem); font-weight: 900; letter-spacing: -2px; line-height: 1.12;
    transition: color .3s ease, -webkit-text-stroke-color .3s ease; }
.wl-item .material-icons-round { width: 1.25em; height: 1.25em; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    font-size: .58em; color: var(--sx-teal); -webkit-text-fill-color: currentColor; -webkit-text-stroke: 0; background: var(--sx-chip); border: 1px solid var(--sx-line); }
.wl-sep { display: inline-flex; align-items: center; padding: 0 .25em; font-size: clamp(1.3rem, 2.6vw, 2.4rem); color: var(--sx-pink); }
.wl-row--solid .wl-item { color: var(--sx-ink); }
.wl-row--outline .wl-item { color: transparent; -webkit-text-stroke: 2px var(--sx-outline); }
.wl-row--grad .wl-item { background: var(--sx-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.wl-row--solid .wl-item:hover { color: var(--sx-pink); }
.wl-row--outline .wl-item:hover { color: var(--sx-teal); -webkit-text-stroke-color: transparent; }
.wl-row--grad .wl-item:hover { -webkit-text-fill-color: var(--sx-ink); }

.wl-badge { position: absolute; left: 50%; top: 50%; z-index: 2; width: 196px; height: 196px; margin: -98px 0 0 -98px; border-radius: 50%;
    display: grid; place-items: center; background: var(--sx-badge); border: 1px solid var(--sx-line); box-shadow: var(--sx-shadow-lg);
    -webkit-backdrop-filter: blur(12px) saturate(1.4); backdrop-filter: blur(12px) saturate(1.4); }
.wl-badge svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: wlSpin 26s linear infinite; }
.wl-badge text { font-family: var(--font-heading); font-size: 14px; font-weight: 800; letter-spacing: 2px; fill: var(--sx-ink); }
.wl-badge img { width: 86px; height: 86px; object-fit: contain; animation: wlSpin 30s linear infinite reverse; }
@keyframes wlSpin { to { transform: rotate(360deg); } }
.wl-cta { margin: 30px 0 0; text-align: center; font-size: 1.05rem; color: var(--sx-soft); }
.wl-cta a { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; font-weight: 800; color: var(--sx-teal); text-decoration: none; }
.wl-cta a .material-icons-round { font-size: 19px; transition: transform .25s; }
.wl-cta a:hover .material-icons-round { transform: translateX(4px); }


/* ══════════════════════════════════════════════════════════════════
   3 · LIVE AI CONSOLE
   ══════════════════════════════════════════════════════════════════ */
.ai-wrap { display: grid; grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.15fr); gap: 34px; align-items: start; }
.ai-menu { display: grid; gap: 6px; }
.ai-tab { position: relative; display: flex; align-items: flex-start; gap: 14px; width: 100%; padding: 11px 16px; border-radius: 16px; overflow: hidden;
    border: 1px solid transparent; background: transparent; color: var(--sx-soft); font: inherit; text-align: left; cursor: pointer;
    transition: background .3s ease, border-color .3s ease, box-shadow .3s ease; }
.ai-tab > .material-icons-round { flex: none; width: 38px; height: 38px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 20px;
    color: var(--sx-teal); background: var(--sx-chip); border: 1px solid var(--sx-line); transition: background .3s, color .3s; }
.ai-tab-text { min-width: 0; }
.ai-tab b { display: block; padding-top: 8px; font-family: var(--font-heading); font-size: 1.02rem; font-weight: 800; line-height: 1.3; color: var(--sx-ink); }
.ai-tab small { display: none; margin-top: 6px; font-size: .9rem; line-height: 1.55; color: var(--sx-soft); }
.ai-tab:hover { background: var(--sx-chip); }
.ai-tab:focus-visible { outline: 3px solid #00C2CB; outline-offset: 2px; }
.ai-tab[aria-selected="true"] { background: var(--sx-surface); border-color: var(--sx-line); box-shadow: var(--sx-shadow); }
.ai-tab[aria-selected="true"] > .material-icons-round { color: #fff; border-color: transparent; background: linear-gradient(135deg, #00C2CB, #8A328A); }
.ai-tab[aria-selected="true"] small { display: block; }
.ai-tab[aria-selected="true"]::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 4px; border-radius: 0 4px 4px 0; background: linear-gradient(180deg, #00C9C6, #8A328A); }
/* autoplay progress along the bottom of the selected product */
.ai-menu.is-auto .ai-tab[aria-selected="true"]::after { content: ''; position: absolute; left: 16px; right: 16px; bottom: 0; height: 2px; border-radius: 2px;
    background: linear-gradient(90deg, #00C9C6, #8A328A); transform-origin: left; animation: aiProg var(--ai-dur, 7s) linear both; }
@keyframes aiProg { from { transform: scaleX(0); } }

.ai-console { position: sticky; top: 100px; display: flex; flex-direction: column; min-height: 540px; border-radius: 26px; overflow: hidden;
    border: 1.5px solid transparent; background: var(--sx-console) padding-box, linear-gradient(135deg, #00C9C6, #8A328A 55%, #FFB1FF) border-box;
    box-shadow: var(--sx-shadow-lg); }
.ai-bar { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--sx-line); }
.ai-dots { display: flex; gap: 6px; } .ai-dots i { width: 10px; height: 10px; border-radius: 50%; background: #FFB1FF; } .ai-dots i + i { background: #C77DBA; } .ai-dots i + i + i { background: #00C9C6; }
.ai-bar-title { display: inline-flex; align-items: center; gap: 7px; min-width: 0; font-size: .9rem; font-weight: 700; color: var(--sx-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai-bar-title img { width: 18px; height: 18px; }
.ai-bar-title b { color: var(--sx-ink); }
.ai-live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 800; color: var(--sx-teal); white-space: nowrap; }
.ai-live i { width: 8px; height: 8px; border-radius: 50%; background: #00C9C6; box-shadow: 0 0 0 0 rgba(0,201,198,0.6); animation: aiPulse 1.8s infinite; }
@keyframes aiPulse { 70% { box-shadow: 0 0 0 8px rgba(0,201,198,0); } 100% { box-shadow: 0 0 0 0 rgba(0,201,198,0); } }

.ai-chat { flex: 1; display: flex; flex-direction: column; gap: 18px; padding: 26px 26px 12px; }
.ai-q { align-self: flex-end; max-width: 86%; margin: 0; padding: 12px 16px; border-radius: 18px 18px 4px 18px;
    background: linear-gradient(135deg, #00C9C6, #006E91); color: #fff; font-weight: 600; line-height: 1.45; min-height: 1.45em; }
.ai-caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -2px; background: currentColor; animation: pvBlink 1s steps(2) infinite; }
.ai-console:not(.is-typing) .ai-caret { display: none; }
.ai-a { display: flex; align-items: flex-start; gap: 12px; transition: opacity .35s ease, transform .45s cubic-bezier(.22,1,.36,1); }
.ai-console.is-asking .ai-a { opacity: 0; transform: translateY(10px); }
.ai-console.is-thinking .ai-a { opacity: 1; transform: none; }
.ai-avatar { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--sx-chip); border: 1px solid var(--sx-line); }
.ai-avatar img { width: 26px; height: 26px; }
.ai-a-body { flex: 1; min-width: 0; padding: 14px 16px; border-radius: 4px 18px 18px 18px; background: var(--sx-bubble); border: 1px solid var(--sx-line); }
.ai-think { display: none; gap: 5px; padding: 4px 0; }
.ai-think i { width: 8px; height: 8px; border-radius: 50%; background: var(--sx-teal); animation: aiDot 1s ease-in-out infinite; }
.ai-think i:nth-child(2) { animation-delay: .15s; } .ai-think i:nth-child(3) { animation-delay: .3s; }
@keyframes aiDot { 0%, 100% { transform: translateY(0); opacity: .4; } 50% { transform: translateY(-5px); opacity: 1; } }
.ai-console.is-thinking .ai-think { display: inline-flex; }
.ai-console.is-thinking #ai-a-text, .ai-console.is-thinking .ai-widget { display: none; }
#ai-a-text { margin: 0 0 12px; font-weight: 600; line-height: 1.5; color: var(--sx-ink); }

/* answer widgets */
.aw-bars { display: grid; gap: 10px; }
.aw-bar { display: grid; grid-template-columns: minmax(90px, 132px) 1fr 44px; align-items: center; gap: 10px; font-size: .86rem; }
.aw-bar span { color: var(--sx-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aw-bar i { height: 10px; border-radius: 999px; background: var(--sx-track); overflow: hidden; }
.aw-bar i::before { content: ''; display: block; height: 100%; width: var(--v); border-radius: inherit; background: linear-gradient(90deg, #00C9C6, #8A328A); transform-origin: left; animation: aiGrow .9s cubic-bezier(.22,1,.36,1) both; }
.aw-bar:nth-child(2) i::before { animation-delay: .1s; } .aw-bar:nth-child(3) i::before { animation-delay: .2s; } .aw-bar:nth-child(4) i::before { animation-delay: .3s; }
.aw-bar b { text-align: right; font-weight: 800; color: var(--sx-ink); }
@keyframes aiGrow { from { transform: scaleX(0); } }
.aw-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.aw-field, .aw-li, .aw-tile { background: var(--sx-chip); border: 1px solid var(--sx-line); animation: aiIn .45s cubic-bezier(.22,1,.36,1) both; }
.aw-field { padding: 9px 12px; border-radius: 12px; }
.aw-field small { display: block; font-size: .7rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--sx-mute); }
.aw-field b { font-size: .95rem; color: var(--sx-ink); }
.aw-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.aw-li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; }
.aw-li .material-icons-round { font-size: 19px; color: var(--sx-teal); }
.aw-li span:not(.material-icons-round) { flex: 1; min-width: 0; font-size: .92rem; font-weight: 600; color: var(--sx-ink); }
.aw-li em { flex: none; font-style: normal; font-size: .72rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; color: #fff; background: #00a3a6; }
.aw-li em.warn { background: #8A328A; } .aw-li em.info { background: #344767; }
[data-theme="glass"] .aw-li em.info { background: #A4ABBD; color: #1a0e2e; }
.aw-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.aw-tile { padding: 12px; border-radius: 14px; text-align: center; }
.aw-tile b { display: block; font-family: var(--font-heading); font-size: 1.6rem; font-weight: 900; background: linear-gradient(110deg, #00a6ae, #8A328A); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
[data-theme="glass"] .aw-tile b { background-image: linear-gradient(110deg, #5eead4, #FFB1FF); }
.aw-tile small { font-size: .78rem; font-weight: 700; color: var(--sx-mute); }
.aw-field:nth-child(2), .aw-li:nth-child(2), .aw-tile:nth-child(2) { animation-delay: .08s; }
.aw-field:nth-child(3), .aw-li:nth-child(3), .aw-tile:nth-child(3) { animation-delay: .16s; }
.aw-field:nth-child(4), .aw-li:nth-child(4) { animation-delay: .24s; }
.aw-field:nth-child(5), .aw-li:nth-child(5) { animation-delay: .32s; }
.aw-field:nth-child(6) { animation-delay: .4s; }
@keyframes aiIn { from { opacity: 0; transform: translateY(8px); } }

.ai-input { display: flex; align-items: center; gap: 10px; margin: 6px 18px 8px; padding: 9px 9px 9px 16px; border-radius: 999px;
    background: var(--sx-chip); border: 1px solid var(--sx-line); color: var(--sx-mute); font-size: .92rem; }
.ai-input > .material-icons-round { font-size: 20px; }
.ai-input b { margin-left: auto; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #00C9C6, #8A328A); }
.ai-input b .material-icons-round { font-size: 19px; }
.ai-note { margin: 0 0 12px; text-align: center; font-size: .74rem; color: var(--sx-mute); }
.ai-cta { margin-top: 44px; text-align: center; }


/* ══════════════════════════════════════════════════════════════════
   4 · THE MIT PASS
   ══════════════════════════════════════════════════════════════════ */
.ps-pillars { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.ps-pillars li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--sx-chip); border: 1px solid var(--sx-line); font-size: .92rem; font-weight: 800; color: var(--sx-ink); }
.ps-pillars li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, #00C9C6, #8A328A); }

.ps-wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 60px; align-items: center; }
.ps-stage { display: grid; justify-items: center; gap: 24px; perspective: 1300px; }
.ps-card { width: min(100%, 520px); aspect-ratio: 1.586; transform-style: preserve-3d;
    transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s cubic-bezier(.22,1,.36,1);
    animation: psFloat 6s ease-in-out infinite; }
.ps-card.is-tilting { transition: transform .08s linear; animation-play-state: paused; }
@keyframes psFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.ps-face { position: relative; width: 100%; height: 100%; border-radius: 24px; overflow: hidden; isolation: isolate; color: #fff;
    display: grid; grid-template-rows: auto auto 1fr auto; padding: 24px 26px 22px;
    background: radial-gradient(120% 140% at 0% 0%, rgba(0,201,198,0.30) 0%, transparent 50%), linear-gradient(135deg, #2c3b58 0%, #344767 30%, #6a2f78 68%, #8A328A 86%, #a8509f 100%);
    box-shadow: 0 44px 80px -34px rgba(52,71,103,0.75), inset 0 1px 0 rgba(255,255,255,0.35), inset 0 0 0 1px rgba(255,255,255,0.12); }
/* the logo as fine line-art engraved into the card (outlines traced from logo.png, #lg-* defs) */
.ps-swirl { position: absolute; z-index: -1; width: 78%; right: -16%; bottom: -30%; overflow: visible; opacity: .55; }
.ps-swirl .sk-ink use { fill: none; stroke: rgba(255,255,255,0.55); stroke-width: 1.6; }
.ps-swirl .sk-specks use { fill: rgba(255,255,255,0.45); }
.ps-swirl .sk-comet { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-dasharray: .04 .96;
    filter: drop-shadow(0 0 4px #fff); animation: psComet var(--d, 8s) linear var(--o, 0s) infinite; }
@keyframes psComet { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.ps-holo { position: absolute; inset: 0; z-index: -1; pointer-events: none; mix-blend-mode: overlay; opacity: .75;
    background: linear-gradient(115deg, transparent 22%, rgba(0,201,198,0.55) 36%, rgba(255,177,255,0.6) 48%, rgba(255,247,214,0.55) 60%, transparent 74%);
    background-size: 260% 260%; background-position: var(--gx, 30%) var(--gy, 20%); transition: background-position .6s ease; }
.ps-glare { position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(circle at var(--gx, 30%) var(--gy, 20%), rgba(255,255,255,0.32), transparent 46%); transition: background .6s ease; }
.ps-card.is-tilting .ps-holo, .ps-card.is-tilting .ps-glare { transition: none; }
.ps-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ps-brand { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-heading); font-size: 1.08rem; font-weight: 800; }
.ps-brand img { width: 34px; height: 34px; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); }
.ps-kind { padding: 5px 11px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.4); background: rgba(255,255,255,0.12); font-size: .7rem; font-weight: 800; letter-spacing: 2.4px; }
.ps-chip { width: 54px; height: 42px; margin-top: 18px; border-radius: 9px;
    background: repeating-linear-gradient(90deg, transparent 0 16px, rgba(120,100,60,0.35) 16px 17px), repeating-linear-gradient(0deg, transparent 0 13px, rgba(120,100,60,0.35) 13px 14px), linear-gradient(135deg, #FFF7D6, #e8d9a8 55%, #FFF7D6);
    box-shadow: inset 0 0 0 1px rgba(120,100,60,0.4); }
.ps-member { align-self: end; min-width: 0; }
.ps-member small { display: block; font-size: .7rem; font-weight: 700; letter-spacing: 2.4px; text-transform: uppercase; opacity: .7; }
.ps-member b { display: block; font-family: var(--font-heading); font-size: clamp(1.3rem, 2.6vw, 1.95rem); font-weight: 900; letter-spacing: 1.6px; text-transform: uppercase;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.ps-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 12px; }
.ps-icons { display: flex; gap: 6px; }
.ps-icons .material-icons-round { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.22); }
.ps-price { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 900; white-space: nowrap; }
.ps-price small { font-size: .72rem; font-weight: 700; opacity: .75; margin: 0 4px; }
.ps-field { display: grid; gap: 7px; width: min(100%, 520px); }
.ps-field span { font-size: .86rem; font-weight: 800; color: var(--sx-mute); }
.ps-field input { padding: 13px 16px; border-radius: 14px; border: 1.5px solid var(--sx-line); background: var(--sx-surface); color: var(--sx-ink);
    font: inherit; font-size: 1rem; font-weight: 700; transition: border-color .2s, box-shadow .2s; }
.ps-field input::placeholder { color: var(--sx-mute); font-weight: 600; }
.ps-field input:focus { outline: none; border-color: #00C2CB; box-shadow: 0 0 0 4px rgba(0,194,203,0.22); }

.ps-side-title { margin: 0 0 8px; font-family: var(--font-heading); font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 900; line-height: 1.08; letter-spacing: -1px; color: var(--sx-ink); }
.ps-side-sub { margin: 0 0 24px; font-size: 1.1rem; color: var(--sx-soft); }
.ps-perks { list-style: none; margin: 0 0 26px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ps-perks li { display: grid; grid-template-columns: 42px 1fr; column-gap: 12px; align-items: center; padding: 14px; border-radius: 18px;
    background: var(--sx-surface); border: 1px solid var(--sx-line); box-shadow: var(--sx-shadow); }
.ps-perks .material-icons-round { grid-row: span 2; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 21px; color: #fff; background: linear-gradient(135deg, #00C2CB, #8A328A); }
.ps-perks b { font-size: .98rem; font-weight: 800; line-height: 1.25; color: var(--sx-ink); }
.ps-perks small { font-size: .85rem; color: var(--sx-mute); }
.ps-perks.is-armed li { opacity: 0; transform: scale(.88) rotate(-2deg); }
.ps-perks.is-in li { opacity: 1; transform: none; transition: opacity .4s ease, transform .55s cubic-bezier(.34,1.56,.64,1); }
.ps-perks.is-in li:nth-child(2) { transition-delay: .1s; } .ps-perks.is-in li:nth-child(3) { transition-delay: .2s; }
.ps-perks.is-in li:nth-child(4) { transition-delay: .3s; } .ps-perks.is-in li:nth-child(5) { transition-delay: .4s; } .ps-perks.is-in li:nth-child(6) { transition-delay: .5s; }
.ps-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.ps-link { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; color: var(--sx-teal); text-decoration: none; }
.ps-link .material-icons-round { font-size: 19px; transition: transform .25s; }
.ps-link:hover .material-icons-round { transform: translateX(4px); }


/* ══════════════════════════════════════════════════════════════════
   responsive + reduced motion
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 1240px) {
    .pl.is-active .pl-body { grid-template-columns: 1fr; }
    .pl.is-active .pv { display: none; }
}
@media (max-width: 980px) {
    .ai-wrap { grid-template-columns: 1fr; }
    .ai-menu { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
    .ai-tab { flex: none; width: auto; align-items: center; padding: 8px 14px 8px 8px; border-color: var(--sx-line); scroll-snap-align: start; }
    .ai-tab > .material-icons-round { width: 32px; height: 32px; font-size: 18px; }
    .ai-tab b { padding-top: 0; font-size: .92rem; white-space: nowrap; }
    .ai-tab small, .ai-tab[aria-selected="true"] small { display: none; }
    .ai-tab[aria-selected="true"]::before { display: none; }
    .ai-console { position: relative; top: auto; min-height: 500px; }
    .ps-wrap { grid-template-columns: 1fr; gap: 44px; }
}
@media (max-width: 900px) {
    .sx { padding: 72px 0; }
    .pl-row { flex-direction: column; height: auto; gap: 10px; }
    .pl, .pl.is-active { flex: none; }
    .pl:not(.is-active):hover { transform: none; }
    .pl-tab { position: relative; inset: auto; flex-direction: row; justify-content: flex-start; align-items: center; gap: 14px; padding: 18px 20px; }
    .pl-name { writing-mode: horizontal-tb; transform: none; font-size: 1.5rem; }
    .pl-ico { width: 42px; height: 42px; font-size: 22px; margin-left: auto; }
    .pl.is-active .pl-tab { padding: 24px 22px 0; }
    .pl.is-active .pl-name { font-size: 2.2rem; }
    .pl.is-active .pl-body { padding: 14px 22px 26px; }
}
@media (max-width: 560px) {
    .ps-perks { grid-template-columns: 1fr; }
    .aw-tiles { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
    .aw-tile b { font-size: 1.25rem; }
    .aw-fields { grid-template-columns: 1fr; }
    .ai-chat { padding: 20px 16px 10px; }
    .ai-live { display: none; }
    .wl-badge { width: 150px; height: 150px; margin: -75px 0 0 -75px; }
    .wl-badge img { width: 64px; height: 64px; }
    .ps-face { padding: 18px 18px 16px; border-radius: 18px; }
    .ps-chip { width: 42px; height: 32px; margin-top: 10px; }
    .ps-icons .material-icons-round { width: 24px; height: 24px; font-size: 13px; }
    .ps-price { font-size: 1.05rem; }
}
@media (prefers-reduced-motion: reduce) {
    .pl, .pl-body, .pv *, .ps-card, .ps-swirl .sk-comet, .wl-badge svg, .wl-badge img, .ai-live i, .aw-bar i::before, .aw-field, .aw-li, .aw-tile { animation: none !important; transition: none !important; }
    .pv-curve { stroke-dashoffset: 0; }
    .wl { display: none; }
    .wl-list { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal;
        display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; list-style: none; }
    .wl-list li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: var(--sx-chip); border: 1px solid var(--sx-line); font-weight: 800; }
    .wl-list .material-icons-round { font-size: 20px; color: var(--sx-teal); }
}
