/* BluePrint Forge – with centered + smaller Send Message button */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
    height: 100%;
    overflow-y: scroll;
}

body {
    margin: 0;
    font-family: 'Droid Serif', serif;
    line-height: 1.35;
    color: #fff;
    background: #155193 fixed;
    min-height: 100vh;
    position: relative;
}

/* Canvas grid */
.grid-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 1.2s ease-out;
}

.grid-canvas.animate,
.grid-canvas.static-grid {
    opacity: 1;
}

.grid-canvas.static-grid {
    transition-duration: 0.8s;
    transition-delay: 0.2s;
}

/* Content layers */
section, .fixed-contact {
    position: relative;
    z-index: 2;
}

section {
    height: 100vh;
    min-height: 100vh;
    padding: 5vh 6vw;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    overflow: hidden;
}

.container {
    width: 100%;
    max-width: 90vw;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 4vh;
    height: 100%;
    text-align: left;
    z-index: 3;
}

.home-container {
    padding-bottom: 5vh;
    padding-top: 2vh;
}

.top-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4vh;
    margin-top: 5vh;
    margin-bottom: 12vh;
    flex-shrink: 0;
    width: 100%;
}

/* Collaborations */
.collaborations-container {
    justify-content: flex-start;
    gap: 3vh;
}

.collaborations-container .top-group {
    margin-top: 1.5vh;
    margin-bottom: 0;
    gap: 0;
}

.collaborations-tagline {
    font-size: 7.5vw;
    font-weight: 400;
    line-height: 1.3;
    max-width: 85vw;
}

.top-group h1 {
    font-size: 7.5vw;
    font-weight: 400;
    max-width: 85vw;
}

/* Logos – centered, never off-screen */
.logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1000px;
    margin: 2.5vh auto 2vh auto;
    gap: clamp(4vw, 6vw, 80px);
    padding: 0 4vw;
}

.logos a {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logos img {
    height: clamp(60px, 11vw, 110px);
    width: auto;
    max-width: 220px;
    transform: scale(0.8);
    transform-origin: center center;
}

.logos a:hover img {
    transform: scale(1.08);
}

/* Products marquee */
.products-marquee {
    width: 100%;
    overflow: hidden;
    margin-top: 1vh;
    padding: 2vh 0;
}

.marquee-track {
    display: flex;
    gap: 4vw;
    will-change: transform;
}

.marquee-track img {
    height: 18vh;
    width: auto;
    flex-shrink: 0;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

/* PROCESS SECTION */
#process {
    height: 100vh;
    overflow: hidden;
    padding: 0 4.5vw;
}

#process .container {
    height: 100%;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: clamp(1.8vh, 3.5vw, 5vh);
}

#process h1 {
    margin-top: clamp(4.5vh, 7.5vw, 10vh);
    margin-bottom: clamp(4vh, 6vw, 8vh);
    font-size: clamp(2.2rem, 6.5vw, 4.2rem);
    line-height: 1.15;
    font-weight: 400;
    max-width: 92%;
}

.process-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: clamp(3.5vw, 5.5vw, 45px);
    margin-bottom: clamp(2.8vh, 4.5vw, 6.5vh);
    width: 100%;
    max-width: 900px;
}

.process-item .icon.small {
    width:  clamp(36px, 8.5vw, 62px);
    height: clamp(36px, 8.5vw, 62px);
    flex-shrink: 0;
    object-fit: contain;
}

.process-item p.highlight {
    font-size: clamp(0.96rem, 2.8vw, 1.24rem);
    line-height: 1.35;
    margin-bottom: 0.45em;
    font-weight: 700;
}

.process-item p:not(.highlight) {
    font-size: clamp(0.86rem, 2.3vw, 0.98rem);
    line-height: 1.52;
    opacity: 0.93;
}

/* CONTACT SECTION – fixed height + internal scroll */
#contact {
    height: 100vh;
    overflow: hidden;
    padding: 0 5vw;
}

#contact .container {
    height: 100%;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
    gap: 0;
}

.contact-content {
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 0 clamp(8vh, 10vw, 14vh) 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.25) transparent;
}

.contact-content::-webkit-scrollbar {
    width: 6px;
}

.contact-content::-webkit-scrollbar-track {
    background: transparent;
}

.contact-content::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
}

.contact-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.5);
}

#contact .tagline {
    margin-top: clamp(7.5vh, 10vw, 14vh);
    margin-bottom: clamp(4vh, 6vw, 8vh);
    font-size: clamp(1.8rem, 5.8vw, 3.6rem);
    line-height: 1.15;
    font-weight: 400;
    white-space: nowrap;
    max-width: 95vw;
}

/* Contact form */
.contact-form {
    width: 100%;
    max-width: 700px;
    display: flex;
    flex-direction: column;
    gap: clamp(1.4rem, 3.5vw, 2.2rem);
    margin-bottom: 4vh;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: clamp(1rem, 3vw, 1.15rem);
    font-weight: 700;
    opacity: 0.95;
}

.form-group .required {
    color: #ff7777;
    font-size: 0.9em;
}

.form-group input,
.form-group textarea {
    padding: clamp(0.9rem, 2.5vw, 1.25rem) clamp(1.2rem, 3vw, 1.8rem);
    border-radius: 12px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.25);
    color: white;
    font-family: 'Droid Serif', serif;
    font-size: clamp(0.95rem, 2.8vw, 1.1rem);
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255,255,255,0.55);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.18);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Center the submit button horizontally */
.button-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: clamp(0.8rem, 2vw, 1.2rem);
}

/* Smaller & centered Send Message button */
.submit-btn {
    padding: clamp(0.9rem, 2.5vh, 1.3rem) clamp(2.8rem, 8vw, 5rem);
    font-size: clamp(1rem, 4vw, 1.5rem);
    min-width: 220px;
}

/* Slightly reduce space before button */
.form-group:last-of-type {
    margin-bottom: clamp(0.8rem, 2vw, 1.2rem);
}

.form-privacy {
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    opacity: 0.75;
    margin-top: 1.8rem;
    line-height: 1.5;
    text-align: center;
}

/* Floating contact button + fade */
.fixed-contact {
    position: fixed;
    bottom: 5vh;
    left: 6vw;
    z-index: 10;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.fixed-contact.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
}

.fixed-contact .contact-link {
    font-size: clamp(1rem, 3.5vw, 1.2rem);
    color: #fff;
    opacity: 0.7;
    text-decoration: none;
}

.fixed-contact .contact-link:hover {
    opacity: 1;
}

/* Other shared styles */
.email-button {
    font-size: clamp(1.1rem, 4.5vw, 1.7rem);
    padding: clamp(1.2rem, 3.5vh, 1.8rem) clamp(2.8rem, 8vw, 5rem);
    border-radius: 50px;
    background: rgba(255,255,255,.18);
    backdrop-filter: blur(12px);
    border: 2px solid rgba(255,255,255,.25);
    text-decoration: none;
    text-align: center;
    max-width: 88vw;
    width: fit-content;
    transition: all 0.4s;
    color: white;
    white-space: nowrap;
}

.email-button:hover {
    background: #fff;
    color: #155193;
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,.2);
}

.anvil-container {
    position: relative;
    width: 35vw;
    max-width: 40vw;
    overflow: hidden;
}

.img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 2;
}

.top-group .icon {
    width: 35vw;
    max-width: 40vw;
    height: auto;
}

.bottom-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2vh;
    width: 100%;
}

.bottom-group .subtext {
    font-size: 3.8vw;
    opacity: 0.85;
}

/* ────────────────────────────────────────────────
   TEXT STAGGER ANIMATIONS
   ──────────────────────────────────────────────── */
.stagger-title,
.stagger-tagline {
    font-size: 0;
}

.word, .stagger-item {
    opacity: 0;
    filter: blur(4px);
    transform: translateY(20px);
    display: inline-block;
}

.stagger-title .word {
    font-size: 7.5vw;
}

.stagger-subtext .stagger-item {
    visibility: hidden;
}

@keyframes reveal {
    to {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0);
        visibility: visible;
    }
}

/* Title stagger */
.stagger-title .word:nth-child(1) { animation: reveal 1.2s cubic-bezier(0.11, 0, 0.5, 0) 1.4s forwards; }
.stagger-title .word:nth-child(2) { animation: reveal 1.2s cubic-bezier(0.11, 0, 0.5, 0) 1.7s forwards; }

/* ────────────────────────────────────────────────
   HOME TAGLINE – forced two-line layout, both lines scale, no word wrapping
   ──────────────────────────────────────────────── */

.home-tagline-wrapper {
    width: 100%;
    text-align: left;                     /* change to 'center' if you prefer centered text */
}

.home-tagline-wrapper .tagline {
    margin: 0;
    line-height: 1.14;
    font-size: clamp(2.6rem, 7.8vw, 6.0rem);   /* main responsive size control here */
    font-weight: 400;
    white-space: nowrap;                       /* ← prevents any word wrapping */
    display: inline-block;                     /* allows the <br> to still work */
}

/* Words – only animation & spacing, inherit size from .tagline */
.home-tagline-wrapper .word {
    display: inline-block;
    opacity: 0;
    filter: blur(4px);
    transform: translateY(28px);
}

/* Word spacing – reduced or removed */
.home-tagline-wrapper .word:not(:last-child) {
    margin-right: 0.12em;          /* ← try 0.08–0.15em, or set to 0 */
    /* margin-right: 0;            ← uncomment this if you want zero extra space */
}

/* Pull second line slightly closer vertically */
.home-tagline-wrapper .word:nth-child(n+5) {
    margin-top: -0.16em;
}

/* More aggressive scaling on smaller screens */
@media (max-width: 1200px) {
    .home-tagline-wrapper .tagline {
        font-size: clamp(2.3rem, 6.8vw, 5.2rem);
        line-height: 1.16;
    }
}

@media (max-width: 900px) {
    .home-tagline-wrapper .tagline {
        font-size: clamp(2.0rem, 6.0vw, 4.4rem);
        line-height: 1.18;
    }
}

@media (max-width: 680px) {
    .home-tagline-wrapper .tagline {
        font-size: clamp(1.75rem, 5.4vw, 3.6rem);
        line-height: 1.20;
    }
    .home-tagline-wrapper .word:not(:last-child) {
        margin-right: 0.26em;
    }
    .home-tagline-wrapper .word:nth-child(n+5) {
        margin-top: -0.12em;
    }
}

/* Stagger animation – targets all .word inside the wrapper */
.home-tagline-wrapper .word:nth-child(1) { animation: reveal 1.0s cubic-bezier(0.11, 0, 0.5, 0) 2.3s forwards; }
.home-tagline-wrapper .word:nth-child(2) { animation: reveal 1.0s cubic-bezier(0.11, 0, 0.5, 0) 2.45s forwards; }
.home-tagline-wrapper .word:nth-child(3) { animation: reveal 1.0s cubic-bezier(0.11, 0, 0.5, 0) 2.6s forwards; }
.home-tagline-wrapper .word:nth-child(4) { animation: reveal 1.0s cubic-bezier(0.11, 0, 0.5, 0) 2.75s forwards; }
.home-tagline-wrapper .word:nth-child(5) { animation: reveal 1.0s cubic-bezier(0.11, 0, 0.5, 0) 3.0s forwards; }
.home-tagline-wrapper .word:nth-child(6) { animation: reveal 1.0s cubic-bezier(0.11, 0, 0.5, 0) 3.15s forwards; }
.home-tagline-wrapper .word:nth-child(7) { animation: reveal 1.0s cubic-bezier(0.11, 0, 0.5, 0) 3.3s forwards; }
.home-tagline-wrapper .word:nth-child(8) { animation: reveal 1.0s cubic-bezier(0.11, 0, 0.5, 0) 3.45s forwards; }
/* Subtext stagger */
.stagger-subtext .stagger-item:nth-child(1) { animation: reveal 1.2s cubic-bezier(0.11, 0, 0.5, 0) 4.1s forwards; }
.stagger-subtext .stagger-item:nth-child(2) { animation: reveal 1.2s cubic-bezier(0.11, 0, 0.5, 0) 4.5s forwards; }

h1 { font-size: clamp(1.8rem, 6vw, 2.6rem); font-weight: 400; }
p { font-size: clamp(0.9rem, 2.8vw, 1.05rem); opacity: 0.95; }
