/* ═══════════════════════════════════════════════════
   KYNIT — Brand-Accurate Stylesheet
   Colors from Brand Guidelines:
     #2E2E2E  Charcoal (primary bg)
     #402D21  Dark Brown (surface)
     #6C4D38  Medium Brown (surface alt)
     #ABC2D9  Brand Blue (accent)
     #F2F1F0  Off-White (text)
   Fonts: Plus Jakarta Sans (display) · DM Sans (body)
═══════════════════════════════════════════════════ */

:root {
    --dark:       #2E2E2E;
    --brown-dk:   #402D21;
    --brown-md:   #6C4D38;
    --blue:       #ABC2D9;
    --blue-dim:   rgba(171, 194, 217, 0.18);
    --blue-faint: rgba(171, 194, 217, 0.08);
    --off-white:  #F2F1F0;
    --transition: all 0.36s cubic-bezier(0.4, 0, 0.2, 1);
    --section-pad: 9rem;
    --section-pad-mobile: 6rem;
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    position: relative;
    scroll-behavior: smooth;
    min-width: 320px; /* Prevent shrinking below minimum phone width */
}

/* ── Prevent hidden overflow on all blocks ── */
* { max-width: 100vw; }
img, video, iframe, canvas { max-width: 100%; height: auto; }

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--dark);
    color: var(--off-white);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ══════════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════════ */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

#main-header.scrolled {
    background: rgba(46, 46, 46, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--dim);
    padding: 0.9rem 0;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.35);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.logo-icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.logo-mark-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-wordmark {
    display: flex;
    align-items: center;
    line-height: 1;
}
.logo-img {
    height: 28px;
    width: auto;
    display: block;
    filter: invert(1) brightness(1);
    transition: var(--transition);
}
.logo-container:hover .logo-img { opacity: 0.8; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.82rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    color: var(--muted);
    text-decoration: none;
    transition: var(--transition);
}
.nav-link:hover { color: var(--off-white); }

.btn-nav {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--dark);
    background: var(--blue);
    padding: 0.6rem 1.4rem;
    border-radius: 4px;
    text-decoration: none;
    transition: var(--transition);
}
.btn-nav:hover {
    background: var(--off-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(171, 194, 217, 0.3);
}

/* ── Mobile Menu Toggle ── */
.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1100;
}
.mobile-nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--off-white);
    transition: var(--transition);
}
.mobile-nav-toggle.active span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.mobile-nav-toggle.active span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .header-actions { gap: 1rem; }
    .btn-header-cta { padding: 0.5rem 1rem; font-size: 0.7rem; }
}

/* ══════════════════════════════════════════════
   SHARED BUTTONS
══════════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2.2rem;
    border-radius: 4px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary { background: var(--blue); color: var(--dark); }
.btn-primary:hover {
    background: var(--off-white);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(171, 194, 217, 0.3);
}

.btn-secondary { background: transparent; color: var(--off-white); border: 1px solid rgba(242, 241, 240, 0.2); }
.btn-secondary:hover {
    border-color: rgba(242, 241, 240, 0.5);
    background: var(--blue-faint);
}

.btn-outline { background: transparent; color: var(--blue); border: 1px solid var(--blue); margin-top: 2rem; }
.btn-outline:hover {
    background: var(--blue);
    color: var(--dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(171, 194, 217, 0.25);
}

.btn-sm { padding: 0.6rem 1.3rem; font-size: 0.74rem; }

/* ── Hero Base ── */
.hero-split {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--dark);
    padding-top: 120px;
    padding-bottom: 6rem;
    overflow: hidden;
}

.hero-content {
    flex: 0 0 auto;
    max-width: 420px;
    z-index: 3;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.38rem 1rem;
    border: 1px solid rgba(171, 194, 217, 0.5);
    border-radius: 100px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 1.5rem;
    background: var(--blue-faint);
}

.hero-title-main {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(3.2rem, 6vw, 5.2rem);
    font-weight: 800;
    line-height: 0.95;
    color: var(--off-white);
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.accent-text {
    display: block;
    color: var(--blue);
    text-transform: lowercase;
    font-weight: 800;
    letter-spacing: 0.02em;
}

/* ── Hero Wordmark Logo (replaces "kynit" text) ── */
.accent-logo {
    display: block;
    line-height: 1;
    margin-top: 0;
}

.hero-logo-wordmark {
    height: clamp(3rem, 6vw, 5rem);
    width: auto;
    display: block;
    /* Make logo visible and white on dark background */
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
}

.hero-logo-wordmark:hover {
    transform: scale(1.02);
}

/* ── Hero Pretext ("Move with") ── */
.hero-pretext {
    display: block;
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(1.1rem, 3vw, 1.8rem);
    font-weight: 300;
    letter-spacing: 0.18em;
    text-transform: none;
    color: rgba(242, 241, 240, 0.55);
    line-height: 1;
    margin-bottom: 0.1em;
}

@media (max-width: 1024px) {
    .hero-logo-wordmark { height: clamp(2.6rem, 10vw, 4rem); margin: 0 auto; }
    .accent-logo { display: flex; justify-content: center; }
}

@media (max-width: 768px) {
    .hero-logo-wordmark { height: clamp(2.2rem, 12vw, 3.2rem); }
}

@media (max-width: 480px) {
    .hero-logo-wordmark { height: clamp(2rem, 14vw, 2.8rem); }
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--off-white);
    max-width: 520px;
    margin-bottom: 1.2rem;
}

.hero-sub {
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--off-white);
    opacity: 0.8;
    max-width: 480px;
    margin-bottom: 2.2rem;
}

.cta-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-layout-split {
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 4rem;
    padding: 0 4rem;
}

.hero-text-col { padding-top: 2rem; }

.hero-video-col {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.video-stage-float {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-video-display {
    position: relative;
    z-index: 2;
    height: min(78vh, 620px);
    width: auto;
    max-width: 100%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
}

.video-ambiance {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140%;
    height: 120%;
    background: radial-gradient(circle, rgba(171, 194, 217, 0.12) 0%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.bracket {
    position: absolute;
    width: 20px;
    height: 20px;
    z-index: 3;
    opacity: 0.6;
    pointer-events: none;
}
.bracket-tl {
    top: -10px;
    left: -10px;
    border-top: 1.5px solid var(--blue);
    border-left: 1.5px solid var(--blue);
}
.bracket-br {
    bottom: -10px;
    right: -10px;
    border-bottom: 1.5px solid var(--blue);
    border-right: 1.5px solid var(--blue);
}

.video-caption {
    margin-top: 2rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.62rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--blue);
    opacity: 0.7;
}

.scroll-cue {
    position: absolute;
    bottom: 1.75rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.6rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}
.scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(180deg, var(--blue) 0%, transparent 100%);
    animation: scrollA 2s ease-in-out infinite;
}
@keyframes scrollA {
    0%   { transform: scaleY(0); transform-origin: top;    opacity: 1; }
    45%  { transform: scaleY(1); transform-origin: top;    opacity: 1; }
    55%  { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
    100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ══════════════════════════════════════════════
   MARQUEE STRIP
══════════════════════════════════════════════ */
.marquee-wrap {
    background: var(--blue);
    overflow: hidden;
    padding: 0.8rem 0;
    white-space: nowrap;
    position: relative;
    z-index: 5;
}
.marquee-track {
    display: inline-flex;
    gap: 2.5rem;
    animation: marqueeScroll 22s linear infinite;
}
.marquee-track span {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--dark);
}
.sep { opacity: 0.35; }
@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ══════════════════════════════════════════════
   PRODUCT SECTION
══════════════════════════════════════════════ */
.product-section { padding: var(--section-pad) 0; background: var(--brown-dk); position: relative; }
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.product-frame { position: relative; border-radius: 6px; overflow: hidden; aspect-ratio: 3 / 4; background: var(--brown-md); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4); }
.product-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.8s ease; will-change: transform; }
.product-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(64, 45, 33, 0.75) 100%); pointer-events: none; }
.product-caption { position: absolute; bottom: 1.5rem; left: 1.5rem; font-family: 'DM Sans', sans-serif; font-style: italic; font-size: 0.88rem; color: rgba(242, 241, 240, 0.55); letter-spacing: 0.04em; }

.section-label { display: block; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.65rem; font-weight: 600; letter-spacing: 0.32em; text-transform: uppercase; color: var(--blue); margin-bottom: 1rem; }
.product-heading { font-family: 'Plus Jakarta Sans', sans-serif; font-size: clamp(2.2rem, 4.5vw, 4rem); font-weight: 800; line-height: 0.92; letter-spacing: -0.01em; color: var(--off-white); margin-bottom: 1.5rem; text-transform: none; }
.brand-highlight { font-size: 1.25em; color: var(--off-white); display: inline-block; }
.tm-mini { font-size: 0.25em; vertical-align: super; margin-left: -0.1em; opacity: 0.5; }
.product-subtext { font-size: 0.7em; opacity: 0.75; font-weight: 600; letter-spacing: 0.02em; }
.product-desc { font-size: 1.1rem; line-height: 1.7; color: var(--off-white); margin-bottom: 2rem; opacity: 0.9; }
.product-desc strong { color: var(--blue); display: block; margin-bottom: 0.5rem; font-size: 1.2rem; }
.feat-sub-header { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 1.2rem; }
.product-features { list-style: none; display: flex; flex-direction: column; }
.product-features li { display: flex; align-items: flex-start; gap: 1rem; padding: 0.9rem 0; border-bottom: 1px solid rgba(242, 241, 240, 0.05); }
.product-features li:first-child { border-top: 1px solid rgba(242, 241, 240, 0.05); }
.feat-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); flex-shrink: 0; margin-top: 0.45rem; }
.product-features li div { display: flex; flex-direction: column; gap: 0.18rem; }
.product-features li strong { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.84rem; font-weight: 600; color: var(--off-white); letter-spacing: 0.02em; }

/* ══════════════════════════════════════════════
   COUNTER SECTION
══════════════════════════════════════════════ */
.counter-section { padding: var(--section-pad) 0; text-align: center; position: relative; overflow: hidden; background: var(--dark); }
.counter-bg-word { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-family: 'Plus Jakarta Sans', sans-serif; font-size: clamp(7rem, 22vw, 20rem); font-weight: 800; color: transparent; -webkit-text-stroke: 1px rgba(171, 194, 217, 0.07); white-space: nowrap; pointer-events: none; z-index: 0; letter-spacing: -0.04em; user-select: none; }
.counter-inner { position: relative; z-index: 1; }
.counter-eyebrow { font-family: 'DM Sans', sans-serif; font-size: 1rem; font-style: italic; color: var(--muted); margin-bottom: 0.5rem; }
.counter-display { display: flex; align-items: flex-start; justify-content: center; gap: 0.2rem; }
#founding-counter { font-family: 'Plus Jakarta Sans', sans-serif; font-size: clamp(4.5rem, 14vw, 10rem); font-weight: 800; line-height: 1; letter-spacing: -0.04em; color: var(--off-white); }
.counter-plus { font-family: 'Plus Jakarta Sans', sans-serif; font-size: clamp(2rem, 5vw, 4.5rem); font-weight: 700; color: var(--blue); margin-top: 0.45em; }
.counter-label-text { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.65rem; font-weight: 600; letter-spacing: 0.42em; text-transform: uppercase; color: var(--blue); margin: 0.75rem 0 2.5rem; }
.counter-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ══════════════════════════════════════════════
   ABOUT / COMMUNITY
══════════════════════════════════════════════ */
.about { padding: var(--section-pad) 0; background: var(--brown-md); }
.about-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 6rem; align-items: start; }
.manifesto { font-family: 'Plus Jakarta Sans', sans-serif; font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 300; line-height: 1.55; color: var(--off-white); margin-bottom: 1.5rem; }
.manifesto strong { font-weight: 700; color: var(--blue); font-size: 0.8em; text-transform: uppercase; letter-spacing: 0.06em; }
.manifesto-sub { font-family: 'DM Sans', sans-serif; font-size: 1.1rem; font-style: italic; color: rgba(242, 241, 240, 0.7); line-height: 1.7; }
.manifesto-sub span { color: var(--off-white); font-weight: 500; display: block; margin-top: 0.4rem; }

.feature-list { list-style: none; }
.feature-item { display: flex; align-items: flex-start; gap: 1.5rem; padding: 1.5rem 0; border-bottom: 1px solid rgba(242, 241, 240, 0.1); }
.feature-item:first-child { border-top: 1px solid rgba(242, 241, 240, 0.1); }
.feature-num { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.62rem; font-weight: 700; color: var(--blue); letter-spacing: 0.1em; margin-top: 0.2rem; flex-shrink: 0; }
.feature-info strong { display: block; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 0.88rem; font-weight: 600; color: var(--off-white); margin-bottom: 0.28rem; letter-spacing: 0.02em; }
.feature-info p { font-size: 0.8rem; color: rgba(242, 241, 240, 0.65); line-height: 1.45; }

/* ══════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════ */
footer { padding: 3.5rem 0; background: var(--brown-dk); border-top: 1px solid rgba(242, 241, 240, 0.05); }
.footer-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; }
.footer-brand { display: flex; flex-direction: column; gap: 0.45rem; }
.footer-logo-row { display: flex; align-items: center; gap: 0.7rem; }
.footer-icon { width: 30px; height: 30px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.footer-mark-img { width: 100%; height: 100%; object-fit: contain; }
.footer-logo-img { height: 20px; width: auto; display: block; filter: invert(1) brightness(0.92); }
.footer-brand p { font-size: 0.75rem; color: rgba(242, 241, 240, 0.4); letter-spacing: 0.04em; }
.footer-handle { font-size: 0.72rem !important; color: var(--blue) !important; letter-spacing: 0.04em; }
.footer-links-group { display: flex; gap: 1rem; justify-content: center; }
.footer-copy { font-size: 0.72rem; color: rgba(242, 241, 240, 0.35); text-align: right; line-height: 1.5; }

/* ══════════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════════ */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.9s ease, transform 0.9s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ══════════════════════════════════════════════
   RESPONSIVE OVERHAUL (Mobile-First / Robust)
══════════════════════════════════════════════ */

/* 1. Large Screen Breathing Room */
@media (max-width: 1400px) {
    .container, .nav-container { padding: 0 4rem; }
}

/* 2. Standard Desktop / Tablet Landscape */
@media (max-width: 1200px) {
    .container, .nav-container, .hero-layout-split { padding: 0 3rem; }
    .hero-layout-split { gap: 3rem; }
}

/* 3. Tablets / Small Laptops */
@media (max-width: 1024px) {
    :root { --section-pad: 6rem; }
    .hero-split { 
        padding-top: 100px; 
        min-height: auto; 
        padding-bottom: 5rem; 
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .hero-layout-split { 
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center; 
        gap: 3.5rem; 
        padding-top: 1rem;
        width: 100%;
    }
    .hero-text-col { 
        width: 100%;
        max-width: 100%; 
        padding-top: 0; 
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .hero-video-col { 
        width: 100%; 
        max-width: 580px; 
        margin: 0 auto; 
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .hero-title-main { font-size: clamp(2.6rem, 11vw, 4rem); margin-bottom: 1.5rem; }
    .hero-description { font-size: 1.1rem; line-height: 1.4; width: 100%; max-width: 400px; }
    
    .product-grid, .about-grid { display: flex; flex-direction: column; gap: 4rem; text-align: center; }
    .about-grid { display: flex; flex-direction: column; gap: 4rem; }
    .product-text-col, .about-text { 
        display: flex; 
        flex-direction: column; 
        align-items: center; 
        text-align: center; 
        width: 100%;
    }
    .manifesto { font-size: 1.5rem; margin-bottom: 2rem; }
    .product-features, .feature-list { width: 100%; max-width: 500px; margin-left: auto; margin-right: auto; }
    .feature-item { text-align: left; }
}

/* 4. Small Tablets & Phones */
@media (max-width: 768px) {
    :root { --section-pad: 4rem; }
    
    .container, .nav-container, .hero-layout-split { padding: 0 1.5rem; }

    /* Hide video column on mobile — text only hero */
    .hero-video-col { display: none; }

    /* Hero pretext sizing on mobile */
    .hero-pretext { font-size: clamp(0.9rem, 5vw, 1.3rem); letter-spacing: 0.18em; }
    .hero-logo-wordmark { height: clamp(2.5rem, 18vw, 4rem); }
    .accent-logo { display: flex; justify-content: flex-start; }


    #main-header { padding: 0.8rem 0; }
    #main-header.scrolled { padding: 0.6rem 0; }
    
    .mobile-nav-toggle { display: flex; }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: rgba(46, 46, 46, 0.98);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        padding: 6rem 2rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1050;
        box-shadow: -15px 0 40px rgba(0, 0, 0, 0.6);
        visibility: hidden;
    }
    
    .nav-links.active {
        transform: translateX(0);
        visibility: visible;
    }

    .nav-links .nav-link { 
        display: block; 
        font-size: 1.25rem;
        font-weight: 500;
        color: var(--off-white);
        width: 100%;
        padding: 0.5rem 0;
    }
    
    .logo-img { height: 18px; }
    .logo-icon { width: 30px; height: 30px; }
    
    .hero-title-main { font-size: 2.6rem; letter-spacing: -0.01em; margin-bottom: 1.25rem; }
    .hero-description { font-size: 1.1rem; line-height: 1.4; margin-bottom: 1.5rem; }
    .hero-sub { font-size: 0.95rem; line-height: 1.5; margin-bottom: 2rem; opacity: 0.7; }
    
    .hero-video-display { width: 100%; height: auto; max-height: 400px; border-radius: 8px; }
    .video-ambiance { width: 110%; opacity: 0.3; }
    
    .cta-group { flex-direction: column; width: 100%; gap: 0.8rem; }
    .btn { width: 100%; min-height: 52px; font-size: 0.82rem; }
    
    .product-heading { font-size: 2.2rem; line-height: 1.1; }
    .product-desc { font-size: 1rem; }
    .product-frame { aspect-ratio: 4 / 5; }
    
    .counter-bg-word { font-size: 28vw; opacity: 0.04; top: 40%; }
    #founding-counter { font-size: 22vw; }
    .counter-plus { font-size: 10vw; }
    .counter-label-text { font-size: 0.6rem; letter-spacing: 0.25em; margin-bottom: 2rem; }
    
    .footer-inner { grid-template-columns: 1fr; text-align: center; gap: 3rem; }
    .footer-logo-row { justify-content: center; }
    .footer-logo-img { height: 24px; }
    .footer-icon { width: 34px; height: 34px; }
    .footer-brand p { font-size: 0.7rem; }
    .footer-links-group { flex-direction: column; width: 100%; gap: 1rem; }
    .footer-copy { text-align: center; font-size: 0.65rem; padding-top: 1rem; border-top: 1px solid rgba(242, 241, 240, 0.05); }

    /* Extra safety for About section on small phones */
    .about-grid { gap: 3rem !important; }
    .manifesto { font-size: 1.35rem !important; line-height: 1.4; }
    .feature-item { gap: 1rem; padding: 1.2rem 0; }
}

/* 5. Tiny Phones (iPhone SE, etc) */
@media (max-width: 480px) {
    :root { --section-pad: 3.5rem; }
    .hero-title-main { font-size: 2.4rem; }
    .hero-description { font-size: 1.05rem; }
    .product-heading { font-size: 1.9rem; }
    .manifesto { font-size: 1.25rem; }
    .marquee-track { gap: 1.5rem; animation-duration: 25s; }
}

/* 6. Robust Overflow Fix */
html, body { max-width: 100%; overflow-x: hidden !important; }
section, main, footer, header { width: 100%; position: relative; overflow: visible; }
.marquee-wrap, .video-stage-float, .counter-section { overflow: hidden !important; }
