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


:root {
    --background-color: #fff;
    --text-color: #000;
    --accent-color: #EE4B2B;
}

body {
    font-family: 'dm-sans', sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    transition: background-color 0.3s, color 0.3s;
}

/* Dark mode styles - only applied when .dark-mode class is present */
.dark-mode {
    --background-color: #121212;
    --text-color: #fff;
}

.dark-mode body {
    background-color: var(--background-color);
    color: var(--text-color);
}

.dark-mode nav {
    background-color: var(--background-color) !important;
}

.dark-mode nav a {
    color: var(--text-color) !important;
}

.dark-mode hr {
    border-color: var(--text-color) !important;
}

.dark-mode .stat-box img {
    filter: brightness(0.9);
}

.dark-mode .persona-card {
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.dark-mode .persona-info {
    background-color: rgba(0, 0, 0, 0.6);
}

.dark-mode .responsive-iframe {
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-mode .connector-placeholder {
    border-top-color: #fff;
}

.dark-mode .circle-item {
    background: #121212;
    border-color: #fff;
}

.dark-mode .fullscreen-image-container {
    background-color: rgba(0, 0, 0, 0.95);
}

.container {
    max-width: 100%;
    margin: 0 auto;
}

 /*hero image container */
.img-section {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    text-align: center; /* Center the contents */
}

.feature-image {
    margin-top: 3%;
    margin-bottom: 3%;
}

.hero-image {
    width: 100%;
    margin: 40px auto; /* Change from '40px 0' to '40px auto' */
    cursor: pointer;
    display: inline-block; /* This helps with centering */
    max-width: 100%;
}

.hero-image svg {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
}

/* ── Custom cursor ── */
html { cursor: none; }
a, button, [role="button"], input, label, select, textarea { cursor: none; }
.cursor {
    width: 12px;
    height: 12px;
    background: #040202;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99999;
    left: -20px;
    top: -20px;
    transform: translate(-50%, -50%);
    transition: width 0.18s ease, height 0.18s ease, opacity 0.18s ease, background 0.18s ease;
}
.cursor.large  { width: 18px; height: 18px; }
.cursor.hidden { opacity: 0; }


/* Navigation */
nav {
    margin-bottom: 0;
    color: #000;
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    z-index: 1000;
    background: #ffffff;
    overflow: hidden;
}

nav a {
    float: left;
    display: block;
    width: 10%;
    font-family: "dm-sans", sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #040202;
    text-decoration: none;
    text-align: center;
    padding: 14px 40px;
    position: relative;
    transition: color 0.25s ease;
    cursor: none;
}
nav a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #040202;
    border-radius: 20px;
    transform: scale(0.6);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
    z-index: -1;
}
nav a:hover::before { transform: scale(0.6); opacity: 1; }
nav a:hover { color: #ffffff; }

.dark-mode nav {
    background-color: #121212 !important;
}
.dark-mode nav a {
    color: #fff !important;
}
.dark-mode nav a:hover {
    color: #121212 !important;
}
.dark-mode nav a::before {
    background: #fff !important;
}

.dark-mode-toggle {
    float: right;
    padding: 14px 40px;
    background: none;
    border: none;
    cursor: none;
    color: inherit;
    font-size: 16px;
}

body {
   
    padding-top: 14%;
}

.main-content {
    padding: 0 40px;
     padding-top: 14%;
}

p {
    max-width: 100%;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

ul {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 20px;
    padding-left: 20px;
}

ol {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 20px;
    padding-left: 20px;
}

/* Main content grid */
.grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 40px;
    margin-bottom: 80px;
}

.title-section {
    grid-column: 1 / 3;
    margin-bottom: 0px;
}

.subtitle-section {
    grid-column: 3 / 6;
    margin-bottom: 0px;
}

.title {
    font-size: 3rem;
    line-height: 1;
    font-weight: 400;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.5rem;
    line-height: 1.3;
    font-weight: 400;
}

.details {
    grid-column: 1 / 2;
    font-size: 1rem;
    line-height: 1.35;
    padding-right: 20px;
}

.details div {
    margin-bottom: 12px;
}

.project-info {
    grid-column: 3 / 6;
    font-size: 1rem;
    line-height: 1.6;
}

.project-info p {
    margin-bottom: 0px;
}

hr {
    margin-top: 10px;
    margin-bottom: 15px;
    border-top: 1px solid #000;
    z-index: 50;
}

.img-section {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

.img-section img {
    width: 100%;
    height: auto;
    display: block;
    background-color: #000;
    cursor: pointer;
}

.content-section {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 40px;
    margin: 40px 0;
}

.content-title {
    grid-column: 1 / 2;
    font-size: 1rem;
    font-weight: 400;
}

.content-details {
    grid-column: 3 / 6;
}

.content-details .big-text {
    font-size: 1.5rem;
    line-height: 1.3;
    margin-bottom: 20px;
    font-weight: 300;
}

.feature-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

.quote {
    font-style: italic;
    margin: 30px 0;
}

.quote p {
    margin-bottom: 5px;
}

/* Stats grid at bottom */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border-top: 1px solid rgba(0,0,0,0.1);
    margin-top: 40px;
}

.stat-box {
    padding: 20px;
    border-right: 1px solid rgba(0,0,0,0.1);
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.stat-box:last-child {
    border-right: none;
}

.large-number {
    font-size: 70px;
    line-height: 1;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-title {
    font-size: 14px;
    margin-top: 10px;
    font-weight: 500;
}

/* Fullscreen image functionality */
.fullscreen-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.fullscreen-image {
    max-width: 90%;
    max-height: 90%;
    background-color: #000;
}

.close-button {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

.bottomwrap{
    display: grid;
    grid-template-columns: 4fr 1fr;
    grid-template-areas: 
        "empty"
        "bw";
    gap: 40px;
    margin: 40px 0 0px 0;
}

.bottomwrap a {
    color: var(--text-color);
}

   .bottomwrap a:hover{
    color: #F2511A;
}

/* Additional persona-specific styles */
.persona-image-circle {
    width: 120px;
    height: 120px;
    overflow: hidden;
    margin-bottom: 20px;
}

.persona-image-circle .img-section {
    margin: 0;
    width: 100%;
}

.persona-image-circle .feature-image {
    margin: 0;
}

.persona-image-circle .img-section img {
    background-color: transparent; /* Override the black background */
    width: 100%;
    height: auto;
    border-radius: 50%; /* Makes the image circular */
}

.img-section img:not(.persona-image-circle .img-section img) {
    background-color: #000;
}

/* CSS for Video Component */
.video-container {
    position: relative;
    width: 100%;
    margin: 30px 0;
    background-color: #000;
    border-radius: 4px;
    overflow: hidden;
}

.video-container video {
    width: 100%;
    display: block;
    max-height: 60vh;
}

/* Custom video controls */
.video-controls {
    position: absolute;
    right: 15px;
    bottom: 70px; /* Position above the native controls */
    z-index: 10;
    display: flex;
    gap: 10px;
}

/* Dark mode support */
.dark-mode .video-fullscreen-btn {
    background-color: rgba(255, 255, 255, 0.2);
}

.dark-mode .video-fullscreen-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.img-section .hero-image .mobile-image {
    display: none;
}

/* Responsive design - Mobile First */
@media (min-width: 768px) {
    .main-content {
        padding: 0 40px;
    }

    nav {
        margin-bottom: 0;
    }

    .title {
        font-size: 4rem;
    }
    
    .subtitle {
        font-size: 2rem;
    }

    .content-details .big-text {
        font-size: 2.25rem;
    }

    .hero-image {
        width: 90%; 
    }

    nav a {
        width: 10%;
        padding: 14px 40px;
        padding-left: 30px;
    }

    .dark-mode-toggle {
        padding: 14px 40px;
    }

    .persona-image-circle {
        width: 150px;
        height: 150px;
    }

    .video-container video {
        max-height: 70vh;
    }

    .video-controls {
        bottom: 60px;
        right: 10px;
    }
    
    .video-fullscreen-btn {
        width: 36px;
        height: 36px;
    }
    
    .video-fullscreen-btn svg {
        width: 20px;
        height: 20px;
    }
}

@media (min-width: 992px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .content-section {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .content-title {
        grid-column: 1 / 2;
    }
    
    .content-details {
        grid-column: 2 / 4;
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .stat-box:nth-child(3) {
        border-right: none;
    }
    
    .stat-box:nth-child(4), .stat-box:nth-child(5) {
        border-top: none;
    }
}

@media (min-width: 1200px) {
    .title {
        font-size: 6rem;
    }
    
    .subtitle {
        font-size: 3rem;
    }

    .grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .content-section {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .content-title {
        grid-column: 1 / 2;
    }
    
    .content-details {
        grid-column: 3 / 6;
    }
    
    .stats-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .stat-box:nth-child(3) {
        border-right: 1px solid rgba(0,0,0,0.1);
    }
    
    .stat-box:nth-child(4), .stat-box:nth-child(5) {
        border-top: 1px solid rgba(0,0,0,0.1);
    }

    .stat-box:nth-child(5) {
        border-right: none;
    }
}

/* Mobile specific overrides */
@media (max-width: 767px) {
    .grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 40px;
    }
    
    .content-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .title-section, 
    .subtitle-section, 
    .details, 
    .project-info {
        grid-column: 1 / -1;
    }
    
    .content-title, 
    .content-details {
        grid-column: 1 / -1;
    }
    
    .title {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.25rem;
    }
    
    .content-details .big-text {
        font-size: 1.25rem;
    }
    
    .img-section {
        margin: 20px -20px;
        width: calc(100% + 40px);
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .stat-box {
        border: 1px solid rgba(0,0,0,0.1);
        border-radius: 8px;
        margin-bottom: 10px;
    }

    .stat-box:nth-child(2n) {
        border-right: 1px solid rgba(0,0,0,0.1);
    }
    
    .stat-box:nth-child(3) {
        border-right: 1px solid rgba(0,0,0,0.1);
    }

    .large-number {
        font-size: 50px;
    }

    /* Fix persona grid on mobile */
    .persona-container.grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .persona-container .title-section,
    .persona-container .subtitle-section {
        grid-column: 1 / -1;
    }

    /* Fix bottom navigation on mobile */
    .bottomwrap {
        grid-template-columns: 1fr;
        margin: 40px 0 0px 0;
        text-align: center;
    }

    .bottomwrap a {
        display: block;
        margin: 10px 0;
    }



    .img-section .hero-image .desktop-image {
        display: none;
    }
    
    .img-section .hero-image .mobile-image {
        display: block;
    }
}

@media (max-width: 576px) {
    body {
        padding: 15px;
    }

    .title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1.125rem;
    }
    
    .content-details .big-text {
        font-size: 1.125rem;
    }

    nav a {
        padding: 14px 10px;
    }

    .dark-mode-toggle {
        padding: 14px 10px;
    }
}

/* ── Footer ── */
footer {
    background: #040202;
    color: #ffffff;
    padding: 60px 40px 0;
    position: relative;
    box-sizing: border-box;
}
.footer-content { max-width: 1440px; margin: 0 auto; }
.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}
.footer-left { }
.footer-quote { font-size: 24px; font-weight: 300; line-height: 1.4; padding-bottom: 24px; }
.footer-byline { font-size: 16px; }
.footer-section h3 {
    font-size: 12px; font-weight: 300;
    letter-spacing: 0.5px; text-transform: uppercase;
    color: rgba(255,255,255,1); margin-bottom: 20px;
}
.footer-links { display: flex; flex-direction: column; gap: 16px; }
.footer-links a {
    font-size: 16px; color: rgba(255,255,255,0.6);
    text-decoration: none; cursor: none;
    transition: color 0.3s ease, opacity 0.3s;
}
.footer-links a:hover { color: #F2511A; opacity: 1; }
.experiments-section {
    padding: 40px 0 48px;
    border-top: 1px solid rgba(255,255,255,.25);
    background-image:
        linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
    background-size: 28px 28px;
}
.experiments-label {
    font-family: 'Courier New', Courier, monospace;
    font-size: 16px;
    letter-spacing: .12em;
    color: #fff;
    display: inline-block;
    padding: 5px 12px;
    margin-bottom: 36px;
}
.bracket-comp {
    font-size: clamp(24px, 4.5vw, 60px);
    font-weight: 200;
    font-family: 'DM Sans', sans-serif;
    color: #fff;
    line-height: 1.05;
    letter-spacing: 0em;
    display: block;
    width: 100%;
}
.br   { color: #fff; font-weight: 200; }
.name { color: rgba(255,255,255,.85); font-weight: 200; white-space: nowrap; }
.thumb {
    display: inline-block; vertical-align: middle;
    width: 1.3em; height: 0.82em;
    margin: 0 0.08em; overflow: hidden;
    position: relative; top: -0.04em;
    transition: transform .28s cubic-bezier(.2,0,.2,1), box-shadow .28s ease;
    cursor: none;
}
.thumb:hover { transform: scale(1.1) rotate(-2deg); box-shadow: 0 8px 28px rgba(0,0,0,.7); z-index: 5; }
.thumb div { width: 100%; height: 100%; }
.c1 { background: #EDB78E; }
.c2 { background-image: url('images/gravity-thumb.png'); background-size: cover; background-position: center; }
.c3 { background: #D1B045; }
.c4 { background: #F4EDDB; }
.exp-entry { text-decoration: none; color: inherit; display: inline; transition: opacity .18s; cursor: none; }
.exp-entry:hover { opacity: .6; }
.glyph {
    display: inline-block; font-size: 0.55em;
    color: rgba(255,255,255,.3); font-weight: 300;
    vertical-align: middle; margin: 0 0.15em;
    position: relative; top: -0.04em;
}
.footer-made { font-size: 12px; color: rgba(255,255,255,0.25); text-align: left; padding: 20px 0 32px; }
