/* ═══════════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════════ */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    width: 100%;
    overflow-x: hidden;
    background-color: #0a0a0a;
    color: #E8E4D0;
    font-family: 'Roboto Mono', monospace;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Active nav link */
.nav-link.active { color: #A63429; }
.nav-cta.active { background: #c43d30; }

/* ScrollFlow overrides */
.sf-section {
    overflow: visible;
    width: 100vw !important;
    min-height: 100vh;
}

/* Fullpage section helpers */
.tech-fullpage {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gallery-fullpage {
    min-height: 100vh;
    padding-top: 80px;
    padding-bottom: 40px;
}

/* ═══════════════════════════════════════════
   HERO BANNER
   ═══════════════════════════════════════════ */
.hero-banner {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    background-color: #000;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Navigation */
.hero-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 48px;
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(2px) saturate(100%);
    -webkit-backdrop-filter: blur(2px) saturate(100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-left, .nav-right { display: flex; gap: 40px; align-items: center; }

.nav-link {
    color: #E8E4D0;
    text-decoration: none;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: -4px;
    right: -4px;
    top: 50%;
    height: 3px;
    background: #A63429;
    transform: scaleX(0) rotate(-2deg) skewX(-12deg);
    transform-origin: left center;
    transition: transform 0.3s ease;
}

.nav-link:hover {
    color: #E8E4D0;
}

.nav-link:hover::after {
    transform: scaleX(1) rotate(-2deg) skewX(-12deg);
}

.nav-cta {
    background: #A63429;
    padding: 8px 20px;
    border-radius: 4px;
    color: #fff;
    transition: background 0.3s, transform 0.2s;
}

.nav-cta:hover { background: #c43d30; color: #fff; transform: translateY(-2px); }

.nav-logo { z-index: 101; }
.logo-icon {
    width: 48px; height: 48px;
    object-fit: contain;
    display: block;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.logo-icon:hover {
    transform: rotate(360deg);
}

/* ═══════════════════════════════════════════
   FLOATING ITEMS
   ═══════════════════════════════════════════ */
.floating-item {
    position: absolute;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.4s ease;
    will-change: transform;
    filter: drop-shadow(0 8px 32px rgba(0,0,0,0.6));
}

/* Top items (dice, ball) BEHIND text */
.item-dice, .item-ball { z-index: 3; }
/* Bottom items (flag, money) ON TOP of text */
.item-flag, .item-money { z-index: 15; }

.floating-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

/* Idle floating animation */
.item-dice {
    width: 400px; height: 400px;
    top: 2%;  left: 4%;
    animation: floatDice 6s ease-in-out infinite;
}

.item-ball {
    width: 440px; height: 440px;
    top: 2%; right: 2%;
    animation: floatBall 7s ease-in-out infinite;
}

.item-flag {
    width: 460px; height: 460px;
    bottom: 0%; left: 0%;
    animation: floatFlag 8s ease-in-out infinite;
}

.item-money {
    width: 420px; height: 420px;
    bottom: 0%; right: 2%;
    animation: floatMoney 6.5s ease-in-out infinite;
}

/* Hover states - animated side-to-side movement */
.item-dice:hover, .item-ball:hover { z-index: 3; }
.item-flag:hover, .item-money:hover { z-index: 20; }

.item-dice:hover  { animation: shakeDice 1.5s ease-in-out infinite; }
.item-ball:hover  { animation: shakeBall 1.5s ease-in-out infinite; }
.item-flag:hover  { animation: shakeFlag 1.5s ease-in-out infinite; }
.item-money:hover { animation: shakeMoney 1.5s ease-in-out infinite; }

/* Keyframes for idle floating */
@keyframes floatDice {
    0%, 100% { transform: translate(0, 0) rotate(-5deg); }
    25%      { transform: translate(12px, -8px) rotate(0deg); }
    50%      { transform: translate(-8px, 6px) rotate(5deg); }
    75%      { transform: translate(6px, 10px) rotate(-3deg); }
}

@keyframes floatBall {
    0%, 100% { transform: translate(0, 0) rotate(3deg); }
    25%      { transform: translate(-10px, 8px) rotate(-2deg); }
    50%      { transform: translate(8px, -6px) rotate(5deg); }
    75%      { transform: translate(-6px, -10px) rotate(0deg); }
}

@keyframes floatFlag {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25%      { transform: translate(10px, 6px) rotate(3deg); }
    50%      { transform: translate(-6px, -8px) rotate(-4deg); }
    75%      { transform: translate(8px, -4px) rotate(2deg); }
}

@keyframes floatMoney {
    0%, 100% { transform: translate(0, 0) rotate(2deg); }
    25%      { transform: translate(-8px, -6px) rotate(-3deg); }
    50%      { transform: translate(10px, 8px) rotate(4deg); }
    75%      { transform: translate(-6px, 4px) rotate(-1deg); }
}

/* Keyframes for hover shake animations */
@keyframes shakeDice {
    0%   { transform: translateX(0) rotate(-5deg); }
    25%  { transform: translateX(40px) rotate(8deg); }
    50%  { transform: translateX(-30px) rotate(-6deg); }
    75%  { transform: translateX(25px) rotate(4deg); }
    100% { transform: translateX(0) rotate(-5deg); }
}

@keyframes shakeBall {
    0%   { transform: translateX(0) rotate(0deg); }
    25%  { transform: translateX(-45px) rotate(-10deg); }
    50%  { transform: translateX(35px) rotate(8deg); }
    75%  { transform: translateX(-20px) rotate(-5deg); }
    100% { transform: translateX(0) rotate(0deg); }
}

@keyframes shakeFlag {
    0%   { transform: translateX(0) rotate(0deg); }
    25%  { transform: translateX(35px) rotate(6deg); }
    50%  { transform: translateX(-40px) rotate(-8deg); }
    75%  { transform: translateX(30px) rotate(5deg); }
    100% { transform: translateX(0) rotate(0deg); }
}

@keyframes shakeMoney {
    0%   { transform: translateX(0) rotate(2deg); }
    25%  { transform: translateX(-40px) rotate(-8deg); }
    50%  { transform: translateX(35px) rotate(10deg); }
    75%  { transform: translateX(-25px) rotate(-4deg); }
    100% { transform: translateX(0) rotate(2deg); }
}

/* ═══════════════════════════════════════════
   HERO TEXT
   ═══════════════════════════════════════════ */
.hero-text {
    position: relative;
    z-index: 5;
    text-align: center;
    pointer-events: none;
    animation: heroFadeIn 1.2s ease-out forwards;
    opacity: 0;
}

.hero-title {
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    line-height: 0.88;
    color: #ffffff;
    letter-spacing: -4px;
}

.title-line {
    display: block;
}

.title-line:first-child { font-size: 20vw; }
.title-line:last-child  { font-size: 15vw; }

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

/* ═══════════════════════════════════════════
   HERO BOTTOM INFO
   ═══════════════════════════════════════════ */
.hero-bottom {
    position: absolute;
    bottom: 32px;
    left: 48px;
    right: 48px;
    display: flex;
    justify-content: space-between;
    z-index: 15;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    color: #888;
    text-transform: uppercase;
}

.hero-bottom-left, .hero-bottom-right {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hero-bottom-right { text-align: right; }
.hero-time { color: #E8E4D0; font-weight: 700; }

/* ═══════════════════════════════════════════
   VIDEO FEATURE SECTION
   ═══════════════════════════════════════════ */
.video-feature-section {
    background-color: #0d0d0d;
    padding: 60px 5vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100vw;
    box-sizing: border-box;
    text-align: center;
    position: relative;
    z-index: 10;
}

.video-content {
    max-width: 900px;
    margin-bottom: 40px;
}

.video-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    color: #E8E4D0;
    margin-bottom: 16px;
    line-height: 0.85;
}

.video-description {
    font-size: clamp(0.9rem, 2vw, 1.15rem);
    color: #888;
    font-family: 'Roboto Mono', monospace;
    max-width: 1000px;
    margin: 0 auto;
    line-height: 1.6;
}

.video-container {
    width: 100%;
    max-width: 900px;
    position: relative;
    border: 3px solid #2B2B2B;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.video-container:hover {
    transform: scale(1.02);
    border-color: #A63429;
}

.video-wrapper {
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background: #000;
}

.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-sound-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 5;
    width: 48px;
    height: 48px;
    border: 2px solid rgba(232, 228, 208, 0.4);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #E8E4D0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.video-sound-btn:hover {
    background: #A63429;
    border-color: #A63429;
    transform: scale(1.1);
}

/* ═══════════════════════════════════════════
   VALUES SECTION
   ═══════════════════════════════════════════ */
.values-section {
    background-color: #E8E4D0;
    padding: 60px 0;
    color: #2B2B2B;
    position: relative;
    z-index: 10;
    width: 100vw;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

.values-header { text-align: center; margin-bottom: 80px; }

.values-badge {
    display: inline-block;
    border: 2px solid #2B2B2B;
    border-radius: 4px;
    padding: 8px 24px;
    margin-bottom: 24px;
    font-size: 1rem;
    color: #2B2B2B;
    font-family: 'Roboto Mono', monospace;
    background: rgba(255,255,255,0.5);
}

.values-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 5rem;
    font-weight: 400;
    letter-spacing: 2px;
    color: #2B2B2B;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    padding: 0 5vw;
    max-width: 1400px;
    margin: 0 auto;
}

.value-card {
    border-radius: 12px;
    padding: 40px;
    height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 3px solid #2B2B2B;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 10px 10px 0px #2B2B2B;
}

.card-dark { background-color: #2B2B2B; color: #E8E4D0; }

.value-card-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.4s ease, transform 6s ease;
    z-index: 0;
    pointer-events: none;
    filter: grayscale(100%);
}

.value-card-bg::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    transition: background 0.4s ease;
}

.value-card:hover .value-card-bg {
    opacity: 1;
    transform: scale(1.05);
    filter: grayscale(0%);
}

.value-card:hover .value-card-bg::after {
    background-color: rgba(166, 52, 41, 0.6);
    background-image: none;
}

.card-number, .card-heading, .card-text {
    position: relative;
    z-index: 1;
}

.card-number {
    font-family: 'Bebas Neue', display;
    font-size: 1.5rem;
    opacity: 0.6;
    margin-bottom: 20px;
}

.card-heading {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3.5rem;
    margin-bottom: auto;
    margin-top: 60px;
    line-height: 0.9;
}

.card-text {
    font-family: 'Roboto Mono', monospace;
    font-size: 1rem;
    line-height: 1.5;
    max-width: 95%;
}

/* ═══════════════════════════════════════════
   TECH SECTION
   ═══════════════════════════════════════════ */
.tech-section {
    background-color: #0a0a0a;
    padding: 50px 0 60px;
    color: #E8E4D0;
    position: relative;
    overflow: hidden;
}

.tech-in-founders {
    background-color: transparent;
    padding: 20px 0 0;
    margin-top: 30px;
}

.tech-header { text-align: center; margin-bottom: 40px; padding: 0 20px; }

.tech-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    font-weight: 400;
    letter-spacing: 2px;
    color: #E8E4D0;
}

.tech-slider-wrap {
    position: relative;
    overflow: hidden;
}

.tech-slider-wrap::before,
.tech-slider-wrap::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 120px;
    z-index: 10;
    pointer-events: none;
}

.tech-slider-wrap::before {
    left: 0;
    background: linear-gradient(90deg, #0a0a0a 0%, transparent 100%);
}

.tech-slider-wrap::after {
    right: 0;
    background: linear-gradient(-90deg, #0a0a0a 0%, transparent 100%);
}

.tech-in-founders .tech-slider-wrap::before {
    background: linear-gradient(90deg, #2B2B2B 0%, transparent 100%);
}

.tech-in-founders .tech-slider-wrap::after {
    background: linear-gradient(-90deg, #2B2B2B 0%, transparent 100%);
}

.tech-track {
    display: flex;
    gap: 48px;
    animation: techScroll 30s linear infinite;
    width: max-content;
}

.tech-slide {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    padding: 10px;
    transition: transform 0.3s ease;
}

.tech-slide:hover { transform: translateY(-4px); }

.tech-slide img {
    max-width: 60px;
    max-height: 60px;
    width: auto; height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.tech-slide:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

@keyframes techScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ═══════════════════════════════════════════
   PORTFOLIO SECTION — Expanding Accordion
   ═══════════════════════════════════════════ */
.portfolio-section {
    background-color: #0a0a0a;
    padding: 40px 0;
    color: #E8E4D0;
    width: 100vw;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.portfolio-top-bar {
    padding: 0 5vw;
    margin-bottom: 30px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.portfolio-header-center {
    text-align: center;
    flex: 1;
}

.portfolio-label {
    display: block;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #A63429;
    margin-bottom: 8px;
}

.portfolio-heading {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3.5rem;
    color: #E8E4D0;
    line-height: 1;
}

.portfolio-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.portfolio-counter {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.85rem;
    color: rgba(232, 228, 208, 0.5);
    letter-spacing: 2px;
}

.portfolio-arrow {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(232, 228, 208, 0.2);
    border-radius: 50%;
    background: transparent;
    color: #E8E4D0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.portfolio-arrow:hover {
    border-color: #A63429;
    background: #A63429;
    color: #fff;
    transform: scale(1.1);
}

/* Hidden panels (not on current page) */
.acc-panel.acc-hidden {
    display: none;
}

.portfolio-heading {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3.5rem;
    color: #E8E4D0;
    line-height: 1;
}

/* ── The Accordion ── */
.portfolio-accordion {
    display: flex;
    gap: 6px;
    height: 65vh;
    padding: 0 5vw;
    box-sizing: border-box;
}

.acc-panel {
    position: relative;
    flex: 1;
    min-width: 60px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: flex 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.acc-panel.active {
    flex: 6;
}

/* Background image layer */
.acc-panel-bg {
    position: absolute;
    inset: 0;
    background-image: var(--panel-bg);
    background-size: cover;
    background-position: center;
    filter: brightness(0.4) grayscale(80%);
    transition: filter 0.7s ease, transform 5s ease;
    transform: scale(1.05);
}

.acc-panel.active .acc-panel-bg {
    filter: brightness(0.55) grayscale(0%);
    transform: scale(1);
}

/* Gradient overlay for readability */
.acc-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.3) 40%,
        transparent 100%
    );
    z-index: 1;
    pointer-events: none;
}

/* Panel number — always visible, rotated on collapsed */
.acc-panel-number {
    position: absolute;
    z-index: 2;
    font-family: 'Bebas Neue', sans-serif;
    color: rgba(232, 228, 208, 0.15);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

/* Collapsed: number is vertical along the strip */
.acc-panel .acc-panel-number {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    letter-spacing: 4px;
}

/* Active: number goes large in top-right */
.acc-panel.active .acc-panel-number {
    top: 20px;
    right: 30px;
    left: auto;
    bottom: auto;
    transform: none;
    font-size: 8rem;
    writing-mode: horizontal-tb;
    text-orientation: initial;
    letter-spacing: -2px;
    color: rgba(166, 52, 41, 0.25);
    line-height: 0.8;
}

/* Content — hidden on collapsed, animated reveal on active */
.acc-panel-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 30px 35px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease 0.3s, transform 0.5s ease 0.3s;
    pointer-events: none;
}

.acc-panel.active .acc-panel-content {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.acc-tag {
    display: inline-block;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #A63429;
    border: 1px solid rgba(166, 52, 41, 0.5);
    padding: 4px 12px;
    border-radius: 2px;
    margin-bottom: 12px;
    backdrop-filter: blur(4px);
    background: rgba(0,0,0,0.3);
}

.acc-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.8rem;
    color: #E8E4D0;
    line-height: 0.95;
    margin-bottom: 10px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.acc-desc {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.8rem;
    color: rgba(232, 228, 208, 0.7);
    line-height: 1.5;
    max-width: 400px;
}

/* Thin red accent line at bottom of active panel */
.acc-panel.active::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #A63429, transparent);
    z-index: 3;
    animation: accLineReveal 0.8s ease forwards;
}

@keyframes accLineReveal {
    from { transform: scaleX(0); transform-origin: left; }
    to   { transform: scaleX(1); transform-origin: left; }
}


/* ═══════════════════════════════════════════
   FOUNDERS SECTION
   ═══════════════════════════════════════════ */
.founders-section {
    background-color: #2B2B2B;
    padding: 30px 20px 10px;
    color: #E8E4D0;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(232, 228, 208, 0.1);
    width: 100vw;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

.founders-header { text-align: center; margin-bottom: 40px; position: relative; z-index: 1; }

.founders-badge {
    display: inline-block;
    border: 2px solid #A63429;
    border-radius: 4px;
    padding: 8px 24px;
    margin-bottom: 24px;
    font-size: 1rem;
    color: #A63429;
    font-family: 'Bangers', cursive;
    letter-spacing: 1px;
}

.founders-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3.5rem;
    color: #E8E4D0;
    margin-bottom: 10px;
}

.founders-subtitle {
    color: #7A7A7A;
    font-size: 0.95rem;
    max-width: 1000px;
    margin: 0 auto;
    font-family: 'Roboto Mono', monospace;
    line-height: 1.5;
}

.founders-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.founder-card {
    background: #1a1a1a;
    border: 3px solid #E8E4D0;
    border-radius: 16px;
    padding: 36px 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 8px 8px 0px rgba(0,0,0,0.5);
}

.founder-card:hover {
    transform: translate(-4px, -4px);
    box-shadow: 10px 10px 0px #E8E4D0;
}

.founder-avatar {
    width: 180px; height: 180px;
    border-radius: 12px;
    margin: 0 auto 20px;
    border: 4px solid #A63429;
    overflow: hidden;
    background: #000;
    box-shadow: 8px 8px 0px rgba(166, 52, 41, 0.3);
    transition: all 0.4s ease;
}

.founder-avatar img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.founder-card:hover .founder-avatar {
    transform: rotate(-2deg);
    box-shadow: 15px 15px 0px rgba(166, 52, 41, 0.5);
    border-color: #E8E4D0;
}

.founder-card:hover .founder-avatar img { transform: scale(1.1); }

.founder-role {
    display: inline-block;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #A63429;
    background: #E8E4D0;
    padding: 4px 8px;
    margin-bottom: 16px;
}

.founder-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.2rem;
    color: #E8E4D0;
    margin-bottom: 16px;
}

.founder-bio {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.95rem;
    color: #7A7A7A;
    line-height: 1.6;
    margin-bottom: 28px;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

.founder-socials { display: flex; justify-content: center; gap: 12px; }

.founder-social-link {
    width: 44px; height: 44px;
    border-radius: 4px;
    background: #1a1a1a;
    border: 2px solid #E8E4D0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #E8E4D0;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 2px 2px 0 #E8E4D0;
}

.founder-social-link:hover {
    background: #A63429;
    color: #fff;
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0 #E8E4D0;
}

/* ═══════════════════════════════════════════
   BRANDS SECTION
   ═══════════════════════════════════════════ */
.brands-section {
    background-color: #0a0a0a;
    color: #E8E4D0;
    width: 100vw;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

/* ── Structured Logos Background Layer ── */
.brands-bg-logos {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    grid-template-rows: repeat(7, 1fr);
    padding: 20px;
    gap: 10px;
}

@media (max-width: 768px) {
    .brands-bg-logos {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(10, 1fr);
    }
}

.brand-logo-float {
    position: relative;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.5) rotate(var(--rot, -10deg));
    transition: opacity 0.6s ease, transform 0.6s ease, filter 1s ease;
}

.brand-logo-float.visible {
    opacity: 0.18;
    transform: scale(1) rotate(var(--rot, 0deg));
}

.brand-logo-float.colored {
    filter: grayscale(0%) !important;
    opacity: 0.6;
}

.brand-logo-float img {
    width: 100%;
    height: 100%;
    max-width: 65px;
    max-height: 65px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 1s ease;
}

@media (max-width: 768px) {
    .brand-logo-float img {
        max-width: 40px;
        max-height: 40px;
    }
}

.brand-logo-float.colored img {
    filter: grayscale(0%);
}

/* ── Centered Content (above logos) ── */
.brands-content {
    text-align: center;
    padding: 60px 50px;
    position: relative;
    z-index: 10;
    max-width: 800px;
    background: rgba(10, 10, 10, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    opacity: 0;
    transform: translateY(-80px);
    transition: opacity 1.5s ease, transform 1.5s ease;
}

.brands-section.in-view .brands-content {
    opacity: 1;
    transform: translateY(0);
}

.brands-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3rem, 8vw, 5.5rem);
    color: #E8E4D0;
    line-height: 0.9;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.brands-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #A63429;
}

.brands-description {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.8;
    color: #999;
}

.brands-description p {
    margin-bottom: 8px;
}

.brands-highlight {
    color: #E8E4D0;
    font-size: 1rem;
}

.brands-highlight strong {
    color: #A63429;
    font-weight: 700;
}

.brands-cta-text {
    color: #A63429;
    font-style: italic;
    margin-top: 12px;
}

.brands-bottom-img {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transition: opacity 1.5s ease, transform 1.5s ease;
}

.brands-section.in-view .brands-bottom-img {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.brands-bottom-img img {
    max-width: 300px;
    height: auto;
    display: block;
}

/* ═══════════════════════════════════════════
   CONTACT SECTION
   ═══════════════════════════════════════════ */
.contact-section {
    background-color: #E8E4D0;
    padding: 60px 20px;
    color: #2B2B2B;
    width: 100vw;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
}

.contact-wrapper {
    max-width: 700px;
    margin: 0 auto;
    border: 3px solid #2B2B2B;
    padding: 60px;
    padding-top: 80px;
    background: #fff;
    box-shadow: 12px 12px 0 #2B2B2B;
    position: relative;
    overflow: visible;
}



.contact-rat-header {
    position: absolute;    
    left: 50%;
    transform: translateX(-50%) translateY(-100%); /* Places bottom edge at top: 0 */
    margin-top: -3px;
    height: 285px;
    pointer-events: none;
    z-index: 10;
}

.contact-rat-header img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.contact-header { text-align: center; margin-bottom: 40px; }

.contact-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 4rem;
    color: #2B2B2B;
    margin-bottom: 10px;
}

.contact-subtitle {
    color: #555;
    font-size: 1.2rem;
    font-family: 'Roboto', sans-serif;
}

.contact-form { display: flex; flex-direction: column; gap: 24px; }

.contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.contact-field { display: flex; flex-direction: column; gap: 8px; }

.contact-label {
    font-family: 'Bangers', cursive;
    font-size: 1.2rem;
    letter-spacing: 1px;
    color: #2B2B2B;
}

.contact-input, .contact-textarea {
    width: 100%;
    padding: 12px 16px;
    background: #E8E4D0;
    border: 2px solid #2B2B2B;
    color: #2B2B2B;
    font-family: 'Roboto Mono', monospace;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.contact-input:focus, .contact-textarea:focus {
    border-color: rgba(217, 35, 15, 0.5);
}

.contact-textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.contact-submit {
    align-self: flex-start;
    padding: 16px 48px;
    background: #2B2B2B;
    color: #E8E4D0;
    border: 3px solid #2B2B2B;
    font-family: 'Bangers', cursive;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 4px 4px 0px #A63429;
}

.contact-submit:hover {
    background: #A63429;
    color: #fff;
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px #2B2B2B;
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.site-footer {
    background-color: #2B2B2B;
    padding: 80px 5vw 40px;
    color: #E8E4D0;
    font-family: 'Roboto Mono', monospace;
    border-top: 3px solid #E8E4D0;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.footer-left { display: flex; flex-direction: column; gap: 60px; }

.footer-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem;
    color: #E8E4D0;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.footer-logo-icon { font-size: 1.6rem; }
.footer-copyright { font-size: 0.85rem; color: #7A7A7A; }

.footer-divider {
    background: #E8E4D0;
    width: 2px;
    align-self: stretch;
}

.footer-right { display: flex; flex-direction: column; gap: 80px; }
.footer-links { display: flex; flex-direction: column; gap: 14px; }

.footer-links a {
    color: #E8E4D0;
    text-decoration: none;
    font-weight: 700;
    font-family: 'Bangers', cursive;
    font-size: 1.4rem;
    letter-spacing: 1px;
    width: fit-content;
}

.footer-links a:hover { color: #A63429; text-decoration: underline; }

.footer-bottom-right { display: flex; gap: 24px; }

.footer-bottom-right a {
    color: #7A7A7A;
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
    font-family: 'Special Elite', monospace;
}

.footer-bottom-right a:hover { color: #fff; }

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
/* ═══════════════════════════════════════════
   HAMBURGER & MOBILE MENU (hidden on desktop)
   ═══════════════════════════════════════════ */
.nav-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 1001;
}

.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #E8E4D0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) {
    opacity: 0;
}
.nav-hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(2px) saturate(100%);
    -webkit-backdrop-filter: blur(2px) saturate(100%);
    z-index: 999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.mobile-menu.open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-link {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    color: #E8E4D0;
    text-decoration: none;
    letter-spacing: 4px;
    transition: color 0.3s ease;
    position: relative;
}

.mobile-menu-link::after {
    content: '';
    position: absolute;
    left: -6px;
    right: -6px;
    top: 50%;
    height: 4px;
    background: #A63429;
    transform: scaleX(0) rotate(-2deg) skewX(-12deg);
    transform-origin: left center;
    transition: transform 0.3s ease;
}

.mobile-menu-link:hover::after,
.mobile-menu-link.active::after {
    transform: scaleX(1) rotate(-2deg) skewX(-12deg);
}

.mobile-menu-link.active {
    color: #A63429;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
    .item-dice  { width: 300px; height: 300px; top: 5%; left: 2%; }
    .item-ball  { width: 320px; height: 320px; top: 4%; right: 0%; }
    .item-flag  { width: 340px; height: 340px; bottom: 4%; left: -1%; }
    .item-money { width: 310px; height: 310px; bottom: 4%; right: 1%; }
    .title-line:first-child { font-size: 14vw; }
    .title-line:last-child  { font-size: 16vw; }
    .portfolio-grid { grid-template-columns: repeat(3, 1fr); }

    /* Brands */
    .brand-logo-float img { width: 60px; height: 60px; }
}

@media (max-width: 768px) {
    /* Nav: hide desktop links, show hamburger */
    .nav-left, .nav-right { display: none; }
    .nav-hamburger { display: flex; }
    .mobile-menu { display: flex; }

    .hero-nav {
        justify-content: space-between;
        padding: 16px 20px;
    }

    /* Hero */
    .item-dice  { width: 200px; height: 200px; top: 8%; left: -2%; }
    .item-ball  { width: 210px; height: 210px; top: 5%; right: -2%; }
    .item-flag  { width: 230px; height: 230px; bottom: 6%; left: -4%; }
    .item-money { width: 210px; height: 210px; bottom: 6%; right: -2%; }

    .title-line:first-child { font-size: 18vw; }
    .title-line:last-child  { font-size: 20vw; }
    .hero-title { letter-spacing: -2px; }
    .hero-bottom { left: 20px; right: 20px; bottom: 20px; font-size: 0.6rem; }

    /* Values: stack cards vertically */
    .values-section { padding: 40px 0; }
    .values-title { font-size: 3rem; }
    .values-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 20px;
        max-width: 500px;
    }
    .value-card { height: 300px; }
    .card-heading { font-size: 2rem; }
    .values-header { margin-bottom: 40px; }

    /* Portfolio */
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: minmax(100px, 14vh);
        gap: 8px;
        padding: 0 16px;
    }
    .pf-card.span-2c { grid-column: span 1; }
    .gallery-title { font-size: 3rem; }
    .gallery-content { margin-bottom: 30px; }
    .pf-overlay { opacity: 0; }
    .pf-card:active .pf-overlay { opacity: 1; }
    .pf-overlay h3 { font-size: 1.5rem; }

    /* Founders */
    .founders-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        max-width: 420px;
    }
    .founders-title { font-size: 3rem; }
    .founder-card { padding: 36px 28px; }
    .founder-avatar { width: 100px; height: 100px; }
    .founders-header { margin-bottom: 40px; }

    /* Contact */
    .contact-section { padding: 40px 20px; }
    .contact-wrapper { padding: 36px 24px; }
    .contact-title { font-size: 2.5rem; }
    .contact-form-row { grid-template-columns: 1fr; }
    .contact-submit { width: 100%; text-align: center; }





    
    /* Footer */
    .site-footer { padding: 48px 20px 32px; }
    .footer-main { grid-template-columns: 1fr; gap: 40px; }
    .footer-divider { width: 100%; height: 1px; }
    .footer-left, .footer-right { gap: 40px; }
    .footer-logo { font-size: 1.8rem; }

    /* Brands Mobile */
    .brands-content { padding: 30px 20px; max-width: 90%; }
    .brands-title { font-size: 2.8rem; margin-bottom: 20px; }
    .brand-logo-float img { width: 45px; height: 45px; }
    .brand-logo-float.visible { opacity: 0.25; }
    .brands-bottom-img img { max-width: 180px; }
}

@media (max-width: 480px) {
    .mobile-menu-link { font-size: 2rem; }
    .values-grid { padding: 0 16px; }
    .value-card { height: 260px; }
    .card-heading { font-size: 1.8rem; }
    .portfolio-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: minmax(140px, 20vh);
    }
    .pf-card.span-2r { grid-row: span 1; }
    .gallery-title { font-size: 2.5rem; }
    .founders-title { font-size: 2.5rem; }
    .contact-title { font-size: 2rem; }

    
    /* Brands Ultra Mobile */
    .brands-title { font-size: 2.2rem; }
    .brand-logo-float img { width: 35px; height: 35px; }
    .brands-bg-logos { transform: scale(0.9); }
}

/* ── Contact Rat Header Top Adjustments ── */
@media (min-width: 717px) and (max-width: 758px) { .contact-rat-header { top: 81px; } }
@media (min-width: 681px) and (max-width: 716px) { .contact-rat-header { top: 84px; } }
@media (min-width: 648px) and (max-width: 680px) { .contact-rat-header { top: 87px; } }
@media (min-width: 620px) and (max-width: 647px) { .contact-rat-header { top: 90px; } }
@media (min-width: 585px) and (max-width: 619px) { .contact-rat-header { top: 93px; } }
@media (min-width: 555px) and (max-width: 584px) { .contact-rat-header { top: 96px; } }
@media (min-width: 520px) and (max-width: 554px) { .contact-rat-header { top: 99px; } }
@media (min-width: 489px) and (max-width: 519px) { .contact-rat-header { top: 102px; } }
@media (min-width: 455px) and (max-width: 488px) { .contact-rat-header { top: 105px; } }
@media (min-width: 425px) and (max-width: 454px) { .contact-rat-header { top: 108px; } }
@media (max-width: 424px) { .contact-rat-header { display: none; } }

.contact-wrapper{
    margin-top: 150px;
}
