/* Clean, Minimalist DreamScript Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Clean Color Palette */
    --primary-black: #000000;
    --primary-white: #ffffff;
    --text-gray: #666666;
    --light-gray: #f5f5f5;
    --border-gray: #e0e0e0;
    
    /* Typography */
    --font-primary: 'Inter', sans-serif;
    
    /* Spacing */
    --container-max-width: 1200px;
    --container-padding: 0 2rem;
    --section-padding: 2rem 0;
    
    /* Transitions */
    --transition-smooth: all 0.3s ease;
}

html, body {
    overflow-x: hidden;
    overflow-y: auto;
}

body {
    font-family: var(--font-primary);
    background: var(--primary-white);
    color: var(--primary-black);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Main Container */
.main_container {
    width: 100%;
    height: 100vh;
    position: relative;
}

/* Pinned Elements */
.pinned {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 10;
}

.pinned_top {
    top: 0;
}

.pinned_bottom {
    bottom: 0;
}

/* Page Container */
.page_container {
    width: 100%;
}

.page_container.overlay {
    position: absolute;
}

.page_container.accommodate {
    padding-top: 0;
    padding-bottom: 0;
}

.page_container.fixed {
    position: fixed;
}



.page_container.pointer-events-none {
    pointer-events: none;
}

/* Container */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: var(--container-padding);
}

.container_width {
    width: 100%;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* Content */
.content {
    width: 100%;
}

.content_padding {
    padding: 1rem;
}

/* Bodycopy */
.bodycopy {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--primary-black);
}

.bodycopy a {
    color: var(--primary-black);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.bodycopy a:hover {
    opacity: 0.7;
}

/* Grid System */
.grid-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.5rem;
}

.grid-col {
    padding: 0 0.5rem;
    flex: 1;
}

.grid-col.x5 {
    flex: 0 0 20%;
    max-width: 20%;
}

.grid-col.x12 {
    flex: 0 0 100%;
    max-width: 100%;
}

.grid-col.col-1 {
    flex: 0 0 8.333333%;
    max-width: 8.333333%;
}

.grid-col.col-5 {
    flex: 0 0 41.666667%;
    max-width: 41.666667%;
}

/* Legacy topnav (kept for backward compatibility) */
.topnav {
    padding: 1rem 0;
}

.topnav a {
    font-size: 0.9rem;
    font-weight: 400;
    text-transform: lowercase;
    letter-spacing: 0.02em;
    color: var(--primary-black);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.topnav a:hover {
    opacity: 0.6;
}

/* Hero Images */
.hero-image {
    width: 100%;
    height: 400px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.hero-left {
    background: var(--light-gray);
    border: 1px solid var(--border-gray);
}

.hero-right {
    background: var(--light-gray);
    border: 1px solid var(--border-gray);
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-gray);
    position: relative;
}

.image-text {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.image-link {
    display: block;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.image-link:hover {
    opacity: 0.8;
}

/* Footer */
.footerl {
    padding: 1rem 0;
}

.footerl div {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.4;
}

.footer {
    padding: 1rem 0;
}

.footer div {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 768px) {
    .grid-col.x5 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .grid-col.col-1 {
        flex: 0 0 10%;
        max-width: 10%;
    }
    
    .grid-col.col-5 {
        flex: 0 0 40%;
        max-width: 40%;
    }
    
    .hero-image {
        height: 300px;
    }
    
    .topnav a {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    :root {
        --container-padding: 0 1rem;
    }
    
    .grid-col.x5 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .grid-col.col-1 {
        display: none;
    }
    
    .grid-col.col-5 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .hero-image {
        height: 250px;
    }
    
    .topnav {
        text-align: center;
    }
    
    .topnav a {
        display: block;
        margin-bottom: 0.5rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
a:focus {
    outline: 2px solid var(--text-gray);
    outline-offset: 2px;
}

/* Selection styles */
::selection {
    background: var(--light-gray);
    color: var(--primary-black);
}

/* Scrollbar styles */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--text-gray);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-black);
}

/* ======================================= */
/* Ultra-minimal Cargo-style overrides     */
/* (Non-destructive: only refines visuals) */
/* ======================================= */

/* Remove expressive background effects */
.animated-bg,
.gradient-orbs,
.particle-field,
.hero-visual {
    display: none !important;
}

/* Navigation: simple, crisp, small type */
.creative-nav {
    position: sticky;
    top: 0;
    background: #fff !important;
    border-bottom: 1px solid #eee !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.nav-container {
    max-width: 1000px !important;
    padding: 0.75rem 1rem !important;
}

.dreamscript-logo { gap: 0.25rem !important; }
.dream-animated,
.script-animated {
    font-family: 'Space Grotesk', 'Inter', sans-serif !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
}

.nav-links { gap: 1rem !important; }
.creative-link { font-size: 0.85rem !important; color: #222 !important; }
.creative-link .link-underline { display: none; }

/* Hero: typographic, restrained */
.hero-creative { padding: 5.5rem 0 2.5rem !important; border-bottom: 1px solid #f0f0f0; }
.hero-content {
    max-width: 1000px !important;
    padding: 0 1rem !important;
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
}

.hero-title-creative { gap: 0.2rem !important; }
.title-line-1,
.title-line-3 {
    font-family: 'Space Grotesk', sans-serif !important;
    font-weight: 500 !important;
    font-size: clamp(1rem, 1.8vw, 1.2rem) !important;
    color: #555 !important;
}
.dream-hero,
.script-hero {
    font-family: 'Space Grotesk', 'Inter', sans-serif !important;
    font-weight: 700 !important;
    font-size: clamp(2rem, 6vw, 3.2rem) !important;
    letter-spacing: -0.01em !important;
}
.hero-subtitle-creative { color: #666 !important; max-width: 58ch !important; }

.hero-actions { gap: 0.5rem !important; }
.creative-btn {
    border: 1px solid #ddd !important;
    background: #fff !important;
    color: #222 !important;
    padding: 0.6rem 0.9rem !important;
    border-radius: 4px !important;
    transform: none !important;
}
.primary-btn { background: #fff !important; color: #222 !important; border-color: #222 !important; }
.secondary-btn { background: #fff !important; color: #222 !important; border-color: #ddd !important; }
.btn-ripple { display: none !important; }

/* Portfolio: flat cards, quiet hover */
.portfolio-creative { padding: 2rem 0 2.5rem !important; }
.section-header-creative { max-width: 1000px !important; padding: 0 1rem !important; }
.title-accent { color: #777 !important; }
.title-main { font-family: 'Space Grotesk', 'Inter', sans-serif !important; font-weight: 700 !important; }
.portfolio-grid {
    max-width: 1000px !important;
    padding: 0 1rem !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 0.75rem !important;
}
.creative-card {
    border-radius: 6px !important;
    box-shadow: none !important;
    transform: none !important;
}
.creative-card:hover { transform: none !important; box-shadow: none !important; border-color: #ddd !important; }
.card-content { padding: 0.9rem !important; }
.card-visual { padding: 0.9rem !important; }
.visual-element { border-radius: 4px !important; background: #fafafa !important; border-color: #eee !important; }
.card-description { color: #444 !important; }
.tag { background: #f6f6f6 !important; border-color: #ececec !important; color: #333 !important; }

/* Features: subdued grid */
.features-creative { padding: 2rem 0 !important; border-top: 1px solid #f0f0f0; }
.features-container { max-width: 1000px !important; padding: 0 1rem !important; }
.feature-item { border-radius: 6px !important; transform: none !important; }
.feature-item:hover { transform: none !important; }
.feature-icon { background: #222 !important; }
.icon-animation { display: none !important; }

/* Testimonial */
.testimonial-creative { padding: 2rem 0 !important; }
.testimonial-container { max-width: 800px !important; padding: 0 1rem !important; }
.testimonial-content { border-radius: 8px !important; }
.quote-mark { color: #bbb !important; }
.testimonial-text { color: #333 !important; }

/* Footer: quiet, tidy */
.footer-creative { padding: 2rem 0 1rem !important; background: #fff !important; }
.footer-container { max-width: 1000px !important; padding: 0 1rem !important; grid-template-columns: 1fr 1fr !important; }
.footer-links { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.footer-link { color: #222 !important; }
.footer-bottom { color: #777 !important; }

/* Tighten global container width for stronger rhythm */
.container { max-width: 1000px; }

/* ========================= */
/* Creative/Cargo-style UI   */
/* ========================= */

/* Animated Background */
.animated-bg {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
}

.particle-field {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.08);
    animation: floatParticle 10s ease-in-out infinite;
}

.particle:nth-child(1) { top: 10%; left: 15%; animation-delay: 0s; }
.particle:nth-child(2) { top: 30%; left: 75%; animation-delay: 1s; }
.particle:nth-child(3) { top: 55%; left: 25%; animation-delay: 2s; }
.particle:nth-child(4) { top: 70%; left: 60%; animation-delay: 3s; }
.particle:nth-child(5) { top: 20%; left: 50%; animation-delay: 4s; }
.particle:nth-child(6) { top: 80%; left: 20%; animation-delay: 5s; }
.particle:nth-child(7) { top: 40%; left: 40%; animation-delay: 6s; }
.particle:nth-child(8) { top: 65%; left: 80%; animation-delay: 7s; }

@keyframes floatParticle {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.6; }
    50% { transform: translate3d(10px, -14px, 0) scale(1.1); opacity: 0.2; }
}

.gradient-orbs {
    position: absolute;
    inset: -10% -10% auto auto;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.orb {
    position: absolute;
    filter: blur(40px);
    opacity: 0.18;
    border-radius: 9999px;
}

.orb-1 { width: 300px; height: 300px; top: 5%; left: 10%; background: radial-gradient(circle at 30% 30%, #111, transparent 60%); }
.orb-2 { width: 420px; height: 420px; top: 40%; left: 60%; background: radial-gradient(circle at 70% 40%, #000, transparent 55%); }
.orb-3 { width: 260px; height: 260px; top: 70%; left: 20%; background: radial-gradient(circle at 50% 50%, #333, transparent 65%); }

/* Navigation */
.creative-nav {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(140%) blur(8px);
    -webkit-backdrop-filter: saturate(140%) blur(8px);
    border-bottom: 1px solid var(--border-gray);
    z-index: 20;
}

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

.dreamscript-logo {
    display: flex;
    gap: 0.35rem;
    align-items: baseline;
}

.dream-animated {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 1.25rem;
    letter-spacing: 0.02em;
}

.script-animated {
    font-family: 'Dancing Script', cursive;
    font-weight: 600;
    font-size: 1.35rem;
}

.nav-links {
    display: flex;
    gap: 1.25rem;
}

.creative-link {
    position: relative;
    color: var(--primary-black);
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.creative-link .link-underline {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0%;
    height: 1px;
    background: currentColor;
    transition: width 220ms ease;
}

.creative-link:hover .link-underline { width: 100%; }

/* Hero */
.hero-creative {
    padding: 8rem 0 5rem;
}

.hero-content {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
}

.hero-title-creative {
    display: grid;
    gap: 0.35rem;
}

.title-line-1,
.title-line-3 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    color: #111;
}

.title-line-2 { display: flex; gap: 0.5rem; align-items: baseline; }

.dream-hero {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: clamp(2.2rem, 6vw, 4rem);
    line-height: 1.05;
}

.script-hero {
    font-family: 'Dancing Script', cursive;
    font-weight: 600;
    font-size: clamp(2.4rem, 6.5vw, 4.2rem);
    line-height: 1.05;
}

.hero-subtitle-creative {
    margin-top: 1rem;
    max-width: 48ch;
    color: var(--text-gray);
}

.hero-actions { display: flex; gap: 0.75rem; margin-top: 1.5rem; flex-wrap: wrap; }

.creative-btn {
    position: relative;
    border: 1px solid #111;
    background: #fff;
    color: #111;
    padding: 0.7rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 160ms ease, background 200ms ease, color 200ms ease;
    overflow: hidden;
}

.creative-btn:hover { transform: translateY(-1px); }
.primary-btn { background: #111; color: #fff; border-color: #111; }
.primary-btn:hover { background: #000; }
.secondary-btn { background: #fff; color: #111; }

.btn-ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    background: rgba(0,0,0,0.12);
    pointer-events: none;
}

.ripple-active { animation: ripple 0.6s ease-out; }

@keyframes ripple {
    to { transform: scale(4); opacity: 0; }
}

.hero-visual { position: relative; }
.floating-code { font-family: 'JetBrains Mono', monospace; color: #222; opacity: 0.8; }
.code-line { filter: blur(0.15px); margin-bottom: 0.35rem; }

/* Portfolio */
.portfolio-creative { padding: 3rem 0 4rem; }

.section-header-creative { max-width: var(--container-max-width); margin: 0 auto 1.5rem; padding: 0 2rem; }
.section-title-creative { display: flex; gap: 0.5rem; align-items: baseline; }
.title-accent { font-family: 'Space Grotesk', sans-serif; letter-spacing: 0.08em; color: #666; font-size: 0.9rem; text-transform: uppercase; }
.title-main { font-family: 'Playfair Display', serif; font-weight: 700; font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
.title-decoration { height: 1px; background: var(--border-gray); margin-top: 0.75rem; }

.portfolio-grid {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.creative-card {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    border: 1px solid var(--border-gray);
    border-radius: 10px;
    background: #fff;
    transition: transform 160ms ease, box-shadow 200ms ease;
}

.creative-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }

.card-content { padding: 1rem; }
.card-number { font-family: 'Space Grotesk', sans-serif; color: #999; font-size: 0.85rem; letter-spacing: 0.08em; }
.card-title { font-family: 'Inter', sans-serif; font-weight: 700; margin: 0.35rem 0; }
.card-description { color: #444; font-size: 0.95rem; }
.card-tags { display: flex; gap: 0.35rem; margin-top: 0.6rem; flex-wrap: wrap; }
.tag { font-size: 0.75rem; color: #333; background: #f4f4f4; border: 1px solid #eaeaea; padding: 0.2rem 0.45rem; border-radius: 999px; }

.card-visual { padding: 0.75rem; display: flex; align-items: center; justify-content: center; }
.visual-element { width: 100%; height: 120px; background: linear-gradient(135deg, #f7f7f7, #f1f1f1); border: 1px solid #eee; border-radius: 8px; }

/* Features */
.features-creative { padding: 3rem 0; }
.features-container { max-width: var(--container-max-width); margin: 0 auto; padding: 0 2rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.feature-item { border: 1px solid var(--border-gray); border-radius: 10px; background: #fff; padding: 1rem; transition: transform 160ms ease; }
.feature-item:hover { transform: translateY(-2px); }
.feature-icon { width: 28px; height: 28px; border-radius: 6px; background: #111; display: grid; place-items: center; margin-bottom: 0.6rem; }
.icon-animation { width: 10px; height: 10px; border-radius: 50%; background: #fff; animation: pulse 1.6s ease-in-out infinite; }
.feature-title { font-weight: 700; margin-bottom: 0.25rem; }
.feature-description { color: #555; }

@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(0.8); opacity: 0.6; } }

/* Testimonial */
.testimonial-creative { padding: 3rem 0; }
.testimonial-container { max-width: 900px; margin: 0 auto; padding: 0 2rem; }
.testimonial-content { border: 1px solid var(--border-gray); border-radius: 12px; background: #fff; padding: 1.25rem; }
.quote-mark { font-family: 'Playfair Display', serif; font-size: 2.2rem; line-height: 1; color: #999; }
.testimonial-text { font-size: 1.1rem; color: #333; margin-top: 0.25rem; }
.author-info { margin-top: 0.75rem; }
.author-name { font-weight: 700; }
.author-title { color: #666; font-size: 0.9rem; }

/* Footer */
.footer-creative { border-top: 1px solid var(--border-gray); padding: 2rem 0 1.2rem; background: #fff; }
.footer-container { max-width: var(--container-max-width); margin: 0 auto; padding: 0 2rem; display: grid; grid-template-columns: 1fr 2fr; gap: 1.5rem; }
.footer-logo { display: flex; gap: 0.35rem; align-items: baseline; }
.dream-footer { font-family: 'Playfair Display', serif; font-weight: 700; }
.script-footer { font-family: 'Dancing Script', cursive; font-weight: 600; }
.footer-tagline { color: #666; margin-top: 0.25rem; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.link-title { font-weight: 600; margin-bottom: 0.5rem; }
.footer-link { color: #333; text-decoration: none; }
.footer-link:hover { text-decoration: underline; }
.footer-bottom { border-top: 1px solid var(--border-gray); margin-top: 1.2rem; padding-top: 1rem; text-align: center; color: #777; font-size: 0.9rem; }

/* Responsive tweaks */
@media (max-width: 960px) {
    .hero-content { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .nav-container { padding: 0.7rem 1rem; }
    .hero-content { padding: 0 1rem; }
    .portfolio-grid, .features-container, .section-header-creative, .testimonial-container, .footer-container { padding: 0 1rem; }
}