/*
Theme Name: Raio Verde
Theme URI: 
Author: Sanzza
Author URI: 
Description: A bespoke photographer theme for Raio Verde.
Version: 1.0.0
Text Domain: raio-verde
*/

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&family=Noto+Serif+Display:ital,wght@0,300;0,400;1,300;1,400&family=Google+Sans+Flex:wght@200;300;400&display=swap');

:root {
    /* Colors */
    --color-black: #111;
    --color-dark-bg: #222;
    --color-very-dark-bg: #1a1a1a;
    --color-white: #ffffff;
    --color-text-body: #333;
    --color-text-muted: #444;
    --color-light-grey: #f4f4f4;

    /* Typography */
    --font-primary: 'Google Sans Flex', sans-serif;
    --font-secondary: 'Noto Serif Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Layout */
    --layout-max-width: 1760px;
}

html {
    font-size: 16px;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

/* Basic Resets */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-body);
    background-color: var(--color-white);
    line-height: 1.6;
}

/* Hide scrollbar on desktop only to avoid mobile touch scrolling lockups */
@media (min-width: 1025px) {
    ::-webkit-scrollbar {
        display: none;
    }

    body {
        -ms-overflow-style: none;
        /* IE and Edge */
        scrollbar-width: none;
        /* Firefox */
    }
}

@media (max-width: 768px) {
    html {
        scroll-behavior: auto !important;
        /* Disable smooth scroll on mobile to prevent Chrome/Safari thread lockups */
    }
}

.site {
    overflow-x: clip;
    width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-secondary);
    font-weight: 300;
}

/* Add specialized typography classes here as requested */
.font-google-sans {
    font-family: var(--font-primary);
}

/* --------------------------------------------------------------------------
   Header & Navigation
-------------------------------------------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 2rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--color-white);
    transition: padding 0.3s ease, transform 0.4s ease, opacity 0.4s ease;
}

.site-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: transparent;
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}

/* Subpages Header Theme overrides (light page contexts) */
body.archive .site-header,
body.category .site-header,
body.single .site-header,
body.page:not(.home) .site-header,
body.error404 .site-header {
    color: var(--color-black);
}

body.menu-is-open .site-header {
    color: var(--color-white);
}

/* Ensure the header text/hamburger remains dark on internal pages when the menu is open (if not scrolled) */
body.archive.menu-is-open .site-header:not(.is-scrolled),
body.category.menu-is-open .site-header:not(.is-scrolled),
body.single.menu-is-open .site-header:not(.is-scrolled),
body.page:not(.home).menu-is-open .site-header:not(.is-scrolled),
body.error404.menu-is-open .site-header:not(.is-scrolled) {
    color: var(--color-black);
}

/* Hide header initially ONLY on the home page */
body.home .site-header {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-100%);
}

/* Show header when scrolled on the home page */
body.home .site-header.is-scrolled {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.site-header.is-scrolled {
    padding: 1.5rem 4rem;
}

.site-header.is-scrolled::before {
    background-color: rgba(26, 26, 26, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Remove header shadow when the menu is open to seamlessly fuse them */
body.menu-is-open .site-header::before {
    box-shadow: none;
}

.site-branding a {
    color: inherit;
    text-decoration: none;
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: 1.1rem;
    letter-spacing: 0.3em;
    position: relative;
    display: inline-flex;
}

.site-branding img.custom-logo {
    max-height: 40px;
    width: auto;
    object-fit: contain;
}

.site-branding a .logo-line {
    position: relative;
}

.site-branding a .logo-line::before {
    content: '';
    position: absolute;
    top: -8px;
    /* distance above the text */
    left: 0;
    right: 0.3em;
    /* account for letter-spacing */
    height: 1px;
    background-color: currentColor;
}

/* Default state: Hide dark logo, show light logo */
.site-branding .dark-logo {
    display: none;
}

.site-branding .light-logo {
    display: inline-block;
}

/* Internal pages (white background state): Show dark logo, hide light logo */
body.archive .site-header:not(.is-scrolled) .site-branding .light-logo,
body.category .site-header:not(.is-scrolled) .site-branding .light-logo,
body.single .site-header:not(.is-scrolled) .site-branding .light-logo,
body.page:not(.home) .site-header:not(.is-scrolled) .site-branding .light-logo,
body.error404 .site-header:not(.is-scrolled) .site-branding .light-logo {
    display: none;
}

body.archive .site-header:not(.is-scrolled) .site-branding .dark-logo,
body.category .site-header:not(.is-scrolled) .site-branding .dark-logo,
body.single .site-header:not(.is-scrolled) .site-branding .dark-logo,
body.page:not(.home) .site-header:not(.is-scrolled) .site-branding .dark-logo,
body.error404 .site-header:not(.is-scrolled) .site-branding .dark-logo {
    display: inline-block;
}

.menu-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
    /* Align to the right so it matches the menu perfectly */
    padding: 0;
    margin-left: 4vw;
    /* Space between links and hamburger */
    z-index: 200;
    /* Ensure it stays above the mobile overlay */
    color: inherit;
}

.menu-toggle .line {
    background-color: currentColor;
    height: 1px;
    display: block;
    transition: width 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
    /* Butter-smooth hamburger animations */
}

.menu-toggle .line-1 {
    width: 14px;
}

.menu-toggle .line-2 {
    width: 20px;
}

.menu-toggle .line-3 {
    width: 10px;
}


/* Animate Hamburger to X (Global) */
.menu-toggle.is-open .line-1 {
    transform: translateY(7px) rotate(45deg);
    width: 24px;
}

.menu-toggle.is-open .line-2 {
    opacity: 0;
}

.menu-toggle.is-open .line-3 {
    transform: translateY(-7px) rotate(-45deg);
    width: 24px;
}

.main-navigation {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    /* Align links to the right */
}

@media (min-width: 1025px) {
    .main-navigation .mobile-secondary-list {
        display: none !important;
    }
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 4.5vw;
    /* Responsive gap to match large layout spacing */
    margin: 0;
    padding: 0;
}

.main-navigation a {
    color: inherit;
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: lowercase;
    font-family: var(--font-body);
    font-weight: 300;
    letter-spacing: 0.5px;
    position: relative;
    display: inline-block;
}

.main-navigation a::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: currentColor;
    transition: width 0.3s ease;
}

.main-navigation a:hover::before,
.main-navigation li.current-menu-item>a::before,
.main-navigation li.current-menu-ancestor>a::before {
    width: 24px;
}

/* --------------------------------------------------------------------------
   Hero Section
-------------------------------------------------------------------------- */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background-color: var(--color-dark-bg);
    /* Fallback color */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Prevents scrolling past multiple sections at once */
}

.hero-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Add a dark overlay to make text readable */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    /* Adjust opacity as needed */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--color-white);
    padding: 0 2rem;
}

.hero-title {
    font-family: var(--font-primary);
    font-weight: 200;
    font-size: 56px;
    /* Exactly 56px as specified */
    line-height: 1;
    /* 100% line height */
    letter-spacing: 0;
    /* 0% spacing */
    margin: 0;
    text-transform: lowercase;
}

.hero-title em {
    font-family: var(--font-secondary);
    font-weight: 400;
    /* Noto Serif is weight 400 */
    font-style: italic;
}

/* --------------------------------------------------------------------------
   Utilities (DRY)
-------------------------------------------------------------------------- */
.bg-dark {
    background-color: var(--color-very-dark-bg);
    color: var(--color-white);
}

/* --------------------------------------------------------------------------
   Statement Section
-------------------------------------------------------------------------- */
.statement-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    /* Make it a full screen section like the hero */
    padding: 4rem;
    position: relative;
}

.statement-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.statement-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    font-size: clamp(2rem, 4vw, 56px);
    line-height: 1.2;
    text-transform: lowercase;
}

.statement-primary {
    font-family: var(--font-primary);
    font-weight: 200;
}

.statement-secondary-container {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
}

.statement-secondary {
    font-family: var(--font-secondary);
    font-weight: 400;
    font-style: italic;
}

.statement-action-link {
    margin-top: 1.5rem;
    transform: translateX(5vw);
}

.mobile-load-more-btn {
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    color: var(--color-black);
    padding: 0 0 2px 0;
    border-bottom: 1px solid rgba(17, 17, 17, 0.5);
    font-family: var(--font-body);
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    position: relative;
    transition: padding-left 0.4s cubic-bezier(0.76, 0, 0.24, 1), border-color 0.3s ease;
}

.mobile-load-more-btn:hover {
    border-color: var(--color-black);
    padding-left: 28px;
}

.mobile-load-more-btn .icon {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translate(-10px, -50%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.76, 0, 0.24, 1);
}

.mobile-load-more-btn:hover .icon {
    opacity: 1;
    transform: translate(0, -50%);
}

.mobile-load-more-btn .text-wrapper {
    position: relative;
    display: inline-block;
    overflow: hidden;
}

.mobile-load-more-btn .text-original {
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.76, 0, 0.24, 1);
}

.mobile-load-more-btn .text-wrapper::before {
    content: attr(data-text);
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.76, 0, 0.24, 1);
}

.mobile-load-more-btn:hover .text-original {
    transform: translateY(100%);
}

.mobile-load-more-btn:hover .text-wrapper::before {
    transform: translateY(100%);
}

.mobile-load-more-btn.is-loading {
    pointer-events: none;
    opacity: 0.5;
}

.action-link {
    font-family: var(--font-body);
    font-size: 14px;
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    padding-bottom: 2px;
    padding-left: 0;
    transition: padding-left 0.4s cubic-bezier(0.76, 0, 0.24, 1), border-color 0.3s ease;
    position: relative;
}

/* Expand touch target to at least 48px on mobile without altering visual layout */
.action-link::after {
    content: '';
    position: absolute;
    top: -12px;
    bottom: -12px;
    left: -12px;
    right: -12px;
}

.action-link:hover,
.action-link-trigger:hover .action-link {
    border-color: var(--color-white);
    padding-left: 28px;
}

.action-link .icon {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translate(-10px, -50%);
    opacity: 0;
    font-size: 18px;
    transition: all 0.4s cubic-bezier(0.76, 0, 0.24, 1);
}

.action-link:hover .icon,
.action-link-trigger:hover .action-link .icon {
    opacity: 1;
    transform: translate(0, -50%);
}

.action-link .text-wrapper {
    position: relative;
    display: inline-block;
    overflow: hidden;
}

.action-link:hover .text-wrapper,
.action-link-trigger:hover .action-link .text-wrapper {
    transform: translateX(0);
}

.action-link .text-original {
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.76, 0, 0.24, 1);
}

.action-link .text-wrapper::before {
    content: attr(data-text);
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.76, 0, 0.24, 1);
}

.action-link:hover .text-original,
.action-link-trigger:hover .action-link .text-original {
    transform: translateY(100%);
}

.action-link:hover .text-wrapper::before,
.action-link-trigger:hover .action-link .text-wrapper::before {
    transform: translateY(100%);
}

/* --------------------------------------------------------------------------
   Portfolio Gallery Section
-------------------------------------------------------------------------- */
.portfolio-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    display: block;
    height: 100vh;
    /* Immersive full-screen height */
    text-decoration: none;
}

/* Every 5th item spans full width to create the masonry pattern */
.portfolio-item:nth-child(5n) {
    grid-column: span 2;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

/* Gradient overlay to ensure text is always readable regardless of image */
.portfolio-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    background: linear-gradient(to top, var(--color-dark-bg) 0%, var(--color-white) 100%);
    mix-blend-mode: multiply;
    z-index: 1;
    pointer-events: none;
    opacity: 0.8;
    transition: opacity 0.4s ease;
}

.portfolio-item:hover::after {
    opacity: 1;
}

.portfolio-overlay {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    z-index: 2;
    color: var(--color-white);
    opacity: 0.8;
    transition: opacity 0.4s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

/* Customize the action-link for the portfolio gallery */
.portfolio-overlay .action-link {
    font-size: 12px;
    border-bottom: none;
}

/* --------------------------------------------------------------------------
   Portfolio Archive Page
-------------------------------------------------------------------------- */
.portfolio-archive-main {
    padding-top: 150px;
    /* Space for fixed header */
    background-color: var(--color-white);
}

.portfolio-filter-container {
    display: flex;
    justify-content: center;
    margin-bottom: 4rem;
}

.portfolio-filter {
    list-style: none;
    display: flex;
    gap: 3rem;
    padding: 0;
    margin: 0;
}

.portfolio-filter .filter-link {
    color: #999999;
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: lowercase;
    font-family: var(--font-body);
    font-weight: 300;
    letter-spacing: 0.5px;
    position: relative;
    display: inline-block;
    padding-top: 8px;
    /* Space for the top line */
}

.portfolio-filter .filter-link:hover,
.portfolio-filter .filter-link.active {
    color: var(--color-black);
}

.portfolio-filter .filter-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: currentColor;
    transition: width 0.3s ease;
}

.portfolio-filter .filter-link:hover::before,
.portfolio-filter .filter-link.active::before {
    width: 24px;
}

.portfolio-archive-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.portfolio-archive-gallery .portfolio-item {
    height: 33.33vw;
    /* Responsive square height */
    min-height: 350px;
    grid-column: auto !important;
    /* Force standard 1-cell placement to ensure clean 3x3 layout */
}

.portfolio-archive-gallery .portfolio-item.hidden {
    display: none;
}

.cta-archive-only {
    min-height: 50vh;
    padding: 8rem 4rem;
    background-color: var(--color-white);
}

.cta-archive-wrapper {
    gap: 0;
}

/* --------------------------------------------------------------------------
   Services & CTA Section
-------------------------------------------------------------------------- */
.services-cta-section {
    background-color: var(--color-light-grey);
    /* Light grey from mockup */
    color: var(--color-black);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6rem 4rem;
}

.services-cta-wrapper {
    max-width: var(--layout-max-width);
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8rem;
}

.cta-top {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cta-row {
    display: flex;
    align-items: center;
}

.cta-row-1 {
    justify-content: flex-start;
    gap: 4rem;
    padding-left: 10%;
    /* Stagger left */
}

.cta-row-2 {
    justify-content: flex-end;
    gap: 4rem;
    padding-right: 10%;
    /* Stagger right */
}

.cta-headline {
    font-family: var(--font-primary);
    font-size: clamp(3rem, 7vw, 7.5rem);
    font-weight: 200;
    line-height: 1;
    letter-spacing: -0.03em;
    margin: 0;
}

/* Action Links inside CTA */
.services-cta-section .action-link {
    color: var(--color-black);
    border-bottom: 1px solid rgba(17, 17, 17, 0.3);
}

.services-cta-section .action-link:hover,
.services-cta-section .action-link-trigger:hover .action-link {
    border-color: var(--color-black);
}

/* 3-Column Services Grid */
.cta-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    padding: 0 10%;
}

.service-block {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.service-title {
    font-family: var(--font-primary);
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.service-desc {
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text-muted);
    margin: 0;
}

/* --------------------------------------------------------------------------
   About Us Section
-------------------------------------------------------------------------- */
.about-us-section {
    min-height: 100vh;
    background-color: var(--color-white);
    /* White background */
    color: var(--color-black);
    display: flex;
    align-items: center;
    padding: 6rem 4rem;
    overflow-x: clip;
    /* Crucial for bleeding the image to the right */
}

.about-us-wrapper {
    max-width: var(--layout-max-width);
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 10% 1fr 37.5%;
    gap: 0;
    align-items: center;
}

.about-us-text {
    grid-column: 2 / 3;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-right: 4rem;
    margin-left: 0;
}

.about-title {
    font-family: var(--font-primary);
    font-size: clamp(3rem, 10vw, 8rem);
    /* Responsive fluid typography scaling */
    font-weight: 200;
    margin-top: 2rem;
    line-height: 1;
}

.serif-italic {
    font-family: var(--font-secondary);
    font-style: italic;
    font-weight: 400;
}

.about-desc {
    font-family: var(--font-body);
    font-size: clamp(1.15rem, 2vw, 1.875rem);
    /* Responsive scaling: 18.4px on mobile to 30px on desktop */
    font-weight: 300;
    line-height: 1.5;
    color: var(--color-text-muted);
    margin: 0;
    max-width: 95%;
    /* More horizontal space on mobile */
}

.about-link {
    margin-top: 1rem;
    align-self: flex-start;
    color: var(--color-black);
    border-bottom: 1px solid rgba(17, 17, 17, 0.3);
}

.about-link:hover,
.about-link-trigger:hover .about-link {
    border-color: var(--color-black);
}

.about-us-image {
    grid-column: 3 / 4;
    /* Starts on col 3 */
    width: calc(100% + max(4rem, (100vw - var(--layout-max-width)) / 2 + 4rem));
    /* Exact mathematical distance to the right edge of the screen */
    height: 100%;
    min-height: 600px;
    position: relative;
    overflow: hidden;
}

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

/* --------------------------------------------------------------------------
   Footer Section
-------------------------------------------------------------------------- */
.site-footer {
    height: auto;
    background-color: var(--color-white);
    color: var(--color-black);
    display: flex;
    flex-direction: column;
}

.footer-wrapper {
    width: 100%;
    height: auto;
    padding: 6rem 4rem 2.5rem 4rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}

/* Big Links Middle */
.footer-big-links {
    flex-grow: 1;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
}

.footer-link {
    font-family: var(--font-primary);
    font-size: 56px;
    font-weight: 300;
    line-height: 1;
    color: var(--color-black);
    text-decoration: none;
    letter-spacing: 0;
    text-transform: lowercase;
    position: relative;
    display: inline-block;
}

.footer-link::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: currentColor;
    transition: width 0.3s ease;
}

.footer-link:hover::before {
    width: 48px;
}

.footer-link:nth-child(1) {
    justify-self: start;
    text-align: left;
}

.footer-link:nth-child(2) {
    justify-self: center;
    text-align: center;
}

.footer-link:nth-child(3) {
    justify-self: end;
    text-align: right;
}

/* Institutional / EU Funding Bar */
.footer-institutional {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 0;
    margin: 0;
}

.footer-institutional-text {
    font-family: var(--font-body);
    font-size: 0.6rem;
    line-height: 1.4;
    color: var(--color-text-muted);
    max-width: 440px;
    margin: 0;
}

.footer-institutional-logos {
    height: 40px;
    width: auto;
    object-fit: contain;
}

/* Bottom Grid Info */
.footer-bottom-info {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 1rem;
    align-items: flex-end;
}

.footer-col {
    font-family: var(--font-body);
    font-size: 0.84rem;
    color: var(--color-black);
    line-height: 1.4;
}

.footer-col a {
    color: var(--color-black);
    text-decoration: none;
    position: relative;
    display: inline-block;
}

.footer-col a::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: currentColor;
    transition: width 0.3s ease;
}

.footer-col a:hover::before {
    width: 16px;
}

.footer-col-email {
    grid-column: 1 / 2;
}

.footer-col-social {
    grid-column: 2 / 3;
}

.footer-col-location {
    grid-column: 3 / 6;
}

.footer-col-copyright {
    grid-column: 6 / 9;
    text-align: right;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {

    .site-branding {
        z-index: 200;
        position: relative;
    }

    .menu-toggle {
        display: flex;
    }

    .main-navigation {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--color-black);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 150;
        opacity: 0;
        visibility: hidden;
        clip-path: circle(0% at 100% 0%);
        transition: opacity 0.6s ease, visibility 0.6s ease, clip-path 0.8s cubic-bezier(0.77, 0, 0.175, 1);
    }

    .main-navigation.is-open {
        opacity: 1;
        visibility: visible;
        clip-path: circle(150% at 100% 0%);
    }

    .main-navigation .mobile-menu-inner {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 3rem;
        width: 100%;
        padding-top: 4rem;
    }

    .main-navigation ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        width: 100%;
        padding: 0 2rem;
        margin: 0;
        box-sizing: border-box;
    }

    .main-navigation .mobile-primary-list a {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
        text-align: left;
        width: 100%;
        font-weight: 300;
        color: var(--color-white);
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.4s ease, transform 0.4s ease;
    }

    .main-navigation .mobile-secondary-list {
        gap: 1.25rem;
        padding-top: 2rem;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        width: 60%;
        margin-left: 2rem;
        padding-left: 0;
    }

    .main-navigation .mobile-secondary-list a {
        font-size: 1.25rem;
        text-align: left;
        width: 100%;
        font-weight: 300;
        color: var(--color-white);
        opacity: 0;
        text-transform: lowercase;
        transform: translateY(20px);
        transition: opacity 0.4s ease, transform 0.4s ease;
    }

    .main-navigation.is-open .mobile-primary-list a {
        opacity: 1;
        transform: translateY(0);
    }

    .main-navigation.is-open .mobile-secondary-list a {
        opacity: 0.7;
        transform: translateY(0);
    }

    .main-navigation.is-open .mobile-secondary-list a:hover {
        opacity: 1;
    }

    /* Stagger link animations */
    .main-navigation.is-open li:nth-child(1) a {
        transition-delay: 0.3s;
    }

    .main-navigation.is-open li:nth-child(2) a {
        transition-delay: 0.4s;
    }

    .main-navigation.is-open li:nth-child(3) a {
        transition-delay: 0.5s;
    }

    .main-navigation.is-open li:nth-child(4) a {
        transition-delay: 0.6s;
    }

    .main-navigation.is-open li:nth-child(5) a {
        transition-delay: 0.7s;
    }



    .cta-row-1,
    .cta-row-2 {
        padding: 0;
        gap: 2rem;
    }

    .cta-services-grid {
        padding: 0;
        gap: 2rem;
    }

    .about-us-wrapper {
        display: grid;
        grid-template-columns: repeat(8, 1fr);
        gap: 2rem;
    }

    .about-us-text {
        grid-column: 1 / 5;
        padding-right: 0;
        margin-left: 0;
    }

    .about-us-image {
        grid-column: 5 / 9;
        width: calc(100% + 4rem);
        /* Bleed to right edge based on padding */
        min-height: 400px;
    }

    .footer-wrapper {
        padding: 4rem 2rem 2rem 2rem;
        gap: 2.5rem;
    }

    .footer-institutional {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 1.5rem;
        padding: 0;
    }

    .footer-institutional-text {
        max-width: 100%;
        text-align: left;
    }

    .footer-institutional-logos {
        max-width: 100%;
        height: auto;
    }

    .footer-big-links {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        gap: 2rem;
    }

    .footer-link {
        text-align: left !important;
        align-self: flex-start !important;
    }

    .footer-bottom-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: left;
    }

    .footer-col-email,
    .footer-col-social,
    .footer-col-location,
    .footer-col-copyright {
        grid-column: 1 / -1;
        text-align: left;
    }
}

@media (max-width: 768px) {

    .about-us-section,
    .services-cta-section {
        padding: 4rem 2rem;
        min-height: auto;
        /* Allow natural flow on mobile */
    }



    .cta-top {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        row-gap: 2rem !important;
        width: 100% !important;
    }

    .cta-row-1,
    .cta-row-2 {
        display: contents !important;
    }

    .cta-row-1 .cta-headline {
        grid-column: 1 / -1 !important;
        text-align: left !important;
        order: 1 !important;
    }

    .cta-row-2 .cta-headline {
        grid-column: 1 / -1 !important;
        text-align: right !important;
        order: 2 !important;
    }

    .cta-link-right {
        grid-column: 1 !important;
        justify-self: start !important;
        order: 3 !important;
    }

    .cta-link-right-outside {
        grid-column: 2 !important;
        justify-self: end !important;
        order: 4 !important;
    }

    .cta-services-grid {
        grid-template-columns: 1fr;
    }


    .portfolio-archive-section {
        padding: 0 !important;
        margin: 0 !important;
    }

    .portfolio-archive-gallery {
        display: grid !important;
        gap: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100vw !important;
    }

    .portfolio-item,
    .portfolio-item:nth-child(5n) {
        flex: none !important;
        scroll-snap-align: none !important;
        height: 50vh !important;
        aspect-ratio: auto !important;
        grid-column: span 1 !important;
        display: block !important;
        position: relative !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    .portfolio-archive-gallery .portfolio-item img {
        height: 50vh !important;
        width: 100% !important;
        object-fit: cover !important;
        border-radius: 0 !important;
    }

    .portfolio-archive-gallery .portfolio-overlay {
        display: block !important;
        opacity: 1 !important;
        position: absolute !important;
        bottom: 2rem !important;
        left: 2rem !important;
        z-index: 2 !important;
        pointer-events: none !important;
    }

    .portfolio-archive-gallery .portfolio-action {
        padding-left: 28px !important;
    }

    .portfolio-archive-gallery .portfolio-action .icon {
        opacity: 1 !important;
        transform: translate(0, -50%) !important;
    }

    .portfolio-archive-gallery .portfolio-item::after {
        display: block !important;
        opacity: 0.85 !important;
        content: '' !important;
        position: absolute !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        top: 0 !important;
        background: linear-gradient(to top, var(--color-dark-bg) 0%, var(--color-white) 100%) !important;
        mix-blend-mode: multiply !important;
        z-index: 1 !important;
    }

    .portfolio-meta-mobile {
        display: none !important;
    }

    .portfolio-filter-container {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 2.5rem;
        padding: 0 1.5rem;
        width: 100%;
    }

    .portfolio-filter {
        display: flex;
        flex-wrap: wrap;
        gap: 0.85rem 1.25rem;
        padding: 0 !important;
        margin: 0;
        width: 100%;
        border-bottom: none !important;
        justify-content: flex-start !important;
    }

    .portfolio-filter .filter-link {
        padding: 8px 0 0 0 !important;
        background-color: transparent !important;
        border-radius: 0 !important;
        color: #999999 !important;
        font-size: 0.95rem !important;
        text-transform: lowercase !important;
        font-weight: 300;
        position: relative !important;
        transition: color 0.25s ease;
        display: inline-block !important;
    }

    .portfolio-filter .filter-link.active {
        color: var(--color-black) !important;
        font-weight: 400 !important;
        background-color: transparent !important;
    }

    .cta-archive-only {
        padding: 4rem 2rem;
        min-height: auto;
    }

    .portfolio-load-more-container {
        display: flex;
        justify-content: center;
        margin-top: 4rem;
        margin-bottom: 2rem;
    }



    .site-header,
    .site-header.is-scrolled {
        padding: 1.5rem 2rem;
    }

    .hero-section::before {
        background: rgba(0, 0, 0, 0.45);
        /* Increase text readability on mobile overlay */
    }

    .statement-section {
        padding: 4rem 2rem;
        min-height: 100vh;
        min-height: 100dvh;
    }

    .statement-title {
        text-align: center;
    }

    .statement-secondary-container {
        align-items: center;
    }

    .statement-action-link {
        transform: translateX(0);
        align-self: center;
    }
}

@media (max-width: 1024px) {
    body.menu-is-open {
        overflow: hidden !important;
    }
}

/* --------------------------------------------------------------------------
   Desktop Side Menu Dropdown Panel
   -------------------------------------------------------------------------- */
.desktop-side-menu {
    position: absolute;
    top: 100%;
    /* Perfectly positioned exactly at the bottom of the header */
    right: 0;
    /* Glued to the absolute right corner of the screen */
    width: 280px;
    background-color: rgba(26, 26, 26, 0.4);
    /* Matches header */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 150;
    padding: 2.2rem;
    border: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: none;
    /* Hidden on mobile */
}

@media (min-width: 1025px) {
    .desktop-side-menu {
        display: block;
    }
}

body.menu-is-open .desktop-side-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

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

.side-menu-nav li {
    margin: 0;
    padding: 0;
}

.side-menu-nav a {
    color: var(--color-white);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    display: inline-block;
    position: relative;
}

.side-menu-nav a::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: currentColor;
    transition: width 0.3s ease;
}

.side-menu-nav a:hover {
    opacity: 1;
}

.side-menu-nav a:hover::before {
    width: 24px;
}

.side-menu-separator {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.12);
    margin: 1.5rem 0;
}

.side-menu-secondary-list a {
    text-transform: lowercase;
    /* Matches style in footer */
}

/* Subpages Dropdown Menu Theme overrides (light page contexts) */
body.archive .desktop-side-menu,
body.category .desktop-side-menu,
body.single .desktop-side-menu,
body.page:not(.home) .desktop-side-menu,
body.error404 .desktop-side-menu {
    background-color: rgba(255, 255, 255, 0.9);
}

body.archive .side-menu-nav a,
body.category .side-menu-nav a,
body.single .side-menu-nav a,
body.page:not(.home) .side-menu-nav a,
body.error404 .side-menu-nav a {
    color: var(--color-black);
}

body.archive .side-menu-separator,
body.category .side-menu-separator,
body.single .side-menu-separator,
body.page:not(.home) .side-menu-separator,
body.error404 .side-menu-separator {
    background-color: rgba(0, 0, 0, 0.12);
}

/* When the header is scrolled, revert the menu back to dark/transparent to match */
body.archive .site-header.is-scrolled .desktop-side-menu,
body.category .site-header.is-scrolled .desktop-side-menu,
body.single .site-header.is-scrolled .desktop-side-menu,
body.page:not(.home) .site-header.is-scrolled .desktop-side-menu,
body.error404 .site-header.is-scrolled .desktop-side-menu {
    background-color: rgba(26, 26, 26, 0.4);
}

body.archive .site-header.is-scrolled .side-menu-nav a,
body.category .site-header.is-scrolled .side-menu-nav a,
body.single .site-header.is-scrolled .side-menu-nav a,
body.page:not(.home) .site-header.is-scrolled .side-menu-nav a,
body.error404 .site-header.is-scrolled .side-menu-nav a {
    color: var(--color-white);
}

body.archive .site-header.is-scrolled .side-menu-separator,
body.category .site-header.is-scrolled .side-menu-separator,
body.single .site-header.is-scrolled .side-menu-separator,
body.page:not(.home) .site-header.is-scrolled .side-menu-separator,
body.error404 .site-header.is-scrolled .side-menu-separator {
    background-color: rgba(255, 255, 255, 0.12);
}

/* Also ensure the main header text reverts to white when scrolled on internal pages */
body.archive .site-header.is-scrolled,
body.category .site-header.is-scrolled,
body.single .site-header.is-scrolled,
body.page:not(.home) .site-header.is-scrolled,
body.error404 .site-header.is-scrolled {
    color: var(--color-white);
}

/* --------------------------------------------------------------------------
   About Us Page Template Styles
-------------------------------------------------------------------------- */
.about-page-main {
    padding-top: 150px;
    background-color: var(--color-white);
    overflow-x: clip;
}

/* Section 1: Hero */
.about-hero-section {
    padding: 4rem 4rem 0 4rem;
}

.about-hero-wrapper {
    max-width: var(--layout-max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 6rem;
    align-items: center;
}

.about-hero-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.about-hero-title {
    font-family: var(--font-primary);
    font-size: clamp(3rem, 8vw, 6.5rem);
    font-weight: 200;
    line-height: 0.95;
    letter-spacing: -0.02em;
    margin: 0;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
}

.about-hero-title .title-line-1 {
    display: block;
}

.about-hero-title .title-line-2 {
    display: block;
}

.about-hero-title em {
    font-family: var(--font-secondary);
    font-style: italic;
    font-weight: 400;
    text-transform: uppercase;
}

.about-hero-text {
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-text-body);
    max-width: 540px;
}

.about-hero-text p {
    margin-bottom: 1.5rem;
}

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

.about-hero-media {
    width: 100%;
}

.about-hero-img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    display: block;
}

/* Section 2: What */
.about-what-section {
    background-color: var(--color-white);
    padding: 8rem 4rem 0 4rem;
}

.about-what-wrapper {
    background-color: var(--color-light-grey);
    padding: 8rem 0;
    max-width: var(--layout-max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    column-gap: 2rem;
}

.about-what-content {
    grid-column: 1 / 6;
    padding-left: 9rem;
}

.about-what-subtitle {
    display: block;
    font-family: var(--font-primary);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 300;
    line-height: 1.1;
    color: var(--color-black);
    margin-bottom: 0;
}

.about-what-title {
    font-family: var(--font-secondary);
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.2;
    color: var(--color-black);
    margin-bottom: 2rem;
}

.about-what-text {
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--color-text-body);
	max-width:760px;
}

/* Section 3: Separator */
.about-separator-section {
    width: 100%;
}

.about-separator-img {
    width: 100%;
    height: 70vh;
    min-height: 880px;
    object-fit: cover;
    display: block;
}

/* Section 4: How */
.about-how-section {
    padding: 8rem 4rem;
}

.about-how-wrapper {
    max-width: var(--layout-max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.about-how-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0rem 4rem 4rem 4rem;
}

.about-how-heading {
    font-family: var(--font-primary);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 200;
    line-height: 1.1;
    display: flex;
    flex-direction: column;
    margin: 0;
}

.about-how-heading .how-sub {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 300;
}

.about-how-heading .how-title {
    margin-top: -0.2rem;
}

.about-how-text {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-muted);
    max-width: 550px;
}

.about-how-text p {
    margin-bottom: 1.5rem;
}

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

/* Section 5: Projects */
.about-projects-section {
    padding: 8rem 4rem;
    position: relative;
}

.about-projects-wrapper {
    position: relative;
    z-index: 1;
    max-width: var(--layout-max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: stretch;
}

.about-projects-media {
    width: 100%;
}

.about-projects-img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    display: block;
}

.about-projects-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
	align-items: center;
    background-color: var(--color-very-dark-bg);
    padding: 4rem;
}

.about-projects-title {
    font-family: var(--font-primary);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 200;
    line-height: 1.1;
    margin-top: 0;
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    color: var(--color-white);
	width: 100%;
	max-width: 560px;
}

.about-projects-title .title-line-1 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 300;
}

.about-projects-title .title-line-2 {
    margin-top: -0.2rem;
}

.about-projects-text {
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    max-width: 560px;
}

.about-projects-text p {
    margin-bottom: 1.5rem;
}

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

/* Section 6: The Bond */
.about-bond-section {
    padding: 8rem 4rem;
}

.about-bond-wrapper {
    max-width: var(--layout-max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    padding-left: 10%;
    gap: 2rem;
}

.about-bond-heading {
    font-family: var(--font-primary);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 200;
    line-height: 1.1;
    display: flex;
    flex-direction: column;
    margin: 0;
}

.about-bond-heading .bond-title-1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 300;
}

.about-bond-heading .bond-title-2 {
    margin-top: -0.2rem;
}

.about-bond-text {
    max-width: 600px;
    display: block;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-body);
}

.about-bond-text p {
    margin-bottom: 1.5rem;
}

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

/* Section 7: CTA */
.about-cta-section {
    background-color: var(--color-light-grey);
    padding: 8rem 4rem;
    color: var(--color-black);
}



/* --------------------------------------------------------------------------
   Responsive Media Queries for About Page
-------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .about-page-main {
        padding-top: 100px;
    }

    .about-hero-section,
    .about-what-section,
    .about-how-section,
    .about-projects-section,
    .about-bond-section,
    .about-cta-section {
        padding: 5rem 4rem;
    }

    section.about-what-section {
        padding-bottom: 0;
    }

    .about-hero-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-hero-media {
        order: -1;
        /* Display image above text on mobile */
    }

    .about-hero-img {
        aspect-ratio: 16 / 9;
    }

    .about-separator-img {
        height: 45vh;
        min-height: 300px;
    }

    .about-what-wrapper {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        padding: 4rem 2rem;
    }

    .about-what-content {
        padding-left: 0;
    }

    .about-how-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-how-left {
        padding: 0;
    }

    .about-projects-section {
        background-color: var(--color-very-dark-bg);
        padding-bottom: 4rem;
    }

    .about-projects-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-projects-content {
        background-color: transparent;
        padding: 0;
    }

    .about-bond-wrapper {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        padding-left: 0;
    }

    .about-bond-heading,
    .about-bond-text {
        grid-column: auto;
    }
}

@media (max-width: 768px) {
    .about-hero-section,
    .about-what-section,
    .about-how-section,
    .about-projects-section,
    .about-bond-section,
    .about-cta-section {
        padding: 5rem 2rem;
    }
}

/* --------------------------------------------------------------------------
   Contact Page Template Styles
-------------------------------------------------------------------------- */
.contact-page-main {
    padding-top: 150px;
    background-color: var(--color-white);
}

.contact-page-wrapper {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    min-height: calc(100vh - 150px);
    width: 100%;
    padding: 0 4rem 4rem 4rem;
}

/* Left Panel */
.contact-left-panel {
    padding: 6rem 8%;
    display: flex;
    align-items: center;
}

.contact-panel-content {
    max-width: 620px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-title {
    font-family: var(--font-primary);
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    font-weight: 200;
    line-height: 1.05;
    letter-spacing: -0.01em;
    margin: 0;
    display: flex;
    flex-direction: column;
    color: var(--color-white);
}

.contact-title .title-line-1 {
    display: block;
}

.contact-title .title-line-2 {
    display: block;
}

.contact-desc {
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.contact-info-row {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem 3rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.contact-info-row .info-item span {
    color: var(--color-white);
    opacity: 1;
}

.contact-info-row .info-item a {
    color: var(--color-white);
    text-decoration: none;
    opacity: 1;
    padding-top: 8px;
    padding-bottom: 0;
    position: relative;
    display: inline-block;
    border-bottom: none;
    transition: opacity 0.3s ease;
}

.contact-info-row .info-item a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-white);
    transition: width 0.3s cubic-bezier(0.76, 0, 0.24, 1);
}

.contact-info-row .info-item a:hover::before {
    width: 24px;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
}

.contact-form .form-row {
    width: 100%;
}

.contact-form .flex-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.contact-form .form-group {
    display: flex;
    flex-direction: column;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 1.1rem 1.3rem;
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 300;
    width: 100%;
    transition: border-color 0.3s ease;
    border-radius: 0;
    -webkit-appearance: none;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-white);
}

.contact-form ::placeholder {
    color: rgba(255, 255, 255, 0.35);
    text-transform: lowercase;
    opacity: 1;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    margin-top: 0.5rem;
}

/* Consent Checkbox Custom Styling */
.consent-container {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.6);
    user-select: none;
    line-height: 1.4;
    max-width: 100%;
}

.consent-container a.privacy-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: color 0.3s ease, border-color 0.3s ease;
}

.consent-container a.privacy-link:hover {
    color: var(--color-white);
    border-bottom-color: var(--color-white);
}

.consent-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.consent-container .checkmark {
    height: 16px;
    width: 16px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    display: inline-block;
    flex-shrink: 0;
    position: relative;
    transition: all 0.3s ease;
}

.consent-container:hover input~.checkmark {
    border-color: var(--color-white);
}

.consent-container input:checked~.checkmark {
    background-color: var(--color-white);
    border-color: var(--color-white);
}

.consent-container .checkmark::after {
    content: "";
    position: absolute;
    display: none;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid var(--color-black);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.consent-container input:checked~.checkmark::after {
    display: block;
}

/* Form Action Button (reusing animation style of theme) */
.contact-submit-btn {
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    color: var(--color-white);
    padding: 0 0 2px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    font-family: var(--font-body);
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    position: relative;
    transition: padding-left 0.4s cubic-bezier(0.76, 0, 0.24, 1), border-color 0.3s ease;
}

.contact-submit-btn:hover {
    border-color: var(--color-white);
    padding-left: 28px;
}

.contact-submit-btn .icon {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translate(-10px, -50%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.76, 0, 0.24, 1);
}

.contact-submit-btn:hover .icon {
    opacity: 1;
    transform: translate(0, -50%);
}

.contact-submit-btn .text-wrapper {
    position: relative;
    display: inline-block;
    overflow: hidden;
}

.contact-submit-btn .text-original {
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.76, 0, 0.24, 1);
}

.contact-submit-btn .text-wrapper::before {
    content: attr(data-text);
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.76, 0, 0.24, 1);
}

.contact-submit-btn:hover .text-original {
    transform: translateY(100%);
}

.contact-submit-btn:hover .text-wrapper::before {
    transform: translateY(100%);
}

/* Alerts styling */
.contact-alert {
    padding: 1.2rem 1.5rem;
    border: 1px solid;
    margin-bottom: 2rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 300;
}

.contact-alert-success {
    background: rgba(46, 204, 113, 0.1);
    border-color: #2ecc71;
    color: #2ecc71;
}

.contact-alert-error {
    background: rgba(231, 76, 60, 0.1);
    border-color: #e74c3c;
    color: #e74c3c;
}

/* Right Panel */
.contact-right-panel {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
}

.contact-visual-img {
    display: none;
}

/* --------------------------------------------------------------------------
   Responsive Media Queries for Contact Page
-------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .contact-page-wrapper {
        grid-template-columns: 1fr;
        padding: 0 2rem 2rem 2rem;
    }

    .contact-left-panel {
        padding: 5rem 6%;
    }

    .contact-right-panel {
        height: 60vh;
        min-height: 400px;
    }
}

@media (max-width: 768px) {
    .contact-page-main {
        padding-top: 100px;
    }

    .contact-left-panel {
        padding: 4rem 2rem;
    }

    .contact-panel-content {
        gap: 2.5rem;
    }

    .contact-info-row {
        flex-direction: column;
        gap: 1.2rem;
    }

    .contact-form .flex-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-form .form-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }

    .consent-container {
        max-width: 100%;
    }

    .contact-right-panel {
        height: 50vh;
        min-height: 300px;
    }
}

/* --------------------------------------------------------------------------
   Privacy & Cookies Page Template Styles
-------------------------------------------------------------------------- */
.privacy-page-main {
    padding-top: 150px;
    background-color: var(--color-white);
    overflow-x: clip;
}

.privacy-page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 4rem 8rem 4rem;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    column-gap: 2rem;
}

.privacy-header,
.privacy-content {
    grid-column: 1 / -1;
}

.privacy-header {
    margin-bottom: 4rem;
}

.privacy-title {
    font-family: var(--font-primary);
    font-size: clamp(3rem, 8vw, 3.5rem);
    font-weight: 200;
    line-height: 0.95;
    letter-spacing: -0.02em;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.privacy-title .title-line-1 {
    display: block;
}

.privacy-title .title-line-2 {
    display: block;
}

.privacy-title .serif-italic {
    font-family: var(--font-secondary);
    font-style: italic;
    font-weight: 400;
    text-transform: lowercase;
}

.privacy-content {
    width: auto;
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--color-text-body);
}

.privacy-content p {
    margin-bottom: 2rem;
}

.privacy-content h2 {
    font-family: var(--font-primary);
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.4;
    margin-top: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-black);
}

/* Bullet list styling */
.privacy-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2.5rem 0;
}

.privacy-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.privacy-list li::before {
    content: "•";
    position: absolute;
    left: 0.5rem;
    top: 0;
    font-size: 1.2rem;
    color: var(--color-black);
}

.privacy-list li strong {
    font-weight: 600;
    color: var(--color-black);
}

/* Links (like email) */
.privacy-content a {
    color: var(--color-black);
    text-decoration: none;
    border-bottom: 1px solid rgba(17, 17, 17, 0.3);
    transition: border-color 0.3s ease;
}

.privacy-content a:hover {
    border-bottom-color: var(--color-black);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .privacy-page-main {
        padding-top: 100px;
    }

    .privacy-page-wrapper {
        display: block;
        padding: 4rem 2rem 6rem 2rem;
    }

    .privacy-header {
        margin-bottom: 3rem;
    }

    .privacy-content h2 {
        margin-top: 2.5rem;
        margin-bottom: 1rem;
    }

    .privacy-content p {
        margin-bottom: 1.5rem;
    }
}

/* Lazy Loading Styles */
.portfolio-item.lazy-loaded {
    opacity: 0;
    transform: translateY(45px);
    animation: fadeInUpPortfolio 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInUpPortfolio {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Snappy Grid Filtering Transitions */
.portfolio-archive-gallery {
    transition: min-height 0.35s ease;
}

.portfolio-archive-gallery .portfolio-item {
    transition: opacity 0.35s cubic-bezier(0.76, 0, 0.24, 1), transform 0.35s cubic-bezier(0.76, 0, 0.24, 1);
    opacity: 1;
    transform: translateY(0) scale(1);
}

.portfolio-archive-gallery.is-filtering .portfolio-item {
    opacity: 0;
    transform: translateY(15px) scale(0.97);
}

/* Load More Container (Desktop hidden) */
.portfolio-load-more-container {
    display: none;
}

/* Mobile metadata block (Desktop hidden) */
.portfolio-meta-mobile {
    display: none;
}

/* Active filter selection indicator (Desktop hidden) */
.active-filter-indicator {
    display: none;
}

/* --------------------------------------------------------------------------
   404 Error Page
-------------------------------------------------------------------------- */
.error-404-main {
    background-color: #EEEEEE;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 100px;
}

.error-404-section {
    width: 100%;
}

.error-404-wrapper {
    max-width: var(--layout-max-width);
    margin: 0 auto;
    padding: 0 4rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.error-404-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    column-gap: 2rem;
    align-items: end;
}

.error-404-row.top-row .error-title {
    grid-column: 2 / 6;
    margin: 0;
    font-family: var(--font-primary);
    font-size: clamp(3.5rem, 7vw, 7rem);
    font-weight: 300;
    color: var(--color-black);
    line-height: 0.9;
    letter-spacing: -0.02em;
}

.error-404-row.top-row .link-wrapper {
    grid-column: 6 / 8;
    padding-bottom: 0.5rem;
}

.error-404-row.bottom-row .link-wrapper {
    grid-column: 3 / 4;
    padding-bottom: 0.5rem;
}

.error-404-row.bottom-row .error-subtitle {
    grid-column: 4 / 8;
    margin: 0;
    font-family: var(--font-primary);
    font-size: clamp(3.5rem, 7vw, 7rem);
    font-weight: 300;
    color: var(--color-black);
    line-height: 0.9;
    letter-spacing: -0.02em;
}

.error-404-row .action-link {
    color: var(--color-black);
    border-bottom-color: rgba(17, 17, 17, 0.5);
}

.error-404-row .action-link:hover {
    border-bottom-color: var(--color-black);
}

/* Mobile Adjustments */
@media screen and (max-width: 1024px) {
    .error-404-wrapper {
        padding: 0 2rem;
    }

    .error-404-row {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
    }

    .error-404-row.bottom-row {
        flex-direction: column-reverse;
        margin-top: 1.5rem;
    }
}

/* --------------------------------------------------------------------------
   Cookie Banner
-------------------------------------------------------------------------- */
.rv-cookie-banner {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 9999;
    background-color: var(--color-black);
    color: var(--color-white);
    padding: 1.5rem 2rem;
    border-radius: 2px;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transform: translateY(150%);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.rv-cookie-banner.is-visible {
    transform: translateY(0);
}

.cookie-banner-content p {
    font-family: var(--font-body);
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
}

.cookie-banner-content a {
    color: var(--color-white);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.3s ease;
}

.cookie-banner-content a:hover {
    color: rgba(255, 255, 255, 0.6);
}

.cookie-banner-actions {
    display: flex;
    gap: 1rem;
}

.cookie-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--color-white);
    padding: 0.6rem 1.2rem;
    font-family: var(--font-body);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.cookie-btn:hover {
    border-color: var(--color-white);
    background-color: rgba(255, 255, 255, 0.05);
}

.cookie-btn.cookie-accept {
    background-color: var(--color-white);
    color: var(--color-black);
    border-color: var(--color-white);
}

.cookie-btn.cookie-accept:hover {
    background-color: transparent;
    color: var(--color-white);
}

@media (max-width: 768px) {
    .rv-cookie-banner {
        bottom: 0;
        left: 0;
        right: 0;
        max-width: 100%;
        border-radius: 0;
        padding: 2rem;
    }
}

/* --- Tablet & Mobile Overrides --- */
.home-portfolio-load-more {
    display: none;
    justify-content: center;
    padding: 3rem 0;
    width: 100%;
}

@media (max-width: 1024px) {

    .portfolio-gallery,
    .portfolio-archive-gallery {
        grid-template-columns: 1fr !important;
    }

    .portfolio-item,
    .portfolio-item:nth-child(5n),
    .portfolio-archive-gallery .portfolio-item img {
        height: 50vh !important;
        width: 100% !important;
    }

    /* Hide items after 4th on mobile/tablet */
    .portfolio-gallery:not(.is-expanded) .portfolio-item:nth-child(n+5) {
        display: none !important;
    }

    /* Show load more button */
    .home-portfolio-load-more {
        display: flex;
    }
}

/* Mobile About Us Stack */
@media (max-width: 600px) {
    .about-us-wrapper {
        display: flex;
        flex-direction: column-reverse;
        gap: 2rem;
    }

    .about-us-image {
        width: 100%;
        min-height: 300px;
    }

    .about-us-text {
        padding-right: 0;
        margin-left: 0;
    }
}

/* --------------------------------------------------------------------------
   Single Portfolio Template Styles
-------------------------------------------------------------------------- */
.single-portfolio .portfolio-header {
    background-color: var(--color-white);
    padding: 100px 4rem 2rem;
}

.portfolio-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.portfolio-main-title {
    font-family: var(--font-primary);
    font-size: 32px;
    font-weight: 400;
    margin: 0;
}

.portfolio-header-label {
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 300;
    text-transform: lowercase;
}

/* 1. Top Image Grid */
.portfolio-top-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: clamp(400px, 60vw, 880px);
    gap: 0;
    margin-top: 56px; /* offset for 56px fixed header */
}

.top-img {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.top-img-1 { grid-column: span 2; }
.top-img-2 { grid-column: span 1; }
.top-img-3 { grid-column: span 1; }
.top-img-4 { grid-column: span 2; }

/* 2. Project Info Section */
.portfolio-info-section {
    padding: 6rem 4rem;
    background-color: var(--color-white);
}

.portfolio-info-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.portfolio-subtitle {
    margin: 0 0 2rem 0;
    font-size: 48px;
    line-height: 1.1;
    font-weight: 300;
}

.subtitle-regular {
    font-family: var(--font-primary);
}

.subtitle-italic {
    font-family: var(--font-secondary);
    font-style: italic;
}

.portfolio-description {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    max-width: 600px;
}

.meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.meta-label {
    font-family: var(--font-primary);
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.meta-value {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 300;
}

/* 3. Middle Image Grid */
.portfolio-mid-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    height: 70vh;
}

.mid-img {
    background-size: cover;
    background-position: center;
    height: 100%;
}

/* 4. Video Section */
.portfolio-video-section {
    width: 100%;
    padding: 6rem 4rem 0; /* Match layout padding */
    background-color: var(--color-white);
}

.video-thumbnail-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
}

.video-thumbnail-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.2);
    transition: background 0.3s ease;
}

.video-thumbnail-wrapper:hover::after {
    background: rgba(0,0,0,0.4);
}

.play-button {
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 2;
    transition: transform 0.3s ease;
}

.video-thumbnail-wrapper:hover .play-button {
    transform: scale(1.1);
}

/* 5. Behind the Scenes */
.portfolio-bts-section {
    background-color: var(--color-white);
    padding: 6rem 4rem;
}

.portfolio-bts-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.bts-title {
    font-size: 48px;
    line-height: 1.1;
    margin: 0 0 2rem 0;
    font-weight: 300;
}

.bts-title-regular {
    font-family: var(--font-primary);
}

.bts-title-italic {
    font-family: var(--font-secondary);
    font-style: italic;
}

.bts-description {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    max-width: 500px;
}

.bts-images-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.bts-img {
    background-size: cover;
    background-position: center;
    aspect-ratio: 1 / 1;
}

/* Video Modal */
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.video-modal[aria-hidden="false"] {
    opacity: 1;
    pointer-events: auto;
}

.video-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.9);
    backdrop-filter: blur(5px);
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    aspect-ratio: 16 / 9;
    z-index: 2;
}

.video-container {
    width: 100%;
    height: 100%;
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.video-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.3s ease;
}

.video-modal-close:hover {
    transform: scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .portfolio-info-wrapper,
    .portfolio-bts-wrapper {
        grid-template-columns: 1fr;
    }
    
    .portfolio-header,
    .portfolio-info-section,
    .portfolio-bts-section,
    .portfolio-video-section {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (max-width: 768px) {
    .portfolio-top-grid {
        display: flex;
        flex-direction: column;
    }
    
    .top-img {
        height: clamp(350px, 100vw, 600px);
        width: 100%;
    }
    
    .portfolio-mid-grid {
        display: flex;
        flex-direction: column;
    }
    
    .mid-img {
        height: clamp(350px, 100vw, 600px);
        width: 100%;
    }
    
    .bts-images-grid {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------------------
   Single Portfolio Header Overrides
-------------------------------------------------------------------------- */
.header-project-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    text-transform: lowercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 50vw;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Force white background for portfolio header */
body.single-portfolio .site-header {
    height: 56px;
    padding-top: 0;
    padding-bottom: 0;
}
body.single-portfolio .site-header::before {
    background-color: var(--color-white);
    opacity: 1;
}

/* Keep text black when scrolling */
body.single-portfolio .site-header.is-scrolled {
    color: var(--color-black);
    height: 56px;
    padding-top: 0;
    padding-bottom: 0;
}

/* Keep light blur on scroll instead of dark */
body.single-portfolio .site-header.is-scrolled::before {
    background-color: rgba(255, 255, 255, 0.95);
}

/* Hide desktop menu items on single portfolio */
@media (min-width: 1025px) {
    body.single-portfolio .main-navigation ul {
        display: none !important;
    }
}

/* Hide header title when mobile overlay menu is open to prevent overlap */
body.menu-is-open .header-project-title {
    opacity: 0;
    visibility: hidden;
}

@media (max-width: 1024px) {
    .header-project-title {
        font-size: 1rem;
    }
}