/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: auto;
    overflow-x: hidden;
}

/* Fixed header spacer - pushes ALL content below navbar + ticker */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI',
        sans-serif;
    color: #333;
    background: #e5e0d8;
    line-height: 1.7;
    font-size: 16px;
    padding-top: 96px; /* navbar 56px + ticker 40px */
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(24px, 3vw, 80px);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: clamp(10px, 0.5vw + 6px, 14px) clamp(24px, 1.5vw + 12px, 40px);
    border-radius: 0;
    font-size: clamp(12px, 0.3vw + 9px, 16px);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1.5px solid #bbb;
    text-align: center;
    background: transparent;
    color: #3a3a3a;
}

.btn:hover {
    background: #f0f0f0;
}

.btn-primary {
    background: transparent;
    color: #3a3a3a;
}

.btn-primary:hover {
    background: #f0f0f0;
}

.btn-outline {
    background: transparent;
    color: #3a3a3a;
    border: 1.5px solid #bbb;
}

.btn-outline:hover {
    background: #f0f0f0;
    color: #3a3a3a;
}

.btn-full {
    width: 100%;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid #f0f0f0;
    transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(24px, 3vw, 80px);
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-img {
    height: 36px;
    width: auto;
    object-fit: contain;
}

.logo-name {
    font-weight: 700;
    font-size: 14px;
    color: #3a3a3a;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 8px;
    align-items: center;
}

.nav-links a {
    padding: 8px 16px;
    border-radius: 0;
    font-size: 14px;
    font-weight: 500;
    color: #3a3a3a;
    transition: color 0.35s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #e67e22;
}

.nav-links .nav-cta {
    background: #e67e22;
    color: #fff !important;
    border: 1.5px solid #e67e22;
    margin-left: 8px;
    padding: 6px 28px;
    transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

.nav-links .nav-cta:hover,
.nav-links .nav-cta.active {
    background: transparent;
    color: #e67e22 !important;
    border-color: #e67e22;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: #333;
    border-radius: 0;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===== HERO ===== */
.hero {
    display: flex;
    background: #fff;
    min-height: calc(100vh - 96px); /* visible area below fixed header */
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-image {
    overflow: visible;
    padding: clamp(12px, 0.8vw + 6px, 32px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-img {
    width: 100%;
    max-width: min(100%, 45vw);
    max-height: 70vh;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(16px, 2vw + 8px, 56px);
}

.hero-tag {
    font-size: clamp(10px, 0.4vw + 5px, 13px);
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2px;
}

.hero h1 {
    font-family: 'Inter', sans-serif;
    font-size: clamp(24px, 2vw + 6px, 42px);
    font-weight: 700;
    line-height: 1.15;
    color: #2a2a2a;
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.hero-desc {
    font-size: clamp(12px, 0.4vw + 8px, 16px);
    color: #666;
    max-width: 800px;
    margin-bottom: clamp(8px, 0.8vw + 4px, 16px);
    line-height: 1.6;
}

.hero-desc-mobile {
    display: none;
}

.hero-buttons {
    display: flex;
    gap: clamp(8px, 0.4vw + 4px, 16px);
    margin-bottom: clamp(16px, 1.5vw + 6px, 40px);
    flex-wrap: wrap;
}

.hero-buttons .btn {
    min-width: 200px;
    text-align: center;
}

.hero-stats {
    display: flex;
    gap: clamp(20px, 1.5vw + 10px, 48px);
    padding-top: clamp(12px, 1vw + 4px, 30px);
    margin-top: clamp(12px, 1vw + 4px, 30px);
    border-top: 1px solid #e8e8e8;
}

.stat-number {
    display: block;
    font-size: clamp(24px, 1.2vw + 12px, 40px);
    font-weight: 700;
    color: #3a3a3a;
}

.stat-label {
    color: #888;
    font-size: clamp(11px, 0.4vw + 6px, 15px);
    font-weight: 500;
}

/* ===== SECTIONS - BASE ===== */
section {
    padding: 0;
}

.section-tag {
    font-size: clamp(10px, 0.4vw + 5px, 13px);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #888;
    margin-bottom: 2px;
}

.section-title {
    font-size: clamp(24px, 2vw + 6px, 42px);
    font-weight: 700;
    color: #2a2a2a;
    margin-bottom: 4px;
}

.section-desc {
    font-size: clamp(12px, 0.4vw + 8px, 16px);
    color: #666;
    max-width: 800px;
    margin-bottom: clamp(8px, 0.8vw + 4px, 16px);
}

/* ===== SECTIONS - SIDE BY SIDE LAYOUT ===== */
.section-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-image {
    overflow: visible;
    padding: clamp(12px, 0.8vw + 6px, 32px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-img {
    width: 100%;
    max-width: min(100%, 45vw);
    max-height: 70vh;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.section-image-sticky {
    position: relative;
}

.section-image-sticky .section-img {
    position: sticky;
    top: 108px; /* navbar 56px + ticker 40px + breathing room 12px */
    width: 100%;
    max-width: min(100%, 45vw);
    max-height: 70vh;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.section-content {
    padding: clamp(16px, 2vw + 8px, 56px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-content > p:not(.section-tag):not(.section-desc) {
    color: #666;
    margin-bottom: clamp(8px, 0.4vw + 4px, 18px);
    font-size: clamp(13px, 0.4vw + 9px, 17px);
}

/* ===== SECTIONS - ALTERNATING BACKGROUNDS + MIN-HEIGHT ===== */
#clients {
    background: #f2f0ed;
    box-shadow: inset 0 1px 0 #ddd8d2;
    min-height: calc(100vh - 96px);
    box-sizing: border-box;
    display: flex;
}

#services {
    background: #fff;
    box-shadow: inset 0 1px 0 #ddd8d2;
    min-height: calc(100vh - 96px);
    box-sizing: border-box;
    display: flex;
}

#projects {
    background: #f2f0ed;
    box-shadow: inset 0 1px 0 #ddd8d2;
    min-height: calc(100vh - 96px);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#about {
    background: #fff;
    box-shadow: inset 0 1px 0 #ddd8d2;
    min-height: calc(100vh - 96px);
    box-sizing: border-box;
    display: flex;
}

#contact {
    background: #f2f0ed;
    box-shadow: inset 0 1px 0 #ddd8d2;
    min-height: calc(100vh - 96px);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(36px, 4vh, 72px) 0;
}

/* ===== CLIENTS ===== */
.clients-container {
    width: min(1180px, calc(100% - clamp(28px, 6vw, 96px)));
    margin: 0 auto;
}

.clients-content {
    max-width: none;
    text-align: center;
}

.clients-content .section-desc {
    margin-left: auto;
    margin-right: auto;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(10px, 0.7vw + 6px, 22px);
    margin-top: clamp(20px, 1.6vw + 10px, 40px);
}

.client-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 0;
    padding: clamp(12px, 0.7vw + 8px, 24px) clamp(10px, 0.6vw + 8px, 22px);
    text-align: center;
}

.client-logo-img {
    width: 100%;
    height: clamp(54px, 3.8vw + 24px, 96px);
    object-fit: contain;
    margin: 0 auto clamp(6px, 0.4vw + 3px, 14px);
    display: block;
}

.client-name {
    font-size: clamp(12px, 0.28vw + 11px, 15px);
    line-height: 1.35;
    font-weight: 600;
    color: #444;
}

/* ===== SERVICES ===== */
.services-container {
    width: min(1180px, calc(100% - clamp(28px, 6vw, 96px)));
    margin: 0 auto;
}

.services-content {
    max-width: none;
    text-align: center;
}

.services-content .section-desc {
    margin-left: auto;
    margin-right: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(10px, 0.7vw + 6px, 22px);
    margin-top: clamp(20px, 1.6vw + 10px, 40px);
}

.service-card {
    background: #fff;
    border: 1px solid #ece6de;
    border-top: 4px solid #e67e22;
    border-radius: 0;
    padding: clamp(16px, 1vw + 10px, 28px);
    min-height: clamp(150px, 8vw + 80px, 220px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    text-align: left;
}

.service-tag {
    display: inline-block;
    margin-bottom: clamp(8px, 0.35vw + 5px, 14px);
    color: #9a6a42;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.service-card h3 {
    font-size: clamp(13px, 0.35vw + 10px, 16px);
    font-weight: 600;
    color: #3a3a3a;
    margin-bottom: clamp(10px, 0.4vw + 6px, 16px);
    padding-bottom: clamp(10px, 0.35vw + 5px, 14px);
    border-bottom: 1px solid #eee6de;
    line-height: 1.25;
    min-height: clamp(52px, 2.5vw + 24px, 70px);
}

.service-card p {
    font-size: clamp(11px, 0.25vw + 9px, 13px);
    color: #777;
    line-height: 1.5;
    margin-bottom: 0;
}

/* ===== PROJECTS - 6 BOX GRID ===== */
#projects .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(24px, 3vw, 80px);
}

#projects .section-tag,
#projects .section-title,
#projects .section-desc {
    text-align: center;
}

#projects .section-desc {
    margin-left: auto;
    margin-right: auto;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: clamp(10px, 0.8vw + 4px, 24px);
    margin-top: clamp(20px, 1.6vw + 10px, 40px);
}

.project-card {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    overflow: hidden;
    grid-column: span 2;
}

.project-card:nth-child(4) {
    grid-column: 2 / span 2;
}

.project-card:nth-child(5) {
    grid-column: 4 / span 2;
}

.project-card-image {
    position: relative;
    height: clamp(100px, 8vw + 30px, 200px);
    overflow: hidden;
}

.project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.project-card-link {
    width: clamp(35px, 3vw + 15px, 50px);
    height: clamp(35px, 3vw + 15px, 50px);
    background: #fff;
    border: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(14px, 1vw + 6px, 20px);
    color: #3a3a3a;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

.project-card:hover .project-card-image img {
    transform: scale(1.05);
}

.project-card:hover .project-card-overlay {
    background: rgba(0, 0, 0, 0.35);
}

.project-card:hover .project-card-link {
    opacity: 1;
    transform: scale(1);
}

.project-card-link:hover {
    background: #e67e22;
    color: #fff;
}

.project-card-title {
    padding: clamp(8px, 0.4vw + 4px, 16px);
    text-align: center;
}

.project-card-title h3 {
    font-size: clamp(11px, 0.3vw + 8px, 16px);
    font-weight: 600;
    color: #3a3a3a;
    margin: 0;
}

/* ===== PROJECT MEDIA MODAL ===== */
body.project-modal-open {
    overflow: hidden;
}

.project-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: clamp(16px, 3vw, 44px);
}

.project-modal.open {
    display: flex;
}

.project-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(16, 14, 12, 0.78);
    backdrop-filter: blur(4px);
}

.project-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(1080px, 100%);
    background: #0f0f0f;
    color: #fff;
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.42);
    overflow: hidden;
}

.project-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    width: 42px;
    height: 42px;
    border: 0;
    background: rgba(255, 255, 255, 0.9);
    color: #222;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
}

.project-modal-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
}

.project-modal-stage img,
.project-modal-stage video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.project-modal-footer {
    padding: 16px clamp(16px, 2vw, 28px) 18px;
    background: #fff;
    color: #222;
}

.project-modal-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.project-modal-meta h3 {
    margin: 0;
    font-size: clamp(15px, 0.65vw + 12px, 22px);
    line-height: 1.28;
    color: #242424;
}

.project-modal-meta p {
    margin: 0;
    color: #777;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.project-modal-progress {
    height: 3px;
    margin-top: 14px;
    background: #eee6de;
    overflow: hidden;
}

.project-modal-progress span {
    display: block;
    width: 0%;
    height: 100%;
    background: #e67e22;
}

.project-modal-arrow {
    position: absolute;
    top: calc(50% - 28px);
    transform: translateY(-50%);
    z-index: 2;
    width: clamp(38px, 3vw, 54px);
    height: clamp(46px, 4vw, 70px);
    border: 0;
    background: rgba(255, 255, 255, 0.84);
    color: #222;
    font-size: clamp(28px, 2vw, 42px);
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-modal-prev {
    left: 12px;
}

.project-modal-next {
    right: 12px;
}

.project-modal-arrow:hover,
.project-modal-close:hover {
    background: #e67e22;
    color: #fff;
}

/* ===== ABOUT ===== */
.about-title span {
    display: block;
}

.about-title span + span {
    margin-top: 2px;
}

.about-copy {
    max-width: 720px;
}

.about-copy p {
    color: #5f5f5f;
    font-size: clamp(13px, 0.35vw + 9px, 16px);
    line-height: 1.72;
    margin-bottom: clamp(10px, 0.55vw + 6px, 18px);
    text-align: left;
}

.about-copy p:last-child {
    margin-bottom: 0;
}

.about-highlights {
    margin-top: clamp(12px, 1vw + 4px, 28px);
    display: flex;
    flex-direction: column;
    gap: clamp(6px, 0.4vw + 3px, 14px);
}

.highlight {
    display: flex;
    align-items: center;
    gap: clamp(6px, 0.3vw + 3px, 12px);
    font-size: clamp(11px, 0.3vw + 8px, 15px);
    font-weight: 500;
    color: #444;
}

.highlight-icon {
    font-size: clamp(12px, 0.3vw + 8px, 18px);
}

/* ===== CONTACT ===== */
.contact-container {
    width: min(1120px, calc(100% - clamp(28px, 6vw, 96px)));
    margin: 0 auto;
}

.contact-content {
    max-width: none;
    display: grid;
    grid-template-columns: minmax(520px, 1fr) minmax(240px, 0.82fr);
    align-items: center;
    gap: clamp(32px, 4vw, 72px);
    text-align: left;
}

.contact-intro {
    max-width: 360px;
    grid-column: 2;
    grid-row: 1;
}

#contact .section-content {
    padding: 0;
}

#contact .contact-layout {
    display: block;
    width: 100%;
    grid-column: 1;
    grid-row: 1;
}

.contact-form {
    background: #fff;
    padding: clamp(20px, 1.2vw + 12px, 34px);
    border-radius: 0;
    border: 1px solid rgba(212, 204, 194, 0.95);
    box-shadow: 0 18px 45px rgba(60, 52, 45, 0.08);
    max-width: 100%;
    margin: 0 auto;
    text-align: left;
}

.honeypot-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.form-group {
    margin-bottom: clamp(8px, 0.3vw + 5px, 10px);
}

.form-group label {
    display: block;
    font-size: clamp(12px, 0.3vw + 9px, 14px);
    font-weight: 600;
    color: #444;
    margin-bottom: 4px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-row .form-group {
    margin-bottom: 10px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: clamp(8px, 0.4vw + 5px, 12px) clamp(10px, 0.4vw + 6px, 14px);
    border: 1px solid #e0e0e0;
    border-radius: 0;
    font-size: clamp(13px, 0.3vw + 10px, 15px);
    font-family: inherit;
    color: #333;
    transition: border-color 0.2s;
    background: #fff;
}

.phone-input-group {
    display: grid;
    grid-template-columns: auto 1fr;
    width: 100%;
}

.country-code {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    padding: clamp(8px, 0.4vw + 5px, 12px) 12px;
    border: 1px solid #e0e0e0;
    border-right: 0;
    background: #f7f5f2;
    color: #444;
    font-size: clamp(13px, 0.3vw + 10px, 15px);
    font-weight: 600;
    line-height: 1.2;
}

.phone-input-group input {
    min-width: 0;
}

.form-group textarea {
    min-height: 96px;
    max-height: 240px;
    max-width: 100%;
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3a3a3a;
}

.form-group input.input-error,
.form-group textarea.input-error {
    border-color: #e74c3c;
}

.phone-input-group:has(input.input-error) .country-code {
    border-color: #e74c3c;
}

.error-msg {
    display: block;
    font-size: 12px;
    color: #e74c3c;
    margin-top: 4px;
    min-height: 16px;
}

.char-count {
    margin-top: 4px;
    text-align: right;
    font-size: 12px;
    line-height: 1.2;
    color: #888;
}

.char-count.near-limit {
    color: #9a6a42;
}

.captcha-group {
    margin-top: 6px;
}

.captcha-group .cf-turnstile {
    min-height: 65px;
}

.form-success {
    display: none;
    background: #f0fdf4;
    color: #166534;
    padding: 16px;
    border-radius: 0;
    margin-top: 16px;
    font-size: 15px;
    text-align: center;
}

.form-success.show {
    display: block;
}

#contact .btn-primary {
    background: #e67e22;
    border-color: #e67e22;
    color: #fff;
}

#contact .btn-primary:hover {
    background: #cf6f18;
    border-color: #cf6f18;
    color: #fff;
}

#contact .btn-primary:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

/* ===== FOOTER ===== */
.footer {
    background: #3a3a3a;
    color: #fff;
    padding: 48px 0 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo-name {
    color: #fff;
}

.footer-logo-img {
    height: 40px;
    border-radius: 6px;
    background: #fff;
    padding: 2px;
}

.footer-brand > p {
    margin-top: 12px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

/* ===== FLOATING ELEMENTS ===== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 46px;
    height: 46px;
    background: #3a3a3a;
    color: #fff;
    border: none;
    border-radius: 0;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: #555;
    transform: translateY(-2px);
}

/* ===== CLIENT TICKER ===== */
.client-ticker {
    position: fixed;
    top: 56px; /* Below navbar */
    left: 0;
    right: 0;
    height: 40px;
    background: #f5f0eb;
    z-index: 999; /* Same level as navbar */
    overflow: hidden;
    border-bottom: 1px solid #e0d6cc;
    display: flex;
    align-items: center;
}

.ticker-label {
    flex-shrink: 0;
    padding: 0 20px;
    font-size: 12px;
    font-weight: 600;
    color: #e67e22;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-right: 1px solid #e0d6cc;
    height: 100%;
    display: flex;
    align-items: center;
    background: #f5f0eb;
    position: relative;
    z-index: 2;
}

.ticker-wrapper {
    flex: 1;
    overflow: hidden;
    height: 100%;
}

.ticker-track {
    display: flex;
    align-items: center;
    height: 100%;
    --ticker-item-width: 260px;
}

/*
 * =========================================
 * HOW TO ADD MORE CLIENTS:
 * =========================================
 * 1. Add a new <div class="ticker-item"> in index.html
 * 2. Inside it, add:
 *    - <img src="your-logo.png" class="ticker-logo" alt="Client Name">
 *    - <span>Client Name</span>
 * 3. The ticker will automatically include the new client
 * =========================================
 */
.ticker-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex: 0 0 var(--ticker-item-width);
    width: var(--ticker-item-width);
    box-sizing: border-box;
    padding: 0 20px;
    white-space: nowrap;
    color: #555;
    font-size: 13px;
    font-weight: 500;
}

.ticker-logo {
    width: 58px;
    height: 30px;
    object-fit: contain;
    border-radius: 2px;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.ticker-separator {
    color: rgba(0, 0, 0, 0.15);
    padding: 0 10px;
}

.ticker-arrow {
    flex-shrink: 0;
    width: 40px;
    height: 100%;
    border: none;
    background: #ddd5ca;
    color: #666;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, background 0.2s;
    padding: 0;
    line-height: 1;
}

.ticker-arrow:hover {
    color: #e67e22;
    background: #d0c7bb;
}

.ticker-arrow-left {
    border-right: 1px solid #e0d6cc;
}

.ticker-arrow-right {
    border-left: 1px solid #e0d6cc;
}

/* Extra footer breathing room above the fixed bottom controls */
.footer {
    padding-bottom: 48px;
}

.scroll-top {
    bottom: 30px;
}

.mobile-section-indicator {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(58, 58, 58, 0.92);
    backdrop-filter: blur(8px);
    color: #fff;
    text-align: center;
    padding: 10px 0;
    z-index: 998;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ===== RESPONSIVE - DESKTOP ENHANCEMENTS ===== */
@media (min-width: 1280px) {
    .hero-content,
    .section-content {
        padding: clamp(32px, 2vw + 16px, 56px);
    }
}

@media (min-width: 1536px) {
    /* Full-width section bands with constrained inner content */
    .hero-layout,
    .section-split {
        max-width: 1400px;
    }

    #projects .container,
    .container {
        max-width: 1400px;
    }
}

/* ===== RESPONSIVE - ULTRA-WIDE (27" monitors, ultra-wide) ===== */
@media (min-width: 1920px) {
    /* Wider inner content on ultra-wide screens, section bands stay full viewport */
    .hero-layout,
    .section-split {
        max-width: 1600px;
    }

    #projects .container,
    .container {
        max-width: 1600px;
    }

    .hero-img,
    .section-img,
    .section-image-sticky .section-img {
        max-width: min(100%, 600px);
    }
}

/* ===== RESPONSIVE - SMALL LAPTOP & TABLET (<=1024px) ===== */
@media (max-width: 1024px) {
    /* Navbar */
    .hamburger {
        display: flex;
    }

    .mobile-section-indicator {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 56px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 16px 24px;
        border-bottom: 1px solid #f0f0f0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        width: 100%;
        padding: 14px 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links .nav-cta {
        margin-left: 0;
        text-align: center;
        margin-top: 8px;
        padding: 12px 0;
        border-bottom: 1.5px solid #e67e22;
    }

    .nav-links a.active {
        color: #3a3a3a;
    }

    .nav-links a:hover {
        color: #e67e22;
    }

    .nav-links .nav-cta.active {
        background: #e67e22;
        color: #fff !important;
        border-color: #e67e22;
    }

    /* Hero stacks */
    .hero-layout {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .hero-image {
        order: -1;
    }

    .hero-content {
        order: 1;
    }

    .hero-tag {
        display: none;
    }

    .hero-desc-desktop {
        display: none;
    }

    .hero-desc-mobile {
        display: block;
        font-size: 13px;
        line-height: 1.45;
        max-width: 340px;
        margin-bottom: 12px;
    }

    .hero-stats {
        flex-direction: row;
        justify-content: center;
        gap: 10px;
        width: 100%;
    }

    .hero-buttons {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 8px;
        width: 100%;
        max-width: 340px;
    }

    .hero-buttons .btn {
        min-width: unset;
        width: 50%;
        padding: 11px 8px;
        font-size: 12px;
        white-space: nowrap;
    }

    /* Section stacks - image always on top */
    .section-split {
        display: flex;
        flex-direction: column;
        min-height: auto;
        max-width: 100%;
    }

    .section-image {
        order: -1;
    }

    .section-img,
    .hero-img {
        aspect-ratio: 16 / 9;
        width: 100%;
        height: auto;
        max-height: 360px;
        object-fit: cover;
        max-width: 100%;
    }

    .section-image-sticky .section-img {
        position: relative;
        top: 0;
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: 360px;
        aspect-ratio: 16 / 9;
    }

    .section-content {
        order: 1;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: clamp(18px, 2vw, 28px);
        text-align: center;
    }

    .contact-intro {
        max-width: 620px;
        margin: 0 auto;
        grid-column: auto;
        grid-row: auto;
    }

    #contact .contact-layout {
        grid-column: auto;
        grid-row: auto;
    }

    /* Sections min-height auto + breathing room */
    .hero,
    #clients,
    #services,
    #projects,
    #about,
    #contact {
        min-height: auto;
        padding-top: clamp(24px, 3vw, 48px);
        padding-bottom: clamp(24px, 3vw, 48px);
    }
}

@media (max-width: 768px) {
    /* Grids adjust */
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .project-card,
    .project-card:nth-child(4),
    .project-card:nth-child(5) {
        grid-column: auto;
    }

    .project-card-image {
        height: 160px;
    }

    .project-card-title h3 {
        font-size: 14px;
    }

    .project-modal {
        padding: 12px;
    }

    .project-modal-footer {
        padding: 14px 16px 16px;
    }

    .project-modal-meta {
        align-items: flex-start;
    }

    .project-modal-arrow {
        background: rgba(255, 255, 255, 0.82);
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    /* ===== RESPONSIVE - TABLET (<=768px) ===== */
    .hero-stats {
        flex-direction: row;
        gap: 8px;
        width: 100%;
    }

    .hero-stats .stat {
        flex: 1 1 0;
        min-width: 0;
        text-align: center;
    }

    .hero-stats .stat-number {
        font-size: 22px;
        line-height: 1.05;
    }

    .hero-stats .stat-label {
        font-size: 10px;
        line-height: 1.2;
    }

    .section-img,
    .hero-img {
        max-height: 280px;
    }

    .section-image-sticky .section-img {
        max-height: 280px;
    }

    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .service-card {
        min-height: 0;
    }

    .project-card-image {
        height: 140px;
    }

    /* Ticker: hide arrows, compact label */
    .ticker-arrow {
        display: none;
    }

    .ticker-label {
        padding: 0 14px;
        font-size: 11px;
        letter-spacing: 0.5px;
    }
}

/* ===== RESPONSIVE - SMALL MOBILE (<=480px) ===== */
@media (max-width: 480px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card,
    .project-card:nth-child(4),
    .project-card:nth-child(5) {
        grid-column: auto;
    }

    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .section-img,
    .hero-img {
        max-height: 220px;
    }

    .section-image-sticky .section-img {
        max-height: 220px;
    }

    /* Ticker: further compact */
    .ticker-label {
        padding: 0 10px;
        font-size: 10px;
    }

    .ticker-item {
        padding: 0 24px;
        font-size: 12px;
    }

    .scroll-top {
        right: 18px;
        bottom: 142px;
        width: 42px;
        height: 42px;
        font-size: 18px;
    }

    .footer {
        padding-bottom: 64px;
    }
}

/* ================================================================
   HERO VIDEO MODE - scoped under .hero-video-mode so only the
   experiment page is affected. Original .hero rules are untouched.
   ================================================================ */
.hero.hero-video-mode {
    /* hero becomes a positioning context for the video + overlay layers */
    position: relative;
    overflow: hidden;
    display: block; /* override the default flex layout */
    min-height: calc(100vh - 96px);
    background: #000; /* fallback if video + poster both fail */
}

/* Background video layer - fills the hero, sits behind everything */
.hero-video-mode .hero-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* crop to fill, no letterboxing */
    z-index: 1;
    pointer-events: none;
}

.hero-video-mode .hero-bg-video-mobile {
    display: none;
}

/* Dark overlay between video and content - keeps white text readable */
.hero-video-mode .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.28) 0%,
        rgba(0, 0, 0, 0.36) 38%,
        rgba(0, 0, 0, 0.68) 100%
    );
    z-index: 2;
    pointer-events: none;
}

/* Hero content sits on top of video + overlay */
.hero-video-mode .hero-content {
    position: relative;
    z-index: 3;
    max-width: 980px;
    margin: 0 auto;
    padding: clamp(96px, 12vh, 150px) clamp(16px, 2vw + 8px, 56px) clamp(32px, 5vh, 70px);
    text-align: center;
    min-height: calc(100vh - 96px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
}

/* White text on dark video background */
.hero-video-mode .hero-tag {
    color: rgba(255, 255, 255, 0.85);
}

.hero-video-mode h1 {
    color: #ffffff;
}

.hero-video-mode .hero-desc {
    color: rgba(255, 255, 255, 0.9);
    max-width: 820px;
    margin-bottom: clamp(8px, 0.7vw + 4px, 14px);
}

.hero-video-mode .hero-desc span {
    display: block;
}

.hero-video-mode .stat-number {
    color: #ffffff;
}

.hero-video-mode .stat-label {
    color: rgba(255, 255, 255, 0.75);
}

.hero-video-mode .hero-stats {
    justify-content: center;
    border-top: 0;
    padding-top: 0;
    margin-top: clamp(8px, 0.7vw + 4px, 14px);
}

.hero-video-mode .hero-buttons {
    justify-content: center;
    margin-bottom: 0;
}

.hero-video-mode .hero-buttons .btn {
    width: 270px;
    min-width: 270px;
    padding-top: clamp(8px, 0.35vw + 5px, 11px);
    padding-bottom: clamp(8px, 0.35vw + 5px, 11px);
    white-space: nowrap;
}

/* Buttons: keep them readable on dark.
   Primary CTA stays orange (already readable on dark).
   Outline buttons need white border + white text on dark video. */
.hero-video-mode .btn-outline {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.85);
    background: transparent;
}

.hero-video-mode .btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: #ffffff;
}

/* -------- Mobile portrait: use vertical video instead of landscape video -------- */
@media (max-width: 768px) and (orientation: portrait) {
    .hero-video-mode .hero-bg-video-desktop {
        display: none;
    }

    .hero-video-mode .hero-bg-video-mobile {
        display: block;
    }

    .hero-video-mode .hero-overlay {
        background: linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.58) 0%,
            rgba(0, 0, 0, 0.48) 52%,
            rgba(0, 0, 0, 0.68) 100%
        );
    }

    .hero-video-mode .hero-content {
        text-align: center;
        align-items: center;
        padding-top: 72px;
        padding-bottom: 64px;
        min-height: calc(100vh - 96px);
    }

    .hero-video-mode .hero-stats,
    .hero-video-mode .hero-buttons {
        justify-content: center;
    }

    .hero-video-mode .hero-buttons {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 8px;
        width: 100%;
        max-width: 340px;
    }

    .hero-video-mode .hero-buttons .btn {
        width: 50%;
        min-width: unset;
        padding: 11px 8px;
        font-size: 12px;
        white-space: nowrap;
    }
}

/* -------- Reduced motion: respect the user's OS setting --------
   Note: previously this rule set `display: none` on the video, but that
   hides the video for anyone with Windows "Show animations" turned off
   (very common default), which broke the hero. Background video on a
   marketing site is decorative, not motion-essential, so we keep it
   visible. If we later want to respect reduced-motion strictly, pause
   the video via JS instead of hiding the element. */
@media (prefers-reduced-motion: reduce) {
    /* intentionally empty - see comment above */
}
