/* =============================================
   ABOUT PAGE STYLES
   ============================================= */

/* Hero — clean white, generous height */
.about-page .hero {
    height: auto;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: -80px;
    padding-top: calc(80px + 4rem);
    padding-bottom: calc(5rem + 80px);
    background: var(--warm-white);
}

.about-page .disrupt-word {
    display: inline-block;
    animation: about-disrupt-shake 6s ease-in-out infinite;
}

@keyframes about-disrupt-shake {
    0%, 92%, 100% { transform: rotate(0deg); }
    93% { transform: rotate(-3deg); }
    94% { transform: rotate(3deg); }
    95% { transform: rotate(-2deg); }
    96% { transform: rotate(2deg); }
    97% { transform: rotate(-1deg); }
    98% { transform: rotate(0deg); }
}

/* Remove the image pseudo-elements entirely */
.about-page .hero::after {
    display: none;
}

.about-page .hero::before {
    display: none;
}

.about-page .hero-content {
    position: relative;
    z-index: 1;
    padding: 2rem;
    text-align: center;
}

.about-page .hero-content h1 {
    font-family: 'Libre Baskerville', serif;
    font-size: clamp(2.6rem, 5vw, 4.6rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--stormy-teal);
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.about-page .hero-quote {
    font-family: 'Libre Baskerville', serif;
    font-size: clamp(1.05rem, 1.4vw, 1.3rem);
    font-style: italic;
    color: var(--rust);
    max-width: 620px;
    margin: 2rem auto 0;
    line-height: 1.78;
    border: none;
    padding: 0;
    text-align: center;
    position: relative;
}


.about-page .hero-quote cite {
    display: block;
    margin-top: 1rem;
    font-style: normal;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--rust);
    opacity: 0.7;
}

/* =============================================
   ABOUT SPLIT SECTION
   ============================================= */

.about-split {
    padding: 7rem 2rem;
    background-color: var(--stormy-teal);
    position: relative;
    z-index: 1;
}

.about-split .content-wrapper {
    max-width: 1100px;
    margin: 0 auto;
}

.about-split-declaration {
    max-width: 760px;
    margin: 0 auto 4rem;
}

.about-split-declaration p {
    font-family: 'Libre Baskerville', serif;
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--warm-white);
    margin: 0;
}

.about-split-declaration p + p {
    margin-top: 1.5rem;
    color: rgba(245, 242, 236, 0.6);
}

.about-split-body {
    max-width: 760px;
    margin: 0 auto;
}

.about-split-body p {
    font-size: 1.05rem;
    line-height: 1.85;
    color: rgba(245,242,236,0.82);
    margin-bottom: 1.5rem;
}

.about-split-body p:last-child {
    margin-bottom: 0;
}


/* =============================================
   TEAM SECTION
   ============================================= */

.team-section {
    padding: 8rem 2rem;
    background-color: var(--stormy-teal, #2C6671);
}

.team-section .content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.team-section h2 {
    font-family: 'ABC Marist', serif;
    font-size: 3rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--warm-white, #F5F2EC);
    text-transform: none;
    letter-spacing: -0.02em;
}

.team-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(245, 242, 236, 0.75);
}

.team-grid {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 2rem;
}
.team-grid .team-card {
    flex: 0 1 260px;
}

.team-card {
    text-decoration: none;
    color: inherit;
    display: block;
    text-align: center;
    transition: transform 0.3s ease;
}

.team-card:hover {
    transform: translateY(-8px);
}

.team-photo {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    background-color: #ddd;
    transition: border-radius 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.team-card:nth-child(1) .team-photo:hover { border-radius: 50%; }
.team-card:nth-child(2) .team-photo:hover { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
.team-card:nth-child(3) .team-photo:hover { border-radius: 16px 50% 16px 50%; }
.team-card:nth-child(4) .team-photo:hover { border-radius: 50% 16px 50% 16px; }

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-photo-placeholder {
    background: linear-gradient(135deg, #c8d5c0 0%, #a8bda0 100%);
}

.team-card h3 {
    font-family: 'ABC Marist', serif;
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 0.3rem;
    color: var(--warm-white, #F5F2EC);
    text-transform: none;
    letter-spacing: 0;
}

.team-role {
    font-size: 0.85rem;
    color: rgba(245, 242, 236, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0;
    max-width: 100%;
}

/* =============================================
   CTA / CONTACT SECTION
   ============================================= */

.about-page .contact {
    background-color: var(--primary-color);
    color: white;
}

.about-page .contact .content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.about-page .contact h2 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,0.5);
    margin-bottom: 1rem;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
}

.about-page .contact h3 {
    font-family: 'ABC Marist', serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 500;
    color: white;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.about-page .contact p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.75);
    max-width: 600px;
    margin-bottom: 0;
}

.about-page .contact-button {
    margin-top: 2.5rem;
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: white;
    color: var(--primary-color);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 4px;
    transition: opacity 0.2s ease;
}

.about-page .contact-button:hover {
    opacity: 0.85;
}

/* =============================================
   SCROLL ANIMATIONS
   ============================================= */

.about-split-left,
.about-split-right,
.team-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.about-split-left.visible,
.about-split-right.visible,
.team-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.team-card:nth-child(2) { transition-delay: 0.1s; }
.team-card:nth-child(3) { transition-delay: 0.2s; }
.team-card:nth-child(4) { transition-delay: 0.3s; }

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 900px) {
    .about-split {
        padding: 4rem 2rem;
    }

    .about-split-left {
        position: static;
    }

    .team-grid {
        flex-direction: column;
        align-items: center;
    }
    .team-grid .team-card {
        flex: 0 1 100%;
        max-width: 320px;
        width: 100%;
    }
}

@media (max-width: 500px) {
    .about-split .content-wrapper,
    .team-section .content-wrapper,
    .about-page .contact .content-wrapper {
        padding: 0;
    }
}

/* =============================================
   DARK MODE TOGGLE
   ============================================= */

.about-mode-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.15);
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 16px rgba(0,0,0,0.1);
}

.about-mode-toggle:hover {
    transform: scale(1.08);
}

/* =============================================
   ABOUT DARK MODE
   ============================================= */

body.about-page.about-dark .about-mode-toggle {
    background: rgba(30,30,30,0.85);
    border-color: rgba(255,255,255,0.15);
    color: white;
}

/* about-split card is always dark (rust-400) — no dark mode override needed */

body.about-page.about-dark .team-section {
    background-color: #0a0a0a;
}

body.about-page.about-dark .team-section h2,
body.about-page.about-dark .team-card h3 {
    color: #fff;
}

body.about-page.about-dark .team-intro,
body.about-page.about-dark .team-role {
    color: rgba(255,255,255,0.5);
}

body.about-page.about-dark footer {
    background-color: #000;
    border-color: rgba(255,255,255,0.1);
}

body.about-page.about-dark .footer-bottom p {
    color: rgba(255,255,255,0.35);
}

body.about-page.about-dark .footer-right a {
    color: rgba(255,255,255,0.6);
}

/* Hero ::before gradient adjusts in dark mode */
body.about-page.about-dark .hero::before {
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.55) 0%,
        rgba(0,0,0,0.1) 35%,
        rgba(0,0,0,0.0) 55%,
        rgba(0,0,0,0.0) 68%,
        rgba(0,0,0,1.0) 100%
    ) !important;
}
.about-page .hero-content h1, .about-page .hero h1 { color: var(--stormy-teal) !important; }
.about-page nav.nav-light { background: rgba(245, 242, 236, 0.92); border-color: rgba(0,0,0,0.08); }
.about-page nav.nav-light a { color: #1A1A2E; }
.about-page nav.nav-light .nav-links a { color: #1A1A2E; }
/* Collaborators section — centered, with breathing room above */
.collaborators-section {
    text-align: center;
    padding-top: 8rem;
    padding-bottom: 8rem;
}

.collaborators-section h2 {
    font-size: 3rem;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.collaborators-section .team-grid {
    justify-content: center;
}

.collaborators-section .team-card h3 {
    color: var(--black-navy, #1A1A2E);
}

.collaborators-section .team-role {
    color: rgba(26, 26, 46, 0.55);
}

/* =============================================
   VALUES READING SECTION
   ============================================= */

.values-reading {
    background: var(--warm-white);
    padding: 8rem 2rem 6rem;
    overflow: visible;
}

.vr-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.vr-header {
    text-align: center;
    max-width: 560px;
}

.vr-eyebrow {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--stormy-teal);
    margin: 0 0 0.8rem;
}

.vr-title {
    font-family: 'Libre Baskerville', serif;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 700;
    color: var(--stormy-teal);
    margin: 0 0 1.2rem;
    line-height: 1.1;
}

.roll-word {
    display: inline-block;
    animation: word-roll 9s ease-in-out infinite;
}

@keyframes word-roll {
    0%, 87%, 100% { transform: rotateX(0deg); }
    95%           { transform: rotateX(360deg); }
}


.vr-blurb {
    font-size: 1.05rem;
    line-height: 1.78;
    color: #555;
    margin: 0 0 1.5rem;
}

.vr-draw-btn {
    display: inline-block;
    background: var(--stormy-teal);
    color: #fff;
    border: 2px solid rgba(255,255,255,0.25);
    padding: 1.05rem 2.8rem;
    font-family: 'Libre Baskerville', serif;
    font-size: 0.95rem;
    letter-spacing: 0.12em;
    border-radius: 3px;
    cursor: pointer;
    outline: none;
    position: relative;
    box-shadow: 0 0 0 5px var(--stormy-teal), 0 0 0 7px rgba(44,102,113,0.25);
    transition: background 0.25s, box-shadow 0.25s, transform 0.15s;
}

.vr-draw-btn:hover {
    background: #223554;
    box-shadow: 0 0 0 5px #223554, 0 0 0 7px rgba(34,53,84,0.3);
    transform: translateY(-2px);
}

.vr-draw-btn:active {
    transform: translateY(0);
}

.vr-see-all {
    display: block;
    text-align: center;
    margin-top: 1.1rem;
    font-family: 'Libre Baskerville', serif;
    font-size: 0.85rem;
    font-style: italic;
    color: var(--stormy-teal);
    text-decoration: none;
    opacity: 0.62;
    transition: opacity 0.2s;
    letter-spacing: 0.02em;
}

.vr-see-all:hover {
    opacity: 1;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@keyframes vr-btn-pulse {
    0%, 100% { box-shadow: 0 0 0 5px var(--stormy-teal), 0 0 0 7px rgba(44,102,113,0.25); }
    50%       { box-shadow: 0 0 0 5px var(--stormy-teal), 0 0 0 12px rgba(44,102,113,0.18); }
}

/* Stage + spread */
.vr-stage {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

.vr-spread {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-top: 60px;
    padding-bottom: 10px;
    position: relative;
}

/* Shuffle animation — --sx/--sy/--sr are set per-card via JS before the class is added */
.vr-drawing .tarot-card {
    animation: tc-shuffle 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes tc-shuffle {
    0%   { transform: rotate(var(--rot)) translateY(var(--ty)); }
    38%  { transform: rotate(calc(var(--rot) + var(--sr, 0deg)))
                       translate(var(--sx, 0px), calc(var(--ty) + var(--sy, 0px))); }
    100% { transform: rotate(var(--rot)) translateY(var(--ty)); }
}

/* Individual cards */
.tarot-card {
    width: 148px;
    height: 256px;
    flex-shrink: 0;
    margin: 0 -22px;
    border-radius: 14px;
    background-color: var(--bg);
    position: relative;
    z-index: 1;
    transform: rotate(var(--rot)) translateY(var(--ty));
    transform-origin: center bottom;
    transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity 0.35s ease,
                box-shadow 0.35s ease,
                z-index 0s;
    box-shadow: 0 6px 28px rgba(0,0,0,0.18);
    cursor: pointer;
    user-select: none;
}

.tarot-card:hover:not(.vr-dimmed):not(.vr-chosen) {
    transform: rotate(var(--rot)) translateY(calc(var(--ty) - 12px));
    box-shadow: 0 16px 40px rgba(0,0,0,0.22);
    z-index: 5;
}

/* Card face */
.tc-face {
    position: absolute;
    inset: 0;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.4rem 1.1rem;
    text-align: center;
    overflow: hidden;
    color: var(--fg);
}

/* Inner border */
.tc-face::before {
    content: '';
    position: absolute;
    inset: 9px;
    border: 1px solid var(--border);
    border-radius: 8px;
    pointer-events: none;
}

.tc-symbol {
    font-size: 1.2rem;
    color: var(--fg);
    opacity: 0.5;
    margin-bottom: 0.85rem;
    display: block;
}

.tc-name {
    font-family: 'Libre Baskerville', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--fg);
    line-height: 1.25;
    margin-bottom: 0.75rem;
}

.tc-rule {
    display: block;
    width: 28px;
    height: 1px;
    background: var(--fg);
    opacity: 0.3;
    margin: 0 auto 0.65rem;
}

.tc-desc {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.65rem;
    font-style: italic;
    color: var(--fg);
    opacity: 0.82;
    line-height: 1.55;
}

/* States */
.tarot-card.vr-dimmed {
    opacity: 0.32;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.tarot-card.vr-chosen {
    transform: rotate(0deg) translateY(-110px) scale(1.13) !important;
    box-shadow: 0 28px 70px rgba(0,0,0,0.28), 0 0 0 2px var(--bg), 0 0 50px rgba(0,0,0,0.12) !important;
    z-index: 10;
    opacity: 1 !important;
    cursor: default;
}

/* Drawn label */
.vr-drawn-label {
    font-family: 'Libre Baskerville', serif;
    font-size: 1rem;
    font-style: italic;
    color: var(--stormy-teal);
    text-align: center;
    min-height: 1.6em;
    opacity: 0;
    transform: translateY(6px);
    transition: none;
}

.vr-drawn-label.vr-label-in {
    animation: vr-label-fade 0.55s 0.3s ease forwards;
}

@keyframes vr-label-fade {
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 860px) {
    .about-page .hero {
        padding-top: calc(80px + 2.5rem);
        padding-bottom: calc(3rem + 80px);
    }
    .tarot-card {
        width: 110px;
        height: 190px;
        margin: 0 -18px;
    }
    .tc-face { padding-top: 1.8rem; }
    .tc-numeral { top: 12px; }
    .tc-name { font-size: 0.8rem; }
    .tc-desc  { font-size: 0.58rem; }
    .vr-spread { padding-top: 100px; }
    .tarot-card.vr-chosen {
        transform: rotate(0deg) translateY(-75px) scale(1.3) !important;
    }
}

@media (max-width: 540px) {
    .values-reading {
        overflow-x: clip;
    }

    .about-page .hero {
        padding-top: calc(80px + 1.5rem);
        padding-bottom: calc(2.5rem + 80px);
    }
    .tarot-card {
        width: 82px;
        height: 142px;
        margin: 0 -16px;
        border-radius: 10px;
    }
    .tc-face { padding: 2rem 0.7rem 0.7rem; border-radius: 10px; }
    .tc-face::before { border-radius: 5px; inset: 6px; }
    .tc-numeral { top: 10px; font-size: 0.5rem; }
    .tc-name { font-size: 0.62rem; }
    .tc-symbol { font-size: 0.65rem; margin-bottom: 0.4rem; }
    .tc-desc { font-size: 0.52rem; }
    .vr-spread { padding-top: 100px; }
    .tarot-card.vr-chosen {
        transform: rotate(0deg) translateY(-75px) scale(1.4) !important;
    }
}
