:root {
    --brand-white: #f2efea;
    --brand-black: #1c1c1c;
    --brand-primary: #FF3C38; 
    --brand-secondary: #dcdfda;
    --brand-error: #ff2c2c;
}

body {
    background-color: #F5EBE0;
    color: var(--brand-black);
    overflow-x: hidden;
    overscroll-behavior: none;
    font-family: 'Plus Jakarta Sans', Verdana, sans-serif;
    -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { display: none; }
* { scrollbar-width: none; }

.text-primary { color: var(--brand-primary) !important; }
.bg-primary { background-color: var(--brand-primary) !important; }
.text-secondary { color: var(--brand-secondary) !important; }
.bg-secondary { background-color: var(--brand-secondary) !important; }

@font-face {
    font-family: PP-Editorial-New;
    src: local('Larken-Regular'), url(/fonts/PPEditorialNew-Regular.otf) format('opentype');
    font-display: fallback;
}

.dark-font {
    color: #1C1C1C;
}

/* Typography */
.heading-xl {
    font-family: '"Playfair Display"', Georgia, serif;
    font-size: clamp(3.5rem, 12vw, 8rem);
    font-weight: 400;
    line-height: 0.9;
}

.heading-lg {
    font-family: '"Playfair Display"', Georgia, serif;
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: 400;
    line-height: 1;
}

.heading-sm {
    letter-spacing: 0.0875rem;
    text-transform: uppercase;
    font-size: clamp(0.75rem, 2vw, 0.875rem);
    font-weight: 500;
    line-height: 1.2;
}

.p-medium {
    font-family: '"Playfair Display"', Georgia, serif;
    /* font-size: clamp(1.5rem, 4vw, 2.25rem); */
    font-size: clamp(1.5rem, 4vw, 1.4rem);
    line-height: 1.2;
}

@media (max-width: 991px) {
.p-medium {
    font-size: 1.2rem;
}
}

.p-big {
        font-family: '"Playfair Display"', Georgia, serif;
        font-size: clamp(2rem, 5vw, 3rem);
        line-height: 1.2;
}

.loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background-color: var(--brand-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.loader__content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 150px;
}

.bear-outline {
  position: relative;
  width: 100%;
  height: auto;
  z-index: 2;
}

.bear-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  clip-path: inset(100% 0 0 0);
  animation: fillUp 1.0s ease-out forwards;
}

/* Animates the top edge from 100% (hidden) to 0% (fully revealed) */
@keyframes fillUp {
  0% {
    clip-path: inset(100% 0 0 0);
  }
  100% {
    clip-path: inset(0 0 0 0);
  }
}

/* The base logo (black) */
/* .loader__logo {
    width: 100%;
    height: auto;
    display: block;
} */

/* The colored overlay logo (white) */
/* .loader__logo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    filter: invert(100%) sepia(100%) saturate(0%) hue-rotate(288deg) brightness(102%) contrast(102%);
    clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%); /* Start hidden from top 
}
*/
.loader__bg-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 10px; /* Thinner progress bar */
    background-color: var(--brand-white);
    transform-origin: left;
    transform: scaleX(0);
}

.hover-link {
    display: inline-block;
    overflow: hidden;
    position: relative;
    color: inherit;
    text-decoration: none;
}
.hover-link__inner {
    display: flex;
    flex-direction: column;
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}
.hover-link:hover .hover-link__inner {
    transform: translateY(-50%);
}
.hover-link__text {
    display: flex;
    align-items: center;
    padding: 0.2em 0;
    color: var(--brand-black);
}
.hover-link__text.is--absolute {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
}

.btn-wrap {
    display: inline-flex;
    position: relative;
    z-index: 6;
}
.btn-custom {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 3.5rem;
    padding: 0 2rem;
    border-radius: 2rem;
    text-decoration: none;
    background: transparent;
    cursor: pointer;
    min-width: 10rem;
    border: none;
}
.btn-custom.btn-light {
    background-color: var(--brand-white);
    color: var(--brand-primary);
}
.btn-custom__bg {
    position: absolute;
    inset: 0;
    border: 1px solid var(--brand-primary);
    background-color: var(--brand-primary);
    border-radius: 0em 0.5em 0.5em 0em;
    transition: transform 0.7s cubic-bezier(0.625, 0.05, 0, 1);
    transform-style: preserve-3d;
    z-index: 1;
}
.btn-custom:hover .btn-custom__bg {
    transform: scale(0.95);
}
.btn-custom__circle-wrap {
    position: absolute;
    inset: 0;
    border-radius: 2rem;
    overflow: hidden;
    z-index: 2;
    transition: transform 0.7s cubic-bezier(0.625, 0.05, 0, 1);
}
.btn-custom:hover .btn-custom__circle-wrap {
    transform: scale(0.95);
}
.btn-custom__circle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    padding-top: 100%;
    background-color: rgba(10, 27, 27, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.7s cubic-bezier(0.625, 0.05, 0, 1);
    pointer-events: none;
}
.btn-custom:hover .btn-custom__circle {
    transform: translate(-50%, -50%) scale(1);
}
.btn-custom__text {
    position: relative;
    z-index: 3;
    color: var(--brand-white);
    font-weight: 500;
    text-transform: capitalize;
    display: flex;
    align-items: center;
    transition: color 0.4s ease;
}
.btn-light .btn-custom__text {
    color: var(--brand-primary);
}

/* --- NAVBAR & MOBILE MENU --- */
.navbar-brand img {
    height: 7rem;
    transition: filter 0.3s ease;
}

#navbar {
    transition: background-color 0.5s ease, padding 0.5s ease, box-shadow 0.5s ease;
    /* padding-top: 2rem !important; */
    padding-bottom: 2rem !important;
}

#navbar.scrolled {
    background-color: rgba(242, 239, 234, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 27, 27, 0.4);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: var(--brand-secondary);
    border-radius: 1.5rem;
    padding: 2rem 2.5rem 3rem 2.5rem;
    z-index: 1050;
    width: 250px;
    transform: scale(0.9);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    transform-origin: top right;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.mobile-menu.active {
    transform: scale(1);
    opacity: 1;
    visibility: visible;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    color: var(--brand-primary);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    font-weight: 500;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--brand-primary);
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.mobile-menu-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.mobile-menu-link {
    text-decoration: none;
    color: var(--brand-primary);
    font-size: 1.5rem;
    font-weight: 500;
    display: block;
    transition: opacity 0.3s ease;
}

.mobile-menu-link:hover {
    opacity: 0.7;
}

.mobile-menu-link.active {
    opacity: 0.4;
}

/* Custom toggle button styling matching edited-image_4.jpg */
.navbar-toggler-custom {
    z-index: 1060;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background-color: var(--brand-secondary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border: none;
    gap: 0.3rem;
    padding: 0;
}

.navbar-toggler-custom span {
    display: block;
    width: 40%;
    height: 0.125rem;
    background-color: var(--brand-primary);
    transition: transform 0.3s ease;
}

/* --- HERO --- */
.hero-video-container {
    position: relative;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--brand-primary); 
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    z-index: 0;
    object-fit: cover;
    filter: grayscale(100%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: rgba(24, 78, 74, 0.4); */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--brand-white);
    text-align: center;
}

.line-mask { overflow: hidden; }

.text-shadow-sm {
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}

/* Ensure wave is positioned correctly at the bottom of the viewport */
.hero-wave-wrapper {
    position: absolute;
    bottom: -5px; /* Align to exact bottom, avoiding subpixel gaps */
    left: 0;
    width: 100%;
    z-index: 3;
    line-height: 0; /* Remove extra space below inline SVG */
}

/* Adjusted the layout to prevent prominent green bar on reload */
#why-us {
    background-color: var(--brand-primary);
    position: relative;
    z-index: 2;
    padding-top: 2rem; /* Add padding instead of negative margin */
}

/* --- SECTION HEADERS --- */
.section-header-center {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header-center h2 {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--brand-primary);
    margin-bottom: 1rem;
}

.section-header-center h3 {
    font-family: '"Playfair Display"', Georgia, serif;
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 400;
    color: var(--brand-primary);
    line-height: 1.1;
}

/* --- CAROUSEL / SLIDER ("In Action") --- */
.image-carousel-section {
    background-color: var(--brand-white);
    padding: 5rem 0;
    overflow: hidden;
}

.swiper-container-action {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    height: 600px; /* Max height on desktop as requested */
    overflow: hidden;
}

@media (max-width: 991px) {
    .swiper-container-action {
        height: 50vw; /* Responsive height on smaller screens */
        min-height: 300px;
    }

    .navbar-extra {
        justify-content: end !important;
    }

    .fw-visual-wrap {
        flex-direction: column;
        padding: 0px !important;
    }
    .section-header-center {
        word-break: break-word;
    }
}

.swiper-slide-action {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 0.5rem;
}

.swiper-slide-action img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-controls-wrapper {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    position: relative;
}

.swiper-button-next-action,
.swiper-button-prev-action {
    background-color: var(--brand-secondary);
    color: var(--brand-primary);
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    /* Positioning relative to the wrapper, not absolute over the image */
    position: relative;
    margin: 0;
}

.swiper-button-next-action:hover,
.swiper-button-prev-action:hover {
    background-color: var(--brand-primary);
    color: var(--brand-white);
}

.swiper-button-next-action::after,
.swiper-button-prev-action::after {
    display: none; /* Hide default swiper icons */
}

/* --- FEATURED WORK --- */
.featured-work-container {
    position: relative;
    height: 80vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 100%;
    background-color: var(--brand-white); 
}

.fw-visual-wrap {
    display: flex;
    width: 100%;
    height: 100%;
    gap: 15px; 
    padding: 0 15px; 
}

.fw-item {
    flex: 1;
    position: relative;
    transition: flex 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    overflow: hidden;
    cursor: pointer;
    border-radius: 0.5rem;
    background-color: var(--brand-secondary); 
}

.fw-item.is--active {
    flex: 5; 
}

.fw-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: var(--brand-white); 
}

.fw-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1), filter 0.8s ease;
    filter: brightness(0.6) grayscale(20%);
    pointer-events: none; 
    filter: grayscale(100%)
}

.fw-media.main-img img {
        object-fit: contain; 
        padding: 2rem;
        filter: brightness(1) grayscale(0%); 
}

.fw-item.is--active .fw-media img:not(.main-img) {
    filter: brightness(1) grayscale(0%);
    transform: scale(1.05); 
}

.fw-media video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    z-index: 2;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.fw-item.is--active .fw-media video {
    opacity: 1;
}

.fw-text {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    color: var(--brand-black); 
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    pointer-events: none;
    z-index: 3;
}

.fw-item.is--active .fw-text {
    bottom: 2rem;
    left: 2rem;
    color: var(--brand-secondary); 
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.fw-item.is--active .fw-text h5 {
    font-family: PP-Editorial-New;
    color: var(--brand-secondary); 
}

.display-4 {
    font-family: PP-Editorial-New;
    color: var(--brand-secondary); 
    font-size: calc(1.475rem + 2.5vw);
}

.custom-cursor-el {
    position: fixed;
    top: 0;
    left: 0;
    width: 8rem;
    height: 8rem;
    background-color: var(--brand-primary);
    color: var(--brand-white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
    z-index: 100;
    transition: opacity 0.3s ease, transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    will-change: top, left, transform;
}

.featured-work-container:hover ~ .custom-cursor-el {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* --- THE CREW --- */
.crew-card {
    border: none;
    background: transparent;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.crew-img-wrap {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    width: 70%;
}

.crew-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    filter: grayscale(100%);
}

.crew-card:hover .crew-img {
    transform: scale(1.1);
    filter: grayscale(0%);
}

.crew-desc {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.crew-socials {
    margin-top: auto;
}

.crew-socials a {
    color: var(--brand-primary);
    font-size: 1.2rem;
    margin: 0 0.5rem;
    transition: opacity 0.3s ease;
}

.crew-socials a:hover {
    opacity: 0.7;
}

/* --- SERVICES --- */
.hover-lift {
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1), box-shadow 0.4s ease;
}
.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08) !important;
}
.service-card i {
    transition: transform 0.4s ease, color 0.4s ease;
}
.service-card:hover i {
    transform: scale(1.15);
    color: var(--brand-black) !important;
}
.z-2 { z-index: 2; }
.z-3 { z-index: 3; }

.services-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('image_130bb2.jpg'); /* Updated background image */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.15; 
    z-index: 0;
}

.service-card {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

/* --- FOOTER --- */
.spinning-badge {
    animation: spin 10s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}
.bounce-anim {
    animation: bounce 2s infinite ease-in-out;
}

.footer-bg {
    background-color: var(--brand-black);
    color: var(--brand-white);
    padding-top: 5rem;
    padding-bottom: 2rem;
}

.footer-border-top {
    border-top: 1px solid rgba(255,255,255,0.1);
}

.about-us__img {
    aspect-ratio: 16 / 9;
    position: relative;
    overflow: hidden;
    text-align: center;
    width: auto;
    display: flex;
    justify-content: center;
    justify-items: center;
    align-content: center;
    align-items: center;
}

.about-us__img-inner, .about-banner__inner {
    width: 100%;
    position: absolute;
    inset: 0%;
}

.founder__img-wrapper {
    aspect-ratio: 1;
    width: 35rem;
    margin-top: 6.5rem;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    overflow: hidden;
}

.team-member__img {
    width: 100%;
    height: 105%;
    position: absolute;
    inset: 0%;
}

.about-ticker__img {
    width: 100%;
    height: 110%;
    position: absolute;
    inset: 0%;
}

.background-skyline {
    position: absolute;
    bottom: 0px;
    width: 100%;
}