/* BioVisionMision – Page Styles */
.reveal-delay-1 { --reveal-delay: 0.08s; }
.reveal-delay-2 { --reveal-delay: 0.34s; }
.reveal-delay-3 { --reveal-delay: 0.46s; }
.reveal-delay-4 { --reveal-delay: 0.58s; }
.reveal-delay-5 { --reveal-delay: 0.70s; }
:root {
    --page-width: 1300px;
    --crystal-white: rgba(255, 255, 255, 0.08);
    --crystal-border: rgba(255, 255, 255, 0.4);
    --crystal-blur: 80px;
    --ps-blue:   #0071e3;
    --ps-pink:   #ff375f;
    --ps-orange: #ff9f0a;
    --ps-green:  #16a34a;
}

@keyframes fadeSlideDown {
    from { opacity: 0; transform: translateY(-28px); }
    to   { opacity: 1; transform: translateY(0);     }
}

@keyframes fadeScaleIn {
    from { opacity: 0; transform: translateY(-50%) scale(0.85); }
    to   { opacity: 1; transform: translateY(-50%) scale(1);   }
}

@keyframes fadeScaleInMobile {
    from { opacity: 0; transform: translateX(50%) scale(0.85); }
    to   { opacity: 1; transform: translateX(50%) scale(1);   }
}

@keyframes contentRiseIn {
    from {
        opacity: 0;
        transform: translateY(34px) scale(0.97);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes lineGlowSweep {
    from { transform: scaleX(0); opacity: 0; }
    to   { transform: scaleX(1); opacity: 1; }
}

@keyframes heroPanelReveal {
    from {
        opacity: 0;
        transform: translateY(42px) scale(0.985);
        filter: blur(16px);
        box-shadow: 0 12px 24px rgba(18, 28, 45, 0.04);
    }
    65% {
        opacity: 1;
        transform: translateY(-4px) scale(1.004);
        filter: blur(0);
        box-shadow: 0 40px 80px rgba(18, 28, 45, 0.10);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
        box-shadow: 0 34px 72px rgba(18, 28, 45, 0.08);
    }
}

.header-box {
    animation: fadeSlideDown 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: 0.05s;
}

.hero-wrapper {
    animation: fadeSlideDown 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: 0.18s;
}

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

body {
    font-family: 'Anuphan', sans-serif;
    min-height: 100vh;
    color: #1d1d1f;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    background-color: #e8eaed;
    background-image:
        radial-gradient(circle at 12% 20%, rgba(255, 150, 60, 0.20) 0%, transparent 48%),
        radial-gradient(circle at 88% 78%, rgba(100, 160, 255, 0.18) 0%, transparent 48%),
        linear-gradient(135deg, #eceff4 0%, #d9dde6 100%);
}

#stitch-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
    pointer-events: none;
}

.main-container {
    margin-top: 104px;
    padding: 16px 18px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.header-box {
    width: 100%;
    margin-bottom: 4px;
    padding-bottom: 8px;
}

.header-th {
    font-size: 28px;
    font-weight: 600;
    color: #1c1c1e;
    line-height: 1.1;
}

.header-en {
    font-family: 'Outfit', sans-serif;
    font-size: 10px;
    color: #6e6e73;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    margin-top: 4px;
}

.hero-wrapper {
    position: relative;
    width: 100%;
    max-width: var(--page-width);
    display: flex;
    align-items: center;
    margin-top: 0;
}

.glass-hero-card {
    position: relative;
    width: 100%;
    padding: 34px 44px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(var(--crystal-blur)) saturate(150%);
    -webkit-backdrop-filter: blur(var(--crystal-blur)) saturate(150%);
    border-radius: 40px;
    border: 1px solid var(--crystal-border);
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.06),
        inset 0 0 30px rgba(255, 255, 255, 0.25);
    z-index: 10;
    overflow: hidden;
}

.crystalline-grain {
    position: absolute;
    inset: 0;
    opacity: 0.28;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='5.0' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    pointer-events: none;
    mix-blend-mode: soft-light;
    z-index: 1;
}

.content-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    z-index: 10;
    max-width: 57%;
}

.content-stack > * {
    opacity: 0;
    will-change: transform, opacity, filter;
}

body.is-ready .content-stack > * {
    animation: contentRiseIn 0.78s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: var(--reveal-delay, 0s);
}

.image-outer-box {
    position: absolute;
    right: 24px;
    top: 40%;
    transform: translateY(-50%);
    width: min(34%, 360px);
    z-index: 20;
    pointer-events: none;
    display: flex;
    justify-content: center;
    animation: fadeScaleIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: 0.35s;
}

.img-main {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 45px 90px rgba(0,0,0,0.25));
}

.section-item h3 {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 17px;
    font-weight: 600;
    color: #1c1c1e;
    margin-bottom: 8px;
}

.section-item > * {
    position: relative;
    z-index: 1;
}

.section-item {
    position: relative;
    padding: 10px 0 12px 20px;
}

.section-item + .section-item {
    margin-top: 2px;
    padding-top: 16px;
}

.ic-box {
    width: 40px; height: 40px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow:
        0 8px 20px -6px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.ic-box svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

.section-item:hover .ic-box {
    transform: translateY(-2px) scale(1.04);
    box-shadow:
        0 14px 28px -8px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.ic-box.blue {
    background: linear-gradient(145deg, #eaf3ff 0%, #d6e8ff 100%);
    color: #4a90e2;
}
.ic-box.pink {
    background: linear-gradient(145deg, #ffeef5 0%, #ffd9e8 100%);
    color: #ec5a8a;
}
.ic-box.orange {
    background: linear-gradient(145deg, #fff3e3 0%, #ffe0bf 100%);
    color: #f5a93c;
}
.ic-box.green {
    background: linear-gradient(145deg, #e7fbef 0%, #cdf3db 100%);
    color: #4cc47b;
}

.desc-text {
    font-size: 13.5px;
    line-height: 1.52;
    color: #2c2c2e;
    text-align: justify;
    padding-left: 54px;
}

.vision-text {
    font-size: 15px;
    font-weight: 500;
    color: #1c1c1e;
    line-height: 1.42;
    padding-left: 54px;
}

.mission-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-left: 54px;
}

.mission-list li {
    font-size: 13px;
    color: #2c2c2e;
    padding-left: 16px;
    position: relative;
    opacity: 0;
    transform: translateY(16px);
}

.mission-list li::before {
    content: '\2022';
    position: absolute;
    left: 0;
    color: #8e8e93;
    font-weight: bold;
}

.values-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 500;
    color: #1d1d1f;
    padding-left: 54px;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0;
    transform: translateY(14px);
}
.value-item:not(:last-child)::after { content: '\2022'; color: #c1c1c6; font-weight: bold; }

body.is-ready .mission-list li {
    animation: contentRiseIn 0.62s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: calc(var(--reveal-delay, 0s) + var(--item-delay, 0s));
}

body.is-ready .value-item {
    animation: contentRiseIn 0.58s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: calc(var(--reveal-delay, 0s) + var(--item-delay, 0s));
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    .content-stack > *,
    .mission-list li,
    .value-item {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
}

@media (max-width: 1024px) {
    .main-container { margin-top: 88px; }
    .hero-wrapper   { flex-direction: column; align-items: center; gap: 18px; margin-top: 12px; }

    .glass-hero-card {
        padding: 24px;
        border-radius: 32px;
    }

    .content-stack { max-width: 100%; }

    .image-outer-box {
        display: none;
    }

    .section-item {
        padding-left: 12px;
    }
}

@media (max-width: 640px) {
    .main-container {
        padding: 12px 12px 20px;
    }

    .glass-hero-card {
        padding: 20px 16px;
        border-radius: 28px;
    }

    .header-th {
        font-size: 24px;
    }

    .header-en {
        font-size: 9px;
        letter-spacing: 1.8px;
    }

    .section-item {
        padding-left: 0;
    }

    .section-item h3 {
        gap: 10px;
        font-size: 16px;
    }

    .desc-text,
    .vision-text,
    .mission-list,
    .values-list {
        padding-left: 50px;
    }
}
