/* CSS Reset and Base Styles */
html.lenis,
html.lenis body {
    height: auto;
}

.lenis:not(.lenis-autoToggle).lenis-stopped {
    overflow: clip;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-smooth iframe {
    pointer-events: none;
}

.lenis.lenis-autoToggle {
    transition-behavior: allow-discrete;
    transition-duration: 1ms;
    transition-property: overflow;
}

html {
    box-sizing: border-box;
    background-color: #050F0E;
}

*,
*:after,
*:before {
    box-sizing: inherit;
    line-height: 1.3;
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
}

img {
    image-rendering: optimizeSpeed !important;
    image-rendering: -webkit-optimize-contrast;
}

canvas,
img,
svg,
video {
    display: block;
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

h1, h2, h3, h4, h5, h6, p {
    word-wrap: break-word;
}

/* Typography and Fonts */
body, html {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    letter-spacing: -.1px;
    line-height: 1.3;
    margin-bottom: 0;
    background-color: #050F0E;
    color: #F1F1F1;
    overscroll-behavior: none;
    transition: background-color .4s ease;
}

body.noscroll,
html.noscroll {
    overflow: hidden;
}

/* Text Selection */
::selection {
    background: #FF384B;
    color: #F1F1F1;
}

::-moz-selection {
    background: #FF384B;
    color: #F1F1F1;
}

/* Container System */
.container {
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
    max-width: 1920px;
    padding: 0 20px;
    width: 100%;
}

/* Section Styles - More Compact */
.section {
    min-height: 100vh;
    padding: 5rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    transition: background-color .4s ease;
    overflow: hidden;
}

.section-content {
    max-width: 1200px;
    width: 100%;
    padding: 0 2rem;
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

/* Simplified Typography - Better Hierarchy */
.text-reveal.hero {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1.2px;
    margin: 2rem 0;
}

.text-reveal.large {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(1.2rem, 2.4vw, 1.8rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.4px;
    margin: 0.5rem 0;
}

.text-reveal.medium {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.9rem, 1.6vw, 1.2rem);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.2px;
    margin: 0.3rem 0;
}

.text-reveal.small {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.8rem, 1.4vw, 1rem);
    font-weight: 300;
    line-height: 1.4;
    letter-spacing: -0.1px;
    margin: 0.5rem 0;
}

/* Structural Dividers - Smaller */
.section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(98, 122, 124, 0.5), transparent);
    margin: 1rem 0;
    opacity: 0;
    transform: scaleX(0);
    transition: all .8s cubic-bezier(.19, 1, .22, 1);
}

.section-divider.visible {
    opacity: 1;
    transform: scaleX(1);
}

.content-break {
    height: 0.3rem;
    margin: 0.3rem 0;
}

/* Pillars Container - Smaller and More Compact */
.pillars-container {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 1.2rem;
    margin: 0.8rem 0;
    width: 100%;
    min-height: 120px;
}

.pillar {
    flex: 1;
    padding: 1rem 0.8rem;
    border-radius: 0;
    transition: all .4s cubic-bezier(.19, 1, .22, 1);
    opacity: 0;
    transform: translateY(50px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 100%;
    overflow: hidden;
    word-wrap: break-word;
    hyphens: auto;
}

.pillar.visible {
    opacity: 1;
    transform: translateY(0);
}

.pillar-left {
    background: rgba(98, 122, 124, 0.15);
    border-left: 3px solid #627A7C;
    text-align: left;
}

.pillar-right {
    background: rgba(98, 122, 124, 0.25);
    border-left: 3px solid #FF384B;
    text-align: left;
}

/* Depth section specific widths */
#depth .pillars-container {
    gap: 2rem;
}

#depth .pillar-left {
    flex: 0 0 22%;
    max-width: 22%;
}

#depth .pillar-right {
    flex: 0 0 75%;
    max-width: 75%;
}

#depth .intelligence-examples {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    flex-wrap: nowrap;
}

#depth .intelligence-item {
    flex: 1;
    min-width: 0;
    max-width: calc(33.333% - 0.67rem);
}

/* Chart Placeholder - Match intelligence item style */
.chart-placeholder {
    background: rgba(98, 122, 124, 0.25);
    border-left: 4px solid #627A7C;
    border-radius: 8px;
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin: 0.5rem 0;
    font-size: 0.8rem;
    color: #F1F1F1;
    transition: all .4s ease;
    opacity: 0;
    transform: scale(0.95);
    flex-grow: 1;
    gap: 0.3rem;
    min-height: 60px;
}

.chart-placeholder.visible {
    opacity: 1;
    transform: scale(1);
}

/* Intelligence Examples - Compact Horizontal Layout */
.intelligence-examples {
    text-align: left;
    display: flex;
    flex-direction: row;
    gap: 0.8rem;
    margin: 0.5rem 0;
    flex-wrap: wrap;
    flex-grow: 1;
}

.intelligence-item {
    padding: 0.8rem;
    background: rgba(98, 122, 124, 0.25);
    border-radius: 8px;
    border-left: 4px solid #627A7C;
    opacity: 0;
    transform: translateX(30px);
    transition: all .6s cubic-bezier(.19, 1, .22, 1);
    flex: 1;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 60px;
    gap: 0.3rem;
}

.intelligence-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.intelligence-percentage {
    font-family: 'Rubik', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: #F1F1F1;
    margin-bottom: 0;
}

.intelligence-detail {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    color: rgba(241, 241, 241, 0.6);
    font-style: italic;
    line-height: 1.3;
    margin-bottom: 0;
}

/* Transformation Section Layout */
.transformation-content {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    margin: 2rem 0;
}

.chaos-section {
    flex: 1;
    max-width: 45%;
}

.structured-section {
    flex: 1;
    max-width: 55%;
}

/* Video Gallery - 2x2 Grid */
.chaos-videos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 0.8rem;
    margin: 1rem 0;
    height: 240px;
}

.chaos-video {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    opacity: 0;
    transform: scale(0.8) rotate(5deg);
    transition: all .8s cubic-bezier(.19, 1, .22, 1);
    background: #333;
}

/* Structured Content - Single Box */
.structured-content {
    margin: 1rem 0;
    height: 240px; /* Match video grid height */
}

.content-box {
    background: rgba(98, 122, 124, 0.25);
    border-left: 4px solid #FF384B;
    padding: 1.2rem;
    border-radius: 8px;
    transition: all .4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: left;
    overflow: hidden;
    gap: 0.5rem;
}

.content-box .character-name {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(1.3rem, 2.8vw, 2rem);
    font-weight: 600;
    color: #F1F1F1;
    margin-bottom: 0;
    text-align: left;
    line-height: 1.2;
    letter-spacing: -0.6px;
}

.character-detail {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.9rem, 1.8vw, 1.2rem);
    font-weight: 400;
    color: rgba(241, 241, 241, 0.8);
    margin-bottom: 0;
    line-height: 1.4;
    letter-spacing: -0.2px;
}

.chaos-video.visible {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.chaos-video.organized {
    transform: scale(1) translateY(-5px) rotate(0deg);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.chaos-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Chaos Objects - Keep for fallback */
.chaos-objects {
    display: flex;
    justify-content: space-around;
    margin: 2rem 0;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.chaos-object {
    background: #F1F1F1;
    color: #050F0E;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-size: 0.8rem;
    opacity: 0;
    transform: scale(0) rotate(180deg);
    transition: all .8s cubic-bezier(.19, 1, .22, 1);
}

.chaos-object.visible {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.chaos-object.organized {
    background: #627A7C;
    color: #F1F1F1;
    transform: scale(1) translateY(-5px) rotate(0deg);
}

/* Divider */
.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #627A7C, transparent);
    margin: 2rem 0;
    width: 100%;
    opacity: 0;
    transform: scaleX(0);
    transition: all .8s cubic-bezier(.19, 1, .22, 1);
}

.divider.visible {
    opacity: 1;
    transform: scaleX(1);
}

/* Bottom Statement - Compact */
.bottom-statement {
    font-family: 'Inter', sans-serif;
    background: rgba(98, 122, 124, 0.4);
    color: #F1F1F1;
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem 0;
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-weight: 500;
    letter-spacing: -0.4px;
    line-height: 1.3;
    opacity: 0;
    transform: translateY(30px);
    transition: all .8s cubic-bezier(.19, 1, .22, 1);
}

.bottom-statement.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Final summary text after pillars */
.pillars-summary {
    margin-top: 0.5rem;
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
}

.pillars-summary .text-reveal {
    font-size: clamp(1rem, 1.8vw, 1.4rem);
    font-weight: 200;
    letter-spacing: -0.6px;
    margin: 0;
    text-align: left;
    padding: 0 0.8rem;
}

/* Align summary text with depth section pillars */
#depth .pillars-summary .text-reveal:first-child {
    flex: 0 0 22%;
    max-width: 22%;
}

#depth .pillars-summary .text-reveal:last-child {
    flex: 0 0 75%;
    max-width: 75%;
}

/* Show all content by default */
.text-reveal,
.section-divider,
.pillar,
.intelligence-item,
.chaos-video,
.chaos-object,
.chart-placeholder,
.divider,
.bottom-statement {
    opacity: 1;
    transform: none;
}

/* Industry Examples Section - More Compact */
.industry-examples {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 1.2rem;
    margin: 1rem 0;
    width: 100%;
}

.industry-item {
    flex: 1;
    background: rgba(98, 122, 124, 0.1);
    border: 1px solid rgba(98, 122, 124, 0.2);
    border-radius: 8px;
    padding: 1rem 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all .3s ease;
    min-height: 200px;
}

.industry-item:hover {
    background: rgba(98, 122, 124, 0.25);
    transform: translateY(-2px);
    border-color: #FF384B;
}

.industry-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(241, 241, 241, 0.15);
    border-radius: 50%;
    padding: 12px;
    margin-bottom: 1rem;
}

.industry-icon img {
    width: 36px;
    height: 36px;
    filter: brightness(0) invert(1);
}

.industry-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.industry-title {
    font-family: 'Manrope', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #F1F1F1;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.industry-question {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: rgba(241, 241, 241, 0.7);
    font-weight: 400;
    line-height: 1.5;
    max-width: 250px;
    margin: 0 auto;
}

/* Intro Section Special Styles */
#intro {
    background-color: #050F0E;
    display: flex;
    align-items: center;
    justify-content: center;
}

.intro-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.company-logo {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(4rem, 8vw, 8rem);
    font-weight: 700;
    color: #F1F1F1;
    letter-spacing: -2px;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 1.5s ease 0.5s forwards;
}

.company-tagline {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    font-weight: 400;
    color: rgba(241, 241, 241, 0.8);
    letter-spacing: -0.5px;
    line-height: 1.3;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 1.5s ease 1s forwards;
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    animation: fadeInUp 1.5s ease 1.5s forwards;
}

.scroll-arrow {
    font-size: 2rem;
    color: rgba(98, 122, 124, 0.8);
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    font-family: 'Rubik', sans-serif;
    font-size: 0.9rem;
    color: rgba(98, 122, 124, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 400;
}

/* Start Button */
.start-button {
    font-family: 'Rubik', sans-serif;
    background: #F1F1F1;
    color: #050F0E;
    border: none;
    padding: 1rem 3rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2rem;
    opacity: 0;
    animation: fadeInUp 1.5s ease 2s forwards;
}

.start-button:hover {
    background: #FF384B;
    color: #F1F1F1;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 56, 75, 0.3);
}

.start-button:active {
    transform: translateY(0);
}

/* Email Gate Styles */
.email-gate {
    opacity: 0;
    animation: fadeInUp 1.5s ease 2s forwards;
}

/* Hide everything except email gate initially */
body:not(.experience-started) .section-navigation,
body:not(.experience-started) .contact-icons,
body:not(.experience-started) #foundation,
body:not(.experience-started) #transformation,
body:not(.experience-started) #depth,
body:not(.experience-started) #data-ownership,
body:not(.experience-started) #promise {
    display: none !important;
}

.email-prompt {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1rem, 1.8vw, 1.3rem);
    color: rgba(241, 241, 241, 0.8);
    margin-bottom: 2rem;
    font-weight: 400;
}

.email-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    max-width: 400px;
    margin: 0 auto;
}

.email-form input[type="email"] {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid rgba(241, 241, 241, 0.3);
    border-radius: 50px;
    background: rgba(24, 38, 38, 0.3);
    color: #F1F1F1;
    font-size: 1.1rem;
    text-align: center;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.email-form input[type="email"]:focus {
    outline: none;
    border-color: #FF384B;
    background: rgba(24, 38, 38, 0.5);
    box-shadow: 0 0 20px rgba(255, 56, 75, 0.2);
}

.email-form input[type="email"]::placeholder {
    color: rgba(241, 241, 241, 0.5);
}

.email-form .start-button {
    margin-top: 0;
    width: 100%;
    max-width: 200px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Foundation Section Special Styles - More Compact */
#foundation {
    background-color: #0B1A18;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4vh 0;
}

#foundation .section-content {
    max-width: 960px;
    padding: 0 1.5rem;
}

/* Utility Classes */
.hide {
    opacity: 0;
    visibility: hidden;
}

.show {
    display: block !important;
    visibility: visible !important;
}

/* Tooltip styles for contact icons */
.contact-icons {
    position: fixed;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 1000;
    opacity: 1;
    visibility: visible;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: rgba(98, 122, 124, 0.3);
    border: 2px solid rgba(98, 122, 124, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all .3s ease;
    position: relative;
    color: rgba(241, 241, 241, 0.8);
}

.contact-icon:hover {
    background: #FF384B;
    color: #F1F1F1;
    border-color: #FF384B;
    transform: scale(1.1);
}

.contact-icon svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Demo Icon - Red Star */
.contact-icon.demo-icon svg {
    fill: #FF384B !important;
}

.contact-icon.demo-icon:hover svg {
    fill: #F1F1F1 !important;
}

/* Audio Toggle Button - Special States */
.contact-icon.audio-toggle.audio-active {
    background: rgba(255, 56, 75, 0.3);
    border-color: #FF384B;
    box-shadow: 0 0 15px rgba(255, 56, 75, 0.3);
}

.contact-icon.audio-toggle.audio-active:hover {
    background: #FF384B;
    color: #F1F1F1;
}

/* Profile Icon Styles */
.contact-icon.profile-icon {
    padding: 2px;
}

.profile-image {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(98, 122, 124, 0.5);
    transition: all 0.3s ease;
}

.contact-icon.profile-icon:hover .profile-image {
    border-color: #FF384B;
    transform: scale(1.05);
}

.contact-icon[data-tooltip]:hover::before {
    content: attr(data-tooltip);
    position: absolute;
    left: 130%;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(24, 38, 38, 0.9);
    color: #F1F1F1;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 1001;
}

.contact-icon[data-tooltip]:hover::after {
    content: '';
    position: absolute;
    left: 120%;
    top: 50%;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-right-color: rgba(24, 38, 38, 0.9);
    z-index: 1001;
}

/* Touch device optimizations */
.touch-device .contact-icon:hover {
    transform: none;
}

/* Reduced motion support */
.reduced-motion * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
}

/* Specific section overrides to ensure they also follow the 100vh rule */
#intro, #foundation, #transformation, #depth, #data-ownership, #promise {
    min-height: 100vh;
    height: auto; /* Allow height to grow if content is large, but min is 100vh */
} 