/* ==========================================================================
   ALLURA ABOUT PAGE - Custom Styles
   Extracted from about.html inline styles
   ========================================================================== */

/* --- CSS VARIABLES --- */
:root {
    --editorial-bg: #F8F8FA;
    --editorial-text: #5D5276;
    --editorial-accent: #7A6E94;
    --editorial-highlight: #98DDC8;
    --grid-line: rgba(155, 141, 181, 0.2);
    --grain-url: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.5'/%3E%3C/svg%3E");
    --mint-green: #98DDC8;
    --cta-purple: #7A6E94;
}

/* --- BASE STYLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'General Sans', system-ui, sans-serif;
    background-color: var(--editorial-bg);
    color: var(--editorial-text);
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* Grain texture overlay */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: var(--grain-url);
    pointer-events: none;
    z-index: 9000;
    opacity: 0.3;
    mix-blend-mode: multiply;
}

/* Background blur effect */
body::after {
    content: "";
    position: fixed;
    inset: -20%;
    width: 140%;
    height: 140%;
    background-image: url('Gemini_Generated_Image_2af63s2af63s2af6.jpg');
    background-size: cover;
    background-position: center;
    z-index: -1;
    opacity: 0.4;
    filter: blur(80px);
    pointer-events: none;
}

.font-serif {
    font-family: 'Fraunces', serif;
}

/* --- NAVIGATION --- */
.nav-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-pill {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    background: rgba(248, 248, 250, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(155, 141, 181, 0.15);
    border-radius: 9999px;
    box-shadow: 0 4px 20px rgba(155, 141, 181, 0.1);
}

.allura-logo {
    height: 32px;
    display: flex;
    align-items: center;
}

.allura-logo img {
    height: 100%;
    width: auto;
}

.nav-link-group a {
    color: var(--editorial-text);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    margin-left: 2rem;
    font-weight: 600;
    font-family: 'Fraunces', serif;
    transition: color 0.3s;
}

.nav-link-group a:hover {
    color: var(--editorial-accent);
}

/* Progress Bar */
.nav-compact-icon {
    display: flex;
    flex: 1;
    margin: 0 2rem;
    align-items: center;
}

.scroll-progress-container {
    width: 100%;
    height: 2px;
    background: rgba(155, 141, 181, 0.15);
    border-radius: 2px;
    overflow: hidden;
}

.scroll-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--editorial-highlight), var(--editorial-accent));
    border-radius: 2px;
}

.btn-home {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--editorial-accent);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: 'Fraunces', serif;
    transition: all 0.3s;
}

.btn-home:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(122, 110, 148, 0.3);
}

.btn-home-icon {
    width: 14px;
    height: 14px;
}

/* Nav hidden state */
.nav-container.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-100%);
}

/* --- HERO SECTION --- */
.editorial-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 8rem 2rem 2rem;
    border-bottom: 1px solid var(--grid-line);
    position: relative;
}

.hero-title-container {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--grid-line);
    margin: 0 -2rem;
    padding: 4rem 0;
    background: radial-gradient(circle at center, rgba(152, 221, 200, 0.05), transparent 70%);
}

.hero-title {
    font-family: 'Fraunces', serif;
    font-weight: 200;
    font-size: clamp(2.5rem, 14vw, 12rem);
    line-height: 0.85;
    letter-spacing: -0.06em;
    text-align: center;
    text-transform: uppercase;
    color: var(--editorial-text);
}

.hero-title .line {
    display: block;
}

.hero-title .italic {
    font-style: italic;
    font-weight: 400;
    background: linear-gradient(135deg, var(--editorial-accent), var(--editorial-highlight));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-footer {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    padding-top: 1rem;
    font-family: 'Fraunces', serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--editorial-text);
    opacity: 0.7;
}

.hero-footer-item {
    font-weight: 500;
}

.hero-footer-center {
    text-align: center;
    opacity: 0.6;
    display: flex;
    justify-content: center;
}

.hero-footer-right {
    text-align: right;
}

.hero-footer-link {
    text-decoration: none;
    color: inherit;
    font-weight: 500;
}

.bounce-icon {
    width: 20px;
    height: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* --- PINNED GRID SECTION --- */
.pinned-section {
    height: 100vh;
    width: 100%;
    background: var(--editorial-bg);
    border-bottom: 1px solid var(--grid-line);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.pinned-spacer {
    height: 400vh;
}

.editorial-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    height: 100%;
    border-left: 1px solid var(--grid-line);
    border-right: 1px solid var(--grid-line);
    max-width: none;
}

.grid-content {
    border-right: 1px solid var(--grid-line);
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.chapter-label {
    position: absolute;
    top: 2rem;
    left: 2rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    border: 1px solid var(--editorial-accent);
    color: var(--editorial-accent);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-family: 'Fraunces', serif;
    background: rgba(255, 255, 255, 0.5);
}

.layer-title {
    font-family: 'Fraunces', serif;
    font-size: clamp(2rem, 8vw, 5rem);
    line-height: 0.9;
    margin-bottom: 2rem;
    font-weight: 300;
    color: var(--editorial-text);
}

.layer-text {
    font-size: 1.35rem;
    line-height: 1.5;
    max-width: 90%;
    font-weight: 450;
    font-family: 'General Sans', system-ui, sans-serif !important;
    color: var(--editorial-text);
    opacity: 1;
    letter-spacing: -0.01em;
}

.content-layer {
    position: absolute;
    top: 50%;
    left: 4rem;
    right: 4rem;
    transform: translateY(-50%);
    opacity: 0;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.content-layer.active {
    opacity: 1;
    pointer-events: all;
    z-index: 10;
}

/* Visual Column */
.grid-visual {
    position: relative;
    background: #F0E8F8;
    overflow: hidden;
}

.visual-layer {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
}

.visual-layer.active {
    opacity: 1;
}

/* Cards */
.sketch-card,
.mission-item,
.founder-profile {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(155, 141, 181, 0.12);
    border-radius: 16px;
    transform: none !important;
}

.sketch-card {
    transform: rotate(0deg);
    width: auto;
    max-width: none;
    color: var(--editorial-text);
}

.mission-item {
    width: auto;
    box-shadow: 0 4px 16px rgba(155, 141, 181, 0.12);
    margin-bottom: 1rem;
    font-family: 'General Sans', sans-serif;
    color: var(--editorial-text);
    font-size: 1.1rem;
}

.founders-row {
    gap: 4rem;
}

.founder-profile {
    width: auto;
    min-width: 200px;
    text-align: center;
    color: var(--editorial-text);
}

/* --- VISUAL LAYERS --- */
.origin-image-container,
.founder-image-container {
    padding: 2rem;
}

.visual-image {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 12px 48px rgba(155, 141, 181, 0.15);
}

.visual-caption {
    text-align: center;
    margin-top: 1rem;
}

.visual-caption-text {
    opacity: 0.7;
    font-family: 'Fraunces', serif;
    font-size: 1rem;
}

/* Constellation */
.constellation-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.holo-icon {
    position: absolute;
}

.holo-icon-innovation {
    top: 8%;
    left: 50%;
    transform: translateX(-50%);
    width: 25%;
    z-index: 10;
}

.holo-icon-empowerment {
    top: 50%;
    left: 5%;
    width: 18%;
    z-index: 5;
}

.holo-icon-community {
    top: 60%;
    right: 5%;
    width: 20%;
    z-index: 3;
}

.holo-icon img {
    width: 100%;
}

.holo-icon-innovation img {
    filter: drop-shadow(0 0 30px rgba(155, 141, 181, 0.5)) drop-shadow(0 0 60px rgba(152, 221, 200, 0.3));
}

.holo-icon-empowerment img {
    filter: drop-shadow(0 0 25px rgba(155, 141, 181, 0.4)) blur(0.5px);
}

.holo-icon-community img {
    filter: drop-shadow(0 0 20px rgba(155, 141, 181, 0.35)) blur(0.3px);
}

.icon-label {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 0.5rem;
    color: var(--editorial-text);
    font-weight: 500;
    letter-spacing: 0.12em;
    opacity: 0;
}

.icon-label-lg {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
}

.icon-label-sm {
    font-size: 0.7rem;
}

.orbital-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}

.orbital-ring-inner {
    width: 45%;
    padding-bottom: 45%;
    border: 1px solid rgba(155, 141, 181, 0.15);
}

.orbital-ring-outer {
    width: 75%;
    padding-bottom: 75%;
    border: 1px dashed rgba(155, 141, 181, 0.1);
}

/* Founders */
.founders-caption {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    padding: 0 1rem;
}

.founder-link {
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.founder-link:hover {
    color: var(--editorial-accent) !important;
}

.founder-link:hover i {
    opacity: 1 !important;
    transform: scale(1.1);
}

.founder-link i {
    transition: all 0.3s ease;
}

.founder-name {
    font-family: 'Fraunces', serif;
    font-size: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.founder-linkedin-icon {
    width: 18px;
    height: 18px;
    color: var(--editorial-accent);
    opacity: 0.7;
}

/* --- SECTION PROGRESS BAR --- */
.section-progress-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(155, 141, 181, 0.1);
    z-index: 100;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.section-progress-container.visible {
    opacity: 1;
}

.section-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--editorial-highlight), var(--editorial-accent));
    border-radius: 0 2px 2px 0;
    transition: width 0.1s linear;
}

/* --- TICKER --- */
.ticker-section {
    border-bottom: 1px solid var(--grid-line);
    background: var(--editorial-text);
    color: var(--editorial-highlight);
    padding: 1.5rem 0;
    overflow: hidden;
    position: relative;
    z-index: 50;
    isolation: isolate;
}

.ticker-track {
    display: flex;
    gap: 4rem;
    animation: tickerScroll 15s linear infinite;
}

.ticker-item {
    font-family: 'Fraunces', serif;
    font-size: clamp(2.5rem, 10vw, 8rem);
    white-space: nowrap;
    font-weight: 300;
    line-height: 1;
    text-transform: uppercase;
    color: var(--editorial-highlight);
}

.ticker-separator {
    color: var(--editorial-accent);
    font-family: serif;
}

@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- FINAL CTA --- */
.final-cta {
    padding: 8rem 2rem;
    text-align: center;
    border-bottom: 1px solid var(--grid-line);
    background: linear-gradient(180deg, var(--editorial-bg) 0%, #F0E8F8 100%);
}

.final-cta h2 {
    font-size: clamp(1.75rem, 6vw, 4rem);
    line-height: 0.9;
    font-family: 'Fraunces', serif;
    margin-bottom: 2rem;
    text-transform: uppercase;
    color: var(--editorial-text);
}

.final-cta a {
    color: var(--editorial-accent);
    text-decoration: none;
    display: inline-block;
}

.cta-button {
    background: var(--editorial-accent);
    color: white;
    border: none;
    cursor: pointer;
    font-family: 'General Sans', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 32px rgba(122, 110, 148, 0.35);
    background: #6A5E82 !important;
}

.cta-button-icon {
    width: 24px;
    height: 24px;
}

.cta-button-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.8;
}

.cta-button-text {
    font-size: 16px;
    font-weight: 600;
}

/* --- FOOTER --- */
.footer-simple {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    font-family: 'Fraunces', serif;
    color: var(--editorial-text);
}

.footer-links a {
    margin-right: 2rem;
    color: var(--editorial-text);
    text-decoration: none;
    opacity: 0.7;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--editorial-accent);
}

/* --- MOBILE MENU --- */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--editorial-text);
    z-index: 1001;
}

.mobile-menu-icon {
    width: 24px;
    height: 24px;
}

.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(248, 248, 250, 0.98);
    backdrop-filter: blur(20px);
    z-index: 9998;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu a {
    font-family: 'Fraunces', serif;
    font-size: 1.5rem;
    color: var(--editorial-text);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1rem 2rem;
    transition: color 0.3s ease;
}

.mobile-menu a:hover {
    color: var(--editorial-accent);
}

.mobile-menu-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    padding: 0.75rem;
    cursor: pointer;
    color: var(--editorial-text);
}

.mobile-menu-close-icon {
    width: 32px;
    height: 32px;
}

/* --- MOBILE STYLES --- */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-menu {
        display: flex;
    }

    .btn-home.desktop-only {
        display: none;
    }

    .editorial-grid {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 100vh;
    }

    .grid-content {
        border-right: none;
        border-bottom: 1px solid var(--grid-line);
        padding: 2rem 1.5rem;
        min-height: 50vh;
    }

    .grid-visual {
        min-height: 50vh;
    }

    .editorial-hero {
        padding: 6rem 1rem 1.5rem;
        min-height: calc(100vh - env(safe-area-inset-bottom));
    }

    .hero-title-container {
        padding: 2rem 1rem;
        margin: 0 -1rem;
    }

    .hero-title {
        font-size: clamp(2rem, 12vw, 4rem);
    }

    .hero-footer {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 0.75rem;
        font-size: 0.75rem;
    }

    .hero-footer-right {
        text-align: center;
    }

    .pinned-section {
        padding-top: 60px;
        height: 100vh;
        min-height: 100vh;
        max-height: 100vh;
        overflow: hidden;
    }

    .pinned-spacer {
        height: 350vh;
        position: relative;
    }

    .content-layer {
        left: 1.5rem;
        right: 1.5rem;
        padding: 1rem 0;
    }

    .layer-title {
        font-size: clamp(1.75rem, 7vw, 2.5rem);
        margin-bottom: 1rem;
    }

    .layer-text {
        font-size: 1rem;
        line-height: 1.6;
        max-width: 100%;
    }

    .chapter-label {
        top: 1rem;
        left: 1rem;
        font-size: 0.65rem;
    }

    .nav-pill {
        padding: 0.5rem 1rem;
    }

    .nav-compact-icon {
        margin: 0 0.75rem;
    }

    .allura-logo {
        height: 28px;
    }

    .origin-image-container,
    .founder-image-container {
        padding: 1rem !important;
    }

    .founder-image-container {
        padding-bottom: 3rem !important;
    }

    .origin-image-container img,
    .founder-image-container img {
        max-height: 35vh;
        object-fit: contain;
    }

    .constellation-container {
        transform: scale(0.8);
    }

    .holo-icon {
        width: 22% !important;
    }

    .ticker-section {
        padding: 1rem 0;
        overflow: hidden;
        background: var(--editorial-text) !important;
        color: var(--editorial-highlight) !important;
        margin-top: 0;
        position: relative;
        z-index: 10;
    }

    .ticker-item {
        font-size: clamp(1.5rem, 8vw, 3rem) !important;
        color: var(--editorial-highlight);
    }

    .ticker-track {
        gap: 2rem;
    }

    .final-cta {
        padding: 4rem 1.5rem;
    }

    .final-cta a {
        font-size: 1rem;
    }

    .final-cta button {
        padding: 1rem 1.5rem !important;
        font-size: 14px;
    }

    .final-cta button i,
    .cta-button-icon {
        width: 20px !important;
        height: 20px !important;
    }

    .footer-simple {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        padding: 2rem 1rem;
    }

    .footer-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem 1rem;
    }

    .footer-links a {
        margin-right: 0;
        padding: 0.5rem;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

@media (max-width: 380px) {
    .hero-title {
        font-size: clamp(1.75rem, 11vw, 2.5rem);
    }

    .layer-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    .layer-text {
        font-size: 0.9rem;
    }

    .final-cta h2 {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }

    .ticker-item {
        font-size: clamp(1.25rem, 7vw, 2rem) !important;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .editorial-grid {
        gap: 0;
    }

    .grid-content {
        padding: 3rem 2rem;
    }

    .layer-title {
        font-size: clamp(2.5rem, 6vw, 4rem);
    }

    .layer-text {
        font-size: 1.15rem;
    }
}
