/* ============================================================
   Prashant Arya , v2 redesign
   Dark founder aesthetic, evolved: WebGL hero, glass, glow
   ============================================================ */

:root {
    --bg: #050506;
    --bg-soft: #0a0a0c;
    --ink: #f5f2ee;
    --ink-70: rgba(245, 242, 238, 0.7);
    --ink-50: rgba(245, 242, 238, 0.5);
    --ink-35: rgba(245, 242, 238, 0.35);
    --accent: #ff7a3d;
    --accent-soft: #ffb38a;
    --accent-dim: rgba(255, 122, 61, 0.14);
    --line: rgba(255, 255, 255, 0.08);
    --glass: rgba(255, 255, 255, 0.035);
    --glass-hover: rgba(255, 255, 255, 0.06);
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-serif: 'Cormorant Garamond', serif;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: auto; }

body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

::selection { background: var(--accent); color: #0a0a0a; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; background: none; border: none; color: inherit; cursor: pointer; }

/* ---------- Preloader ---------- */
.preloader {
    position: fixed; inset: 0; z-index: 100;
    background: var(--bg);
    display: flex; align-items: center; justify-content: center;
}
.preloader-inner {
    display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.preloader-name {
    font-family: var(--font-display);
    font-size: 14px; letter-spacing: 0.35em; text-transform: uppercase;
    color: var(--ink-50);
}
.preloader-count {
    font-family: var(--font-display);
    font-size: clamp(64px, 12vw, 140px);
    font-weight: 700; line-height: 1;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
}

/* ---------- Custom cursor ---------- */
.cursor-dot, .cursor-ring {
    position: fixed; top: 0; left: 0; z-index: 99;
    pointer-events: none; border-radius: 50%;
    transform: translate(-50%, -50%);
}
.cursor-dot {
    width: 6px; height: 6px; background: var(--accent);
}
.cursor-ring {
    width: 36px; height: 36px;
    border: 1px solid rgba(255, 122, 61, 0.5);
    transition: width 0.25s var(--ease-out), height 0.25s var(--ease-out),
                border-color 0.25s, background 0.25s;
}
.cursor-ring.is-hover {
    width: 64px; height: 64px;
    border-color: rgba(255, 122, 61, 0.9);
    background: rgba(255, 122, 61, 0.08);
}
@media (hover: none), (pointer: coarse) {
    .cursor-dot, .cursor-ring { display: none; }
}

/* ---------- WebGL canvas ---------- */
#webgl {
    position: fixed; inset: 0;
    width: 100%; height: 100vh;
    z-index: 0;
    pointer-events: none;
}

/* ---------- Nav ---------- */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 50;
    padding: 18px 40px;
    transition: background 0.4s, backdrop-filter 0.4s, padding 0.4s, border-color 0.4s;
    border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
    padding: 12px 40px;
    background: rgba(5, 5, 6, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom-color: var(--line);
}
.nav-inner {
    max-width: 1280px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--line);
    transition: border-color 0.3s, box-shadow 0.3s;
}
.nav-logo:hover .nav-avatar {
    border-color: var(--accent);
    box-shadow: 0 0 18px rgba(255, 122, 61, 0.4);
}
.nav-name {
    font-family: var(--font-display); font-size: 14px; font-weight: 500;
    letter-spacing: 0.02em; color: var(--ink-70);
}
.nav-links {
    display: flex; align-items: center; gap: 30px; list-style: none;
}
.nav-links a {
    font-family: var(--font-display);
    font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--ink-50);
    transition: color 0.25s;
    position: relative;
}
.nav-links a::after {
    content: ''; position: absolute; left: 0; bottom: -5px;
    width: 100%; height: 1px; background: var(--accent);
    transform: scaleX(0); transform-origin: right;
    transition: transform 0.35s var(--ease-out);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-socials { display: flex; gap: 16px; align-items: center; }
.nav-socials a::after { display: none; }
.nav-toggle { display: none; flex-direction: column; gap: 6px; padding: 6px; }
.nav-toggle span {
    display: block; width: 24px; height: 1.5px;
    background: var(--ink); transition: transform 0.3s, opacity 0.3s;
}

/* ---------- Layout primitives ---------- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 40px; position: relative; }
.section { position: relative; padding: 160px 0; z-index: 1; }

.section-label {
    font-family: var(--font-display);
    font-size: 12px; letter-spacing: 0.4em; text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 28px;
    display: flex; align-items: center; gap: 14px;
}
.section-label::before {
    content: ''; width: 40px; height: 1px; background: var(--accent);
    opacity: 0.6;
}
.section-heading {
    font-family: var(--font-display);
    font-size: clamp(34px, 5vw, 60px);
    font-weight: 600; line-height: 1.08; letter-spacing: -0.02em;
    margin-bottom: 70px;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-display);
    font-size: 14px; font-weight: 500; letter-spacing: 0.04em;
    padding: 15px 32px; border-radius: 999px;
    transition: transform 0.3s var(--ease-out), background 0.3s, color 0.3s,
                border-color 0.3s, box-shadow 0.3s;
    will-change: transform;
}
.btn-solid {
    background: var(--accent); color: #0a0a0a;
    box-shadow: 0 0 0 rgba(255, 122, 61, 0);
}
.btn-solid:hover {
    background: var(--accent-soft);
    box-shadow: 0 8px 40px rgba(255, 122, 61, 0.35);
}
.btn-outline {
    border: 1px solid var(--line); color: var(--ink-70);
    background: var(--glass);
}
.btn-outline:hover {
    border-color: var(--accent); color: var(--ink);
    background: var(--accent-dim);
}
.btn-lg { padding: 18px 40px; font-size: 15px; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    z-index: 1;
}
.hero-inner { max-width: 1100px; }
.hero-eyebrow {
    font-family: var(--font-display);
    font-size: 13px; letter-spacing: 0.35em; text-transform: uppercase;
    color: var(--ink-50);
    margin-bottom: 34px;
}
.hero-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(64px, 14vw, 180px);
    line-height: 0.95; letter-spacing: -0.035em;
    display: flex; flex-direction: column; align-items: center;
}
.hero-line { display: block; overflow: hidden; }
.hero-line--accent { color: var(--accent); }
.hero-name .char { display: inline-block; will-change: transform; }
.hero-subtitle {
    margin-top: 42px;
    font-size: clamp(16px, 2vw, 20px);
    color: var(--ink-70);
    font-weight: 300;
}
.hero-ctas {
    margin-top: 44px;
    display: flex; gap: 18px; justify-content: center; flex-wrap: wrap;
}
.hero-scroll-hint {
    position: absolute; bottom: 34px; left: 50%;
    transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    font-family: var(--font-display);
    font-size: 11px; letter-spacing: 0.35em; text-transform: uppercase;
    color: var(--ink-35);
}
.hero-scroll-line {
    width: 1px; height: 48px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollPulse 2s var(--ease-out) infinite;
    transform-origin: top;
}
@keyframes scrollPulse {
    0% { transform: scaleY(0); opacity: 1; }
    60% { transform: scaleY(1); opacity: 1; }
    100% { transform: scaleY(1); opacity: 0; }
}

/* ---------- Marquee ---------- */
.marquee {
    position: relative; z-index: 1;
    overflow: hidden;
    padding: 26px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: rgba(5, 5, 6, 0.5);
}
.marquee-track {
    display: flex; align-items: center; gap: 38px;
    width: max-content;
    will-change: transform;
}
.marquee-track span {
    font-family: var(--font-display);
    font-size: 15px; letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--ink-35);
    white-space: nowrap;
}
.marquee-track i { color: var(--accent); font-style: normal; font-size: 12px; }

/* ---------- Philosophy ---------- */
.philosophy { padding: 220px 0; }
.philosophy-text {
    max-width: 900px;
}
.philosophy-text p {
    font-family: var(--font-display);
    font-size: clamp(26px, 3.6vw, 44px);
    font-weight: 400; line-height: 1.35; letter-spacing: -0.01em;
    margin-bottom: 44px;
}
.philosophy-text em {
    font-family: var(--font-serif);
    font-style: italic; color: var(--accent);
}
.philosophy-text .word { opacity: 0.12; }

/* ---------- About ---------- */
.about-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
    margin-bottom: 90px;
}
.about-heading {
    font-family: var(--font-display);
    font-size: clamp(32px, 4.4vw, 54px);
    font-weight: 600; line-height: 1.12; letter-spacing: -0.02em;
}
.about-heading .accent { color: var(--accent); }
.about-text { color: var(--ink-70); margin-bottom: 24px; font-size: 17px; }
.about-text strong { color: var(--ink); font-weight: 500; }

.stats-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.stat-card {
    position: relative;
    padding: 36px 30px;
    background: var(--glass);
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.4s var(--ease-out), border-color 0.4s, box-shadow 0.4s;
}
.stat-card::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%),
        rgba(255, 122, 61, 0.12), transparent 45%);
    opacity: 0; transition: opacity 0.4s;
    pointer-events: none;
}
.stat-card:hover { transform: translateY(-8px); border-color: rgba(255, 122, 61, 0.35);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); }
.stat-card:hover::before { opacity: 1; }
.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(34px, 3.6vw, 48px);
    font-weight: 700; color: var(--accent);
    line-height: 1.1; letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}
.stat-label {
    display: block; margin-top: 10px;
    font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--ink-50);
}

/* ---------- Experience / timeline ---------- */
.experience { background: linear-gradient(to bottom, transparent, rgba(255, 122, 61, 0.025), transparent); }
.timeline { position: relative; padding-left: 0; }
.timeline-rail {
    position: absolute; left: 190px; top: 0; bottom: 0;
    width: 1px; background: var(--line);
}
.timeline-rail-fill {
    position: absolute; top: 0; left: 0; width: 100%; height: 0%;
    background: linear-gradient(to bottom, var(--accent), var(--accent-soft));
    box-shadow: 0 0 12px rgba(255, 122, 61, 0.6);
}
.tl-item {
    position: relative;
    display: grid; grid-template-columns: 160px 1fr; gap: 62px;
    padding: 34px 0;
}
.tl-item::before {
    content: '';
    position: absolute; left: 186px; top: 46px;
    width: 9px; height: 9px; border-radius: 50%;
    background: var(--bg); border: 2px solid var(--ink-35);
    transition: border-color 0.3s, box-shadow 0.3s;
    z-index: 1;
}
.tl-item[data-open="true"]::before {
    border-color: var(--accent);
    box-shadow: 0 0 14px rgba(255, 122, 61, 0.7);
}
.tl-meta { text-align: right; padding-top: 8px; }
.tl-date {
    display: block;
    font-family: var(--font-display);
    font-size: 14px; letter-spacing: 0.08em;
    color: var(--ink-50);
}
.tl-date--now { color: var(--ink); font-weight: 600; }
.tl-logo {
    margin: 14px 0 0 auto;
    height: 20px; width: auto; max-width: 90px; object-fit: contain;
    filter: brightness(0) invert(1); opacity: 0.2;
    transition: opacity 0.3s;
}
.tl-item:hover .tl-logo, .tl-item[data-open="true"] .tl-logo { opacity: 0.55; }
.tl-logo--jpg { filter: grayscale(1) invert(1); opacity: 0.14; height: 26px; max-width: 110px; }
.tl-logo--wharton { height: 46px; max-width: 190px; }
.tl-logo--lnt { filter: grayscale(1) invert(1); opacity: 0.16; max-width: 100px; }

.tl-body {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--glass);
    overflow: hidden;
    transition: border-color 0.35s, background 0.35s, transform 0.35s var(--ease-out);
}
.tl-item[data-open="true"] .tl-body,
.tl-body:hover { border-color: rgba(255, 122, 61, 0.3); background: var(--glass-hover); }
.tl-head {
    width: 100%;
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    padding: 26px 30px;
    text-align: left;
}
.tl-head h3 {
    font-family: var(--font-display);
    font-size: clamp(18px, 2vw, 23px); font-weight: 600;
    letter-spacing: -0.01em;
}
.tl-toggle {
    position: relative; flex: 0 0 auto;
    width: 30px; height: 30px; border-radius: 50%;
    border: 1px solid var(--line);
    transition: transform 0.4s var(--ease-out), border-color 0.3s;
}
.tl-toggle::before, .tl-toggle::after {
    content: ''; position: absolute; top: 50%; left: 50%;
    background: var(--accent);
    transform: translate(-50%, -50%);
}
.tl-toggle::before { width: 12px; height: 1.5px; }
.tl-toggle::after { width: 1.5px; height: 12px; transition: transform 0.3s; }
.tl-item[data-open="true"] .tl-toggle { transform: rotate(135deg); border-color: var(--accent); }
.tl-details { height: 0; overflow: hidden; }
.tl-details ul {
    list-style: none;
    padding: 0 30px 28px;
}
.tl-details li {
    position: relative;
    padding-left: 26px; margin-bottom: 14px;
    color: var(--ink-70); font-size: 15.5px;
}
.tl-details li::before {
    content: ''; position: absolute; left: 0; top: 11px;
    width: 12px; height: 1px; background: var(--accent);
}
.tl-details strong { color: var(--ink); font-weight: 500; }

/* ---------- Ventures ---------- */
.ventures-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 22px;
}
.v-card {
    position: relative;
    display: block;
    padding: 42px 38px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--glass);
    transition: transform 0.45s var(--ease-out), border-color 0.35s,
                background 0.35s, box-shadow 0.45s;
    transform-style: preserve-3d;
    will-change: transform;
}
.v-card:hover {
    border-color: rgba(255, 122, 61, 0.35);
    background: var(--glass-hover);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), 0 0 50px rgba(255, 122, 61, 0.07);
}
.v-card--featured {
    border-color: rgba(255, 122, 61, 0.4);
    background: linear-gradient(145deg, rgba(255, 122, 61, 0.08), var(--glass) 55%);
}
.v-card--wide {
    grid-column: 1 / -1;
    border-color: rgba(255, 122, 61, 0.4);
    background: linear-gradient(120deg, rgba(255, 122, 61, 0.09), var(--glass) 60%);
}
.v-top {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 26px;
}
.v-org {
    font-family: var(--font-display);
    font-size: 12px; letter-spacing: 0.25em; text-transform: uppercase;
    color: var(--ink-50);
}
.v-arrow {
    font-size: 18px; color: var(--accent);
    transition: transform 0.35s var(--ease-out);
}
.v-card:hover .v-arrow { transform: translate(4px, -4px); }
.v-card h3 {
    font-family: var(--font-display);
    font-size: 26px; font-weight: 600; margin-bottom: 14px;
    letter-spacing: -0.01em;
}
.v-card p { color: var(--ink-70); font-size: 15.5px; }
.v-badge {
    display: inline-block; margin-top: 22px;
    font-size: 12.5px; letter-spacing: 0.04em;
    color: var(--accent-soft);
    padding: 7px 14px; border-radius: 999px;
    border: 1px solid rgba(255, 122, 61, 0.3);
    background: rgba(255, 122, 61, 0.07);
}
.v-cta {
    display: block; margin-top: 20px;
    font-family: var(--font-display);
    font-size: 14px; font-weight: 500; color: var(--accent);
}

/* ---------- Education ---------- */
.edu-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.edu-card {
    position: relative;
    padding: 38px 32px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--glass);
    transition: transform 0.4s var(--ease-out), border-color 0.35s, background 0.35s;
}
.edu-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 122, 61, 0.3);
    background: var(--glass-hover);
}
.edu-logo {
    height: 34px; width: auto; max-width: 170px; object-fit: contain;
    filter: brightness(0) invert(1); opacity: 0.25;
    margin-bottom: 24px;
    transition: opacity 0.3s;
}
.edu-card:hover .edu-logo { opacity: 0.6; }
.edu-logo--penn { height: 41px; max-width: 205px; }
.edu-logo--berkeley { height: 27px; max-width: 136px; }
.edu-logo--wharton { height: 46px; max-width: 228px; }
.edu-card h3 {
    font-family: var(--font-display);
    font-size: 18px; font-weight: 600; margin-bottom: 8px;
    letter-spacing: -0.01em;
}
.edu-card p { color: var(--ink-50); font-size: 14.5px; }
.edu-badge {
    position: absolute; top: 24px; right: 24px;
    font-family: var(--font-display);
    font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--accent);
    padding: 5px 12px; border-radius: 999px;
    border: 1px solid rgba(255, 122, 61, 0.35);
    background: rgba(255, 122, 61, 0.08);
}
.certs { margin-top: 60px; }
.certs-title {
    font-family: var(--font-display);
    font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase;
    color: var(--ink-50); margin-bottom: 18px;
}
.certs-tags { display: flex; gap: 12px; flex-wrap: wrap; }
.certs-tags span {
    font-size: 14px; color: var(--ink-70);
    padding: 10px 20px; border-radius: 999px;
    border: 1px solid var(--line); background: var(--glass);
    transition: border-color 0.3s, color 0.3s;
}
.certs-tags span:hover { border-color: var(--accent); color: var(--ink); }

/* ---------- Contact ---------- */
.contact { padding: 220px 0 180px; text-align: center; }
.contact-heading {
    font-family: var(--font-display);
    font-size: clamp(36px, 6vw, 84px);
    font-weight: 600; line-height: 1.12; letter-spacing: -0.025em;
    max-width: 1000px; margin: 0 auto 50px;
}
.contact .section-label { justify-content: center; }
.contact .section-label::before { display: none; }
.contact-heading em {
    font-family: var(--font-serif);
    font-style: italic; font-weight: 400;
    color: var(--accent);
}
.contact-tags {
    display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
    margin-bottom: 56px;
}
.contact-tags span {
    font-size: 14px; color: var(--ink-50);
    padding: 10px 22px; border-radius: 999px;
    border: 1px solid var(--line);
    transition: border-color 0.3s, color 0.3s;
}
.contact-tags span:hover { border-color: var(--accent); color: var(--ink); }
.contact-ctas {
    display: flex; gap: 18px; justify-content: center; flex-wrap: wrap;
}
.contact-egg {
    margin-top: 70px;
    font-family: var(--font-serif);
    font-style: italic; font-size: 19px;
    color: var(--ink-50);
}
.contact-egg a {
    color: var(--accent);
    border-bottom: 1px solid rgba(255, 122, 61, 0.4);
    transition: border-color 0.3s;
}
.contact-egg a:hover { border-bottom-color: var(--accent); }

/* ---------- Footer ---------- */
.footer {
    position: relative; z-index: 1;
    border-top: 1px solid var(--line);
    padding: 40px 0;
}
.footer-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 20px; flex-wrap: wrap;
    font-size: 13.5px; color: var(--ink-50);
}
.footer-note { color: var(--ink-35); }
.footer-links { display: flex; gap: 26px; }
.footer-links a { transition: color 0.25s; }
.footer-links a:hover { color: var(--accent); }

/* ---------- Reveal defaults (JS animates in) ---------- */
[data-reveal] { opacity: 0; transform: translateY(50px); }
.no-js [data-reveal], .reduced-motion [data-reveal] { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .container { padding: 0 26px; }
    .section { padding: 110px 0; }
    .nav { padding: 14px 24px; }
    .nav.is-scrolled { padding: 12px 24px; }
    .nav-name { display: none; }
    .nav-toggle { display: flex; z-index: 60; }
    .nav-links {
        position: fixed; inset: 0;
        background: rgba(5, 5, 6, 0.96);
        backdrop-filter: blur(20px);
        flex-direction: column; justify-content: center;
        gap: 34px;
        opacity: 0; pointer-events: none;
        transition: opacity 0.35s;
    }
    .nav-links.is-open { opacity: 1; pointer-events: auto; }
    .nav-links a { font-size: 20px; }
    .nav-toggle.is-open span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
    .nav-toggle.is-open span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

    .about-grid { grid-template-columns: 1fr; gap: 44px; margin-bottom: 60px; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .ventures-grid { grid-template-columns: 1fr; }
    .edu-grid { grid-template-columns: 1fr 1fr; }

    .timeline-rail { left: 8px; }
    .tl-item { grid-template-columns: 1fr; gap: 14px; padding-left: 40px; }
    .tl-item::before { left: 4px; top: 14px; }
    .tl-meta { text-align: left; display: flex; align-items: center; gap: 18px; padding-top: 0; }
    .tl-logo { margin: 0; }
}

@media (max-width: 640px) {
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
    .stat-card { padding: 26px 20px; }
    .edu-grid { grid-template-columns: 1fr; }
    .hero-ctas .btn { padding: 14px 26px; font-size: 13px; }
    .contact { padding: 150px 0 120px; }
    .footer-inner { flex-direction: column; text-align: center; }
    .philosophy { padding: 140px 0; }
}

/* ---------- Page transition overlay ---------- */
.pt-overlay {
    position: fixed; inset: 0; z-index: 200;
    background: linear-gradient(160deg, #0d0705, var(--bg) 40%, #120a06);
    display: none; align-items: center; justify-content: center;
    will-change: transform;
}
.pt-overlay-mark {
    font-family: var(--font-display);
    font-size: 20px; font-weight: 700; letter-spacing: 0.2em;
    color: var(--accent);
}

/* ---------- Command palette ---------- */
.cmdk {
    position: fixed; inset: 0; z-index: 150;
    display: none;
}
.cmdk.is-open { display: block; }
.cmdk-backdrop {
    position: absolute; inset: 0;
    background: rgba(3, 3, 4, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.cmdk-panel {
    position: relative;
    max-width: 560px; margin: 14vh auto 0;
    border-radius: 18px;
    border: 1px solid rgba(255, 122, 61, 0.25);
    background: rgba(14, 14, 16, 0.96);
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7), 0 0 60px rgba(255, 122, 61, 0.08);
    overflow: hidden;
    animation: cmdkIn 0.22s var(--ease-out);
}
@keyframes cmdkIn {
    from { opacity: 0; transform: translateY(14px) scale(0.98); }
    to { opacity: 1; transform: none; }
}
.cmdk-input-row {
    display: flex; align-items: center; gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
    color: var(--ink-50);
}
.cmdk-input {
    flex: 1;
    background: none; border: none; outline: none;
    font-family: var(--font-body); font-size: 15px;
    color: var(--ink);
}
.cmdk-input::placeholder { color: var(--ink-35); }
.cmdk-esc {
    font-family: var(--font-display);
    font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--ink-35);
    border: 1px solid var(--line); border-radius: 6px;
    padding: 3px 7px;
}
.cmdk-list { max-height: 46vh; overflow-y: auto; padding: 8px; }
.cmdk-group {
    font-family: var(--font-display);
    font-size: 10.5px; letter-spacing: 0.25em; text-transform: uppercase;
    color: var(--accent);
    padding: 12px 12px 6px;
}
.cmdk-item {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%;
    padding: 11px 12px;
    border-radius: 10px;
    font-family: var(--font-body); font-size: 14.5px;
    color: var(--ink-70);
    text-align: left;
    transition: background 0.15s, color 0.15s;
}
.cmdk-item i { font-style: normal; color: var(--accent); opacity: 0; transition: opacity 0.15s; }
.cmdk-item.is-active {
    background: rgba(255, 122, 61, 0.12);
    color: var(--ink);
}
.cmdk-item.is-active i { opacity: 1; }
.cmdk-empty { padding: 24px; text-align: center; color: var(--ink-35); font-size: 14px; }
.cmdk-hint {
    display: inline-flex; align-items: center; gap: 4px;
    font-family: var(--font-display);
    font-size: 11.5px; letter-spacing: 0.08em;
    color: var(--ink-50);
    border: 1px solid var(--line); border-radius: 8px;
    padding: 5px 10px;
    transition: border-color 0.25s, color 0.25s;
}
.cmdk-hint:hover { border-color: var(--accent); color: var(--ink); }
.cmdk-hint span { font-size: 12px; }
@media (max-width: 960px) { .cmdk-panel { margin: 10vh 16px 0; } }

/* ---------- Digital twin chat widget ---------- */
.dt { position: fixed; right: 26px; bottom: 26px; z-index: 90; }
.dt-toggle {
    width: 54px; height: 54px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--accent); color: #0a0a0a;
    box-shadow: 0 12px 40px rgba(255, 122, 61, 0.35);
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
    position: relative;
}
.dt-toggle:hover { transform: scale(1.08); box-shadow: 0 16px 50px rgba(255, 122, 61, 0.5); }
.dt-toggle::after {
    content: ''; position: absolute; inset: -4px;
    border-radius: 50%;
    border: 1px solid rgba(255, 122, 61, 0.5);
    animation: dtPulse 2.6s ease-out infinite;
    pointer-events: none;
}
@keyframes dtPulse {
    0% { transform: scale(1); opacity: 0.8; }
    70% { transform: scale(1.5); opacity: 0; }
    100% { opacity: 0; }
}
.dt-ic-close { display: none; }
.dt.open .dt-ic-open { display: none; }
.dt.open .dt-ic-close { display: block; }
.dt.open .dt-toggle::after { animation: none; opacity: 0; }

.dt-panel {
    position: absolute; right: 0; bottom: 68px;
    width: 360px; max-width: calc(100vw - 40px);
    height: 480px; max-height: calc(100vh - 130px);
    display: flex; flex-direction: column;
    border-radius: 20px;
    border: 1px solid rgba(255, 122, 61, 0.25);
    background: rgba(13, 13, 15, 0.97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7);
    opacity: 0; pointer-events: none;
    transform: translateY(14px) scale(0.98);
    transform-origin: bottom right;
    transition: opacity 0.28s var(--ease-out), transform 0.28s var(--ease-out);
    overflow: hidden;
}
.dt.open .dt-panel { opacity: 1; pointer-events: auto; transform: none; }
.dt-head {
    display: flex; align-items: center; gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
}
.dt-avatar {
    width: 38px; height: 38px; border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid rgba(255, 122, 61, 0.5);
}
.dt-head-txt { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.dt-name { font-family: var(--font-display); font-size: 14.5px; font-weight: 600; }
.dt-status {
    display: flex; align-items: center; gap: 6px;
    font-size: 11.5px; color: var(--ink-50);
}
.dt-status i {
    width: 7px; height: 7px; border-radius: 50%;
    background: #3ddc84;
    box-shadow: 0 0 8px rgba(61, 220, 132, 0.7);
}
.dt-close { color: var(--ink-50); padding: 6px; transition: color 0.2s; }
.dt-close:hover { color: var(--ink); }

.dt-msgs {
    flex: 1; overflow-y: auto;
    padding: 18px;
    display: flex; flex-direction: column; gap: 12px;
}
.dt-msg { max-width: 85%; }
.dt-msg p {
    padding: 11px 15px;
    border-radius: 15px;
    font-size: 14px; line-height: 1.55;
    white-space: pre-wrap;
}
.dt-msg--bot { align-self: flex-start; }
.dt-msg--bot p {
    background: var(--glass-hover);
    border: 1px solid var(--line);
    border-bottom-left-radius: 5px;
    color: var(--ink-70);
}
.dt-msg--user { align-self: flex-end; }
.dt-msg--user p {
    background: var(--accent); color: #0a0a0a;
    border-bottom-right-radius: 5px;
}
.dt-typing p { display: flex; gap: 5px; padding: 14px 16px; }
.dt-typing span {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent);
    animation: dtBlink 1.2s infinite;
}
.dt-typing span:nth-child(2) { animation-delay: 0.15s; }
.dt-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes dtBlink { 0%, 60%, 100% { opacity: 0.25; } 30% { opacity: 1; } }

.dt-suggestions { display: flex; flex-wrap: wrap; gap: 8px; }
.dt-suggestions button {
    font-size: 12.5px; color: var(--accent-soft);
    padding: 8px 13px; border-radius: 999px;
    border: 1px solid rgba(255, 122, 61, 0.3);
    background: rgba(255, 122, 61, 0.06);
    transition: background 0.2s, border-color 0.2s;
}
.dt-suggestions button:hover { background: rgba(255, 122, 61, 0.14); border-color: var(--accent); }

.dt-input-row {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 16px;
    border-top: 1px solid var(--line);
}
.dt-input {
    flex: 1;
    background: var(--glass); border: 1px solid var(--line);
    border-radius: 999px;
    padding: 11px 18px;
    font-family: var(--font-body); font-size: 14px;
    color: var(--ink);
    outline: none;
    transition: border-color 0.25s;
}
.dt-input:focus { border-color: rgba(255, 122, 61, 0.5); }
.dt-input::placeholder { color: var(--ink-35); }
.dt-send {
    width: 42px; height: 42px; border-radius: 50%; flex: 0 0 auto;
    display: flex; align-items: center; justify-content: center;
    background: var(--accent); color: #0a0a0a;
    transition: transform 0.25s var(--ease-out), opacity 0.25s;
}
.dt-send:hover { transform: scale(1.08); }
.dt-send:disabled { opacity: 0.5; }
@media (max-width: 640px) {
    .dt { right: 16px; bottom: 16px; }
    .dt-panel { bottom: 64px; height: 62vh; }
}

/* ---------- Testimonials / social proof ---------- */
.proof-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.proof-card {
    position: relative;
    display: flex; flex-direction: column;
    padding: 38px 34px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--glass);
    transition: transform 0.4s var(--ease-out), border-color 0.35s, background 0.35s;
}
.proof-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 122, 61, 0.3);
    background: var(--glass-hover);
}
.proof-quote-mark {
    font-family: var(--font-serif);
    font-size: 54px; line-height: 0.6;
    color: var(--accent);
    margin-bottom: 20px;
}
.proof-text {
    flex: 1;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 18px; line-height: 1.6;
    color: var(--ink-70);
    margin-bottom: 24px;
}
.proof-who { display: flex; flex-direction: column; gap: 2px; }
.proof-name { font-family: var(--font-display); font-size: 14px; font-weight: 600; }
.proof-role { font-size: 12.5px; color: var(--ink-50); }
.proof-cta { text-align: center; margin-top: 50px; }
@media (max-width: 960px) { .proof-grid { grid-template-columns: 1fr; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
