/* ── CSS Variables ── */
:root {
    --accent-blue:   #5C5CFF;
    --accent-glow:   #8F8FFF;
    --accent-deep:   #2E2EFF;
    --bg-dark:       #05050F;
    --mid-blue:      #1A1A5E;
    --highlight:     #D9D9F5;
    --gray-300:      #d1d5db;
    --gray-400:      #9ca3af;
    --gray-600:      #4b5563;
}

/* ── Reset / Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Montserrat', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 400;
    background: var(--bg-dark);
    color: #ffffff;
    overflow-x: hidden;
    position: relative;
}

.font-serif { font-family: 'Playfair Display', ui-serif, Georgia, Cambria, serif; }

h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }

button {
    font-family: inherit;
    font-size: 100%;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
    background: none;
    border: none;
    cursor: pointer;
}

a { color: inherit; text-decoration: inherit; }
img, svg, video, canvas, iframe { display: block; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-thumb { background: var(--accent-blue); }

/* ── Noise Overlay ── */
.noise-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    pointer-events: none;
    z-index: 100;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

/* ── Background Canvas ── */
#bg-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
    filter: blur(100px) saturate(120%);
    opacity: 0.5;
    transform: scale(1.1);
}

/* ── Glass ── */
.glass {
    background: rgba(255, 255, 255, 0.015);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(140, 140, 255, 0.12);
    box-shadow: inset 0 0 20px rgba(92, 92, 255, 0.04),
                0 8px 32px rgba(0, 0, 0, 0.6);
}

/* ── Bloom ── */
.bloom-text {
    text-shadow: 0 0 15px rgba(143, 143, 255, 0.35),
                 0 0 30px rgba(92, 92, 255, 0.2);
}

/* ── Gradient Text ── */
.vfx-gradient-text {
    background: linear-gradient(to right, #fff, var(--accent-blue), var(--accent-glow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ── Nav ── */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 50;
    padding: 1.5rem;
}

.nav-inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 9999px;
    transition: all 0.3s ease;
    overflow: hidden;
    gap: 1rem;
}

.nav-scrolled {
    background: rgba(5, 5, 20, 0.75);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(92, 92, 255, 0.12);
    box-shadow: 0 4px 32px rgba(0,0,0,0.5);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-logo-mark {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-deep));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.05em;
    box-shadow: 0 0 20px rgba(92,92,255,0.4);
    flex-shrink: 0;
}

.nav-wordmark {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #fff;
    line-height: 1;
}

.nav-wordmark span {
    display: block;
    font-size: 0.6rem;
    font-weight: 400;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent-glow);
    margin-top: 2px;
}

.nav-links {
    display: none;
    gap: clamp(0.75rem, 2vw, 2.5rem);
    list-style: none;
    font-size: clamp(0.6rem, 0.9vw, 0.72rem);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
    color: var(--gray-300);
    flex-shrink: 1;
    min-width: 0;
}

.nav-links a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
    position: relative;
    padding-bottom: 2px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 1px;
    background: var(--accent-glow);
    transition: width 0.3s ease;
}

.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { width: 100%; }

@media (min-width: 900px) { .nav-links { display: flex; } }

/* ── Back to Top ── */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 1.5rem;
    z-index: 40;
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 50%;
    background: rgba(10,10,30,0.85);
    border: 1px solid rgba(92,92,255,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-glow);
    font-size: 1.1rem;
    cursor: pointer;
    opacity: 0;
    transform: translateY(12px);
    transition: all 0.35s ease;
    backdrop-filter: blur(12px);
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent-blue);
    color: #fff;
    border-color: var(--accent-blue);
    box-shadow: 0 0 20px rgba(92,92,255,0.5);
}

/* ── Mobile Hamburger ── */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

@media (min-width: 900px) { .hamburger { display: none; } }

/* ── Sections ── */
.section-break {
    padding: 10rem 1.5rem;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    position: relative;
    z-index: 10;
}

/* ── Hero ── */
.hero { text-align: center; }

.hero-eyebrow {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--accent-glow);
    margin-bottom: 2rem;
    padding: 0.4rem 1.2rem;
    border: 1px solid rgba(92, 92, 255, 0.3);
    border-radius: 9999px;
    background: rgba(92, 92, 255, 0.07);
}

.hero-logo-container {
    width: 3.8rem;
    height: 3.8rem;
    margin: 0 auto 2.5rem;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-deep));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
    box-shadow: 0 0 60px rgba(92,92,255,0.5), 0 0 120px rgba(46,46,255,0.2);
    letter-spacing: -0.05em;
}

.hero-title svg path[id="Dreamweaver-Technologies"],
.hero-title svg path:not([id^="Rectangle"]) {
    fill: #ffffff !important;
}

.hero-title {
    font-size: clamp(3rem, 7.5vw, 7rem);
    font-weight: 400;
    font-style: italic;
    font-family: 'Playfair Display', serif;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
    line-height: 1;
}

.hero-sub {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: 300;
    color: var(--gray-400);
    letter-spacing: 0.05em;
    max-width: 36rem;
    margin: 0 auto 3rem;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 2.2rem;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-deep));
    color: #fff;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 30px rgba(92,92,255,0.4);
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 50px rgba(92,92,255,0.6);
}

/* ── About ── */
.about-inner {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 10;
}

.about-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5em;
    color: var(--accent-blue);
    font-weight: 700;
    margin-bottom: 2rem;
}

.about-headline {
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 2.5rem;
    letter-spacing: -0.02em;
}

.about-headline .serif-accent {
    font-style: italic;
    font-family: 'Playfair Display', serif;
    color: var(--accent-blue);
}

.about-body {
    font-size: 1.125rem;
    color: var(--gray-300);
    line-height: 1.75;
    max-width: 48rem;
    font-weight: 400;
}

.about-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 3rem;
}

.stat-block {
    border-left: 2px solid var(--accent-blue);
    padding-left: 1.2rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent-glow), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gray-400);
    margin-top: 0.3rem;
}

/* ── Products / Carousel ── */
.products-section {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    border-top: 1px solid rgba(92, 92, 255, 0.08);
    border-bottom: 1px solid rgba(92, 92, 255, 0.08);
}

.products-inner {
    max-width: 90rem;
    margin: 0 auto;
    width: 100%;
    padding: 0 1.5rem;
    position: relative;
    z-index: 10;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
}

.products-title {
    font-size: clamp(1.875rem, 5vw, 3rem);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 700;
    color: #fff;
}

.products-sub {
    font-size: 0.85rem;
    color: var(--gray-400);
    max-width: 28rem;
    line-height: 1.6;
    text-align: right;
}

/* ── Carousel ── */
.carousel-wrapper { position: relative; }

.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding: 2rem 0;
    scroll-behavior: auto;
    scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar { display: none; }

.carousel-item {
    min-width: 260px;
    width: 260px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    flex-shrink: 0;
}

.carousel-item:hover { transform: scale(1.02) translateY(-5px); }

.carousel-image-box {
    width: 100%;
    height: 190px;
    border-radius: 20px;
    background: rgba(92, 92, 255, 0.08);
    overflow: hidden;
    border: 1px solid rgba(92, 92, 255, 0.1);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    clip-path: inset(0 round 20px);
    transform: translateZ(0);
    position: relative;
}

.carousel-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-image-box .img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(46,46,255,0.2), rgba(92,92,255,0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.5rem;
    color: rgba(143,143,255,0.5);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.carousel-image-box .img-placeholder svg {
    display: inline;
    opacity: 0.4;
}

.carousel-item:hover .carousel-image-box {
    background: rgba(92, 92, 255, 0.06);
    border-color: var(--accent-glow);
    box-shadow: 0 0 40px rgba(92, 92, 255, 0.2);
}

.carousel-label {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0.04em;
    color: #fff;
    padding-left: 0.5rem;
}

.carousel-label-sub {
    font-size: 0.7rem;
    color: var(--gray-400);
    padding-left: 0.5rem;
    margin-top: -0.6rem;
    font-weight: 500;
    line-height: 1.5;
    white-space: normal;
}

.carousel-nav {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.scroll-btn {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(92, 92, 255, 0.15);
    color: #fff;
}

.scroll-btn:hover {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-deep));
    border-color: transparent;
    box-shadow: 0 0 30px rgba(92, 92, 255, 0.5);
}

/* ── Projects ── */
.projects-inner {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.projects-title-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5em;
    color: var(--accent-blue);
    font-weight: 700;
    margin-bottom: 2rem;
}

.projects-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 3.5rem;
    line-height: 1.1;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    align-items: start;
}

.project-card {
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover { transform: translateY(-6px); }

.project-card-image {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, rgba(46,46,255,0.25), rgba(92,92,255,0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(143,143,255,0.4);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 1px solid rgba(92, 92, 255, 0.1);
    border-bottom: none;
    border-radius: 24px 24px 0 0;
    position: relative;
    overflow: hidden;
}

.project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0; left: 0;
}

.project-card-image .placeholder-icon {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.project-card-body {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(92, 92, 255, 0.1);
    border-top: none;
    border-radius: 0 0 24px 24px;
    backdrop-filter: blur(20px);
}

.project-card:hover .project-card-body {
    background: rgba(92, 92, 255, 0.05);
    border-color: rgba(92, 92, 255, 0.25);
}

.project-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-glow);
    background: rgba(92, 92, 255, 0.12);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    margin-bottom: 0.75rem;
}

.project-card-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
}

.project-card-desc {
    font-size: 0.85rem;
    color: var(--gray-400);
    line-height: 1.6;
}

/* ── Services Section ── */
.services-section {
    margin: 0 1.5rem;
    border-radius: 3rem;
}

.services-grid {
    max-width: 56rem;
    margin: 0 auto;
    width: 100%;
    padding: 2.5rem 1.5rem;
}

.services-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--accent-glow);
    margin-bottom: 2.5rem;
    text-align: center;
}

.service-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.service-card {
    border-left: 2px solid transparent;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 16px;
    padding: 1.2rem 1rem;
}

.service-card:hover {
    border-left-color: var(--accent-blue);
    background: linear-gradient(90deg, rgba(92, 92, 255, 0.07) 0%, rgba(255,255,255,0) 100%);
    padding-left: 1.5rem;
}

.service-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.service-card p { color: var(--gray-300); font-size: 0.875rem; line-height: 1.7; }

/* ── Contact ── */
.contact-section {
    text-align: center;
}

.contact-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 2.5rem;
    color: #fff;
}

.contact-title .serif-accent {
    display: block;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 400;
    background: linear-gradient(to right, var(--accent-glow), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-link {
    display: inline-block;
    font-size: clamp(0.85rem, 2vw, 1.25rem);
    font-weight: 600;
    color: #ffffff;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding-bottom: 4px;
    transition: all 0.3s ease;
    text-decoration: none;
    letter-spacing: 0.02em;
}

.contact-link:hover {
    color: #8B5CF6;
    border-bottom-color: #8B5CF6;
}

.contact-socials {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
}

.social-link {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: 1px solid rgba(92,92,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    font-size: 0.8rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: #fff;
    box-shadow: 0 0 20px rgba(92,92,255,0.4);
}

/* ── Footer ── */
footer {
    padding: 2rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.footer-inner {
    max-width: 80rem;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-brand {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    background: linear-gradient(to right, var(--accent-glow), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-copy {
    font-size: 0.7rem;
    color: var(--gray-600);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.footer-links a {
    font-size: 0.7rem;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    transition: color 0.2s;
    text-decoration: none;
}

.footer-links a:hover { color: var(--accent-glow); }

/* ── Scroll Reveal ── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Stagger children */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-stagger.visible > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0s; }
.reveal-stagger.visible > *:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.1s; }
.reveal-stagger.visible > *:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.2s; }
.reveal-stagger.visible > *:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.3s; }
.reveal-stagger.visible > *:nth-child(5) { opacity: 1; transform: none; transition-delay: 0.4s; }
.reveal-stagger.visible > *:nth-child(6) { opacity: 1; transform: none; transition-delay: 0.5s; }

/* ── Tech ticker ── */
.ticker-wrap {
    overflow: hidden;
    border-top: 1px solid rgba(92,92,255,0.08);
    border-bottom: 1px solid rgba(92,92,255,0.08);
    padding: 1rem 0;
    background: rgba(92,92,255,0.03);
}

.ticker-track {
    display: flex;
    gap: 3rem;
    animation: ticker 28s linear infinite;
    white-space: nowrap;
    width: max-content;
}

.ticker-track:hover { animation-play-state: paused; }

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

.ticker-item {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: rgba(143,143,255,0.4);
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.ticker-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent-blue);
    opacity: 0.5;
    flex-shrink: 0;
}

/* ── Section Divider ── */
.section-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

/* ══════════════════════════════════════
   MOBILE RESPONSIVE FIXES
   Target: prevent horizontal overflow,
   fit layout vertically on small screens
══════════════════════════════════════ */
@media (max-width: 767px) {

    /* -- Global containment -- */
    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }

    /* -- Nav -- */
    nav {
        padding: 0.75rem 1.25rem;
    }

    .nav-inner {
        padding: clamp(0.35rem, 1.2vw, 0.5rem) clamp(1rem, 3.5vw, 1.5rem);
        border-radius: 9999px;
        gap: clamp(0.6rem, 3vw, 1.5rem);
        overflow: hidden;
    }

    /* The wordmark SVG has a ~19.6:1 aspect ratio, so at 1.1rem height
       it renders ~345px wide — too wide for phones.
       clamp() scales it proportionally with the viewport. */
    .nav-brand {
        flex: 1;
        min-width: 0;
        overflow: hidden;
    }

    .nav-brand svg {
        height: clamp(0.45rem, 1.8vw, 0.75rem);
        width: auto;
        max-width: 100%;
        display: block;
    }

    /* Dynamic hamburger so it scales with the viewport */
    .hamburger {
        flex-shrink: 0;
        gap: clamp(3px, 1vw, 5px);
        padding: clamp(2px, 0.8vw, 4px);
    }

    .hamburger span {
        width: clamp(16px, 5vw, 24px);
        height: clamp(1.5px, 0.4vw, 2px);
    }

    /* -- Hero -- */
    .section-break {
        padding: 6rem 1rem;
    }

    .hero-title {
        font-size: clamp(2.2rem, 10vw, 3.5rem);
        word-break: break-word;
    }

    .hero-sub {
        font-size: 0.95rem;
        padding: 0 0.5rem;
    }

    /* Node canvas — blend mode eliminates the visible canvas rectangle.
       'screen' compositing: transparent/dark canvas pixels = invisible,
       so the canvas boundary never shows as a semi-transparent square.
       Remove overflow:hidden from wrapper — that clipping edge was
       producing the visible border. */
    #nodeCanvas,
    .hero-logo-node-wrap canvas {
        max-width: 100%;
        height: auto !important;
        mix-blend-mode: screen;
        opacity: 0.9 !important; /* can be brighter now blend handles transparency */
    }

    .hero-logo-node-wrap {
        max-width: 100%;
        /* overflow:hidden intentionally removed — it was clipping the canvas
           and creating a visible rectangular boundary on mobile */
    }

    /* -- About -- */
    .about-inner {
        padding: 0 1rem;
    }

    .about-headline {
        font-size: clamp(1.8rem, 8vw, 3rem);
        word-break: break-word;
    }

    .about-body {
        font-size: 0.95rem;
    }

    .about-stats {
        gap: 1.25rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    /* -- Products header stacks vertically -- */
    .products-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .products-sub {
        text-align: left;
        max-width: 100%;
    }

    .products-inner {
        padding: 0 1rem;
    }

    /* -- Services -- */
    .services-section {
        margin: 0 0.5rem;
        border-radius: 1.5rem;
    }

    .services-grid {
        padding: 2rem 1rem;
    }

    .services-title {
        font-size: 1.75rem;
    }

    .service-list {
        grid-template-columns: 1fr;
    }

    /* -- Projects grid single column -- */
    .projects-grid {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .projects-inner {
        padding: 0 1rem;
    }

    .projects-title {
        font-size: clamp(1.6rem, 7vw, 2.5rem);
        word-break: break-word;
    }

    /* -- Contact -- */
    .contact-title {
        font-size: clamp(2rem, 9vw, 3.5rem);
        word-break: break-word;
    }

    /* -- Footer -- */
    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 1rem;
    }

    /* -- Scroll buttons: hide on very small, avoid overflow -- */
    .carousel-nav {
        display: none;
    }

    /* -- Core Team: single column stack on mobile -- */
    #team .about-inner > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
}

/* Extra-small phones (< 400px) */
@media (max-width: 400px) {
    .hero-title {
        font-size: clamp(1.9rem, 11vw, 2.8rem);
    }

    .hero-eyebrow {
        font-size: 0.6rem;
        letter-spacing: 0.2em;
        padding: 0.35rem 0.9rem;
    }

    .about-stats {
        flex-direction: column;
        gap: 1rem;
    }
}

.section-divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, var(--accent-blue), transparent);
    opacity: 0.3;
}
