:root {
    /* Color Palette */
    --bg-primary: hsl(40, 20%, 98%);
    --bg-secondary: hsl(40, 15%, 94%);
    --text-primary: hsl(0, 0%, 15%);
    --text-secondary: hsl(0, 0%, 40%);
    --accent: hsl(36, 40%, 40%);
    --accent-light: hsl(36, 40%, 60%);
    --white: #ffffff;
    --black: #000000;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --p-gutter: 2rem;
    --p-section: 8rem;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Image Copy & Save Protection */
img {
    -webkit-touch-callout: none; /* Disables long-press context menu on iOS */
    -webkit-user-select: none;   /* Safari */
    -khtml-user-select: none;    /* Konqueror HTML */
    -moz-user-select: none;      /* Firefox */
    -ms-user-select: none;       /* Internet Explorer/Edge */
    user-select: none;           /* Standard */
    -webkit-user-drag: none;     /* Safari/Chrome dragging */
    user-drag: none;             /* Standard dragging */
    pointer-events: none;        /* Blocks right-click context menu, dragging, and saving */
}

/* Background Image Protection (Stops selection and dragging on containers) */
.hero-bg, 
[id*="-bg"], 
.project-card, 
.project-gallery-item, 
.split-image, 
.journal-card-img-wrapper, 
.post-image-block,
.newsletter-image-block,
.newsletter-fullwidth-image,
.small-project-card {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    user-drag: none;
}

/* Prevent extracting images via printing or Print to PDF */
@media print {
    img, 
    .hero-bg, 
    [id*="-bg"], 
    .project-card, 
    .project-gallery-item, 
    .split-image, 
    .journal-card-img-wrapper, 
    .post-image-block,
    .newsletter-image-block,
    .newsletter-fullwidth-image,
    .small-project-card {
        display: none !important;
    }
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.2;
    font-variant-ligatures: none;
    font-feature-settings: "liga" 0, "clig" 0;
}

h1 { font-size: clamp(3rem, 8vw, 5rem); }
h2 { font-size: clamp(2rem, 5vw, 3.5rem); }
h3 { font-size: 1.75rem; }

p {
    font-size: 1.1rem;
    font-weight: 300;
}

.lead {
    font-size: 1.4rem;
    margin-bottom: 2rem;
}

/* Layout Utilities */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--p-gutter);
}

.full-bleed {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

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

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.4s ease;
}

header.scrolled {
    padding: 1.5rem 4rem;
    background: rgba(253, 253, 251, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.logo {
    display: inline-block;
    width: max-content;
    max-width: 100%;
    text-decoration: none;
    color: #000000 !important;
    font-size: 1rem;
}

header .logo {
    font-size: 0.9rem;
}

.logo-main {
    display: block;
    width: 100%;
    font-family: "prophet trial light", "Prophet Trial Light", "Prophet Trial", var(--font-body);
    font-size: 1.55em;
    font-weight: normal;
    color: #000000 !important;
    text-align: left;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.logo-sub {
    display: block;
    width: 100%;
    font-family: "prophet trial light", "Prophet Trial Light", "Prophet Trial", var(--font-body);
    font-size: 1.0em;
    font-weight: normal;
    color: #000000 !important;
    text-align: left;
    line-height: 1.1;
    margin-top: 0.3em;
    letter-spacing: 0.05em;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

nav a {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.75rem;
    letter-spacing: 0.15rem;
    font-weight: 400;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--accent);
}

.cta-link {
    border: 1px solid var(--text-primary);
    padding: 0.8rem 1.5rem;
    transition: all 0.3s ease !important;
}

.cta-link:hover {
    background: var(--text-primary);
    color: var(--white) !important;
}

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
}

#hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    z-index: -1;
}

.hero-content h1 {
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    letter-spacing: 0.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator .line {
    width: 1px;
    height: 80px;
    background: rgba(255,255,255,0.3);
    position: relative;
    overflow: hidden;
}

.scroll-indicator .line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    animation: scroll-anim 2s infinite ease-in-out;
}

@keyframes scroll-anim {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

/* Projects Section */
#projects {
    padding-top: var(--p-section);
    padding-bottom: var(--p-section);
}

.section-header {
    margin-bottom: 4rem;
    display: flex;
    justify-content: center;
}

.section-title {
    position: relative;
    padding-bottom: 1rem;
    transition: color 0.3s ease;
}

.section-title.over-image {
    color: var(--white) !important;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: var(--accent);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.project-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1.2;
    cursor: pointer;
}

.project-card.large {
    grid-column: span 2;
    aspect-ratio: 16 / 9;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s cubic-bezier(0.19, 1, 0.22, 1);
}

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

/* Special card styling for plan/drawing reviews that should not be cropped */
.project-card.contained-image {
    background-color: var(--white);
}

.project-card.contained-image img {
    object-fit: contain;
    object-position: center;
    padding: 1.5rem;
    background-color: var(--white);
    box-sizing: border-box;
}

/* Reviews grid & cards specific styles for a more compact and intentional design reviews section */
.reviews-grid .project-card {
    aspect-ratio: 1.35 / 1;
}

.reviews-grid .project-card.contained-image img {
    padding: 0.6rem;
}

.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 3rem;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: var(--white);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.project-card:hover .project-info {
    opacity: 1;
    transform: translateY(0);
}

/* About Section */
.alternate-bg {
    background-color: var(--bg-secondary);
    padding: var(--p-section) 0;
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.split-image img {
    width: 100%;
    height: auto;
    filter: drop-shadow(20px 20px 0 var(--accent-light));
}

.text-link {
    display: inline-block;
    margin-top: 2rem;
    text-decoration: none;
    color: var(--accent);
    font-weight: 500;
    letter-spacing: 0.1rem;
    transition: transform 0.3s ease;
}

.text-link:hover {
    transform: translateX(10px);
}

/* Services Section */
#services {
    padding-top: var(--p-section);
    padding-bottom: var(--p-section);
}

.services-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 4rem;
}

.service-item {
    padding: 3rem;
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    display: block;
    color: inherit;
    text-decoration: none;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.service-item h3 {
    margin-bottom: 1rem;
}

.service-item .learn-more {
    display: inline-block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    margin-top: 1.5rem;
    color: var(--accent);
    transition: transform 0.3s ease, color 0.3s ease;
}

.service-item:hover .learn-more {
    color: var(--accent-light);
}

/* CTA Section */
#cta {
    height: 50vh;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    overflow: hidden;
}

#cta .button {
    background: var(--text-primary);
    color: var(--white);
}

#cta .button:hover {
    background: var(--accent);
    color: var(--white);
}

.accent-bg {
    background-color: transparent; /* Removed underlying warm dark charcoal anchoring background color */
}

#cms-cta-bg {
    background-position: center; /* Center the new architectural background image */
    background-size: cover;
    transition: background-position 0.4s ease;
    opacity: 1; /* Ensure background image is fully opaque */
}

@media (max-width: 768px) {
    #cta {
        height: 45vh;
        min-height: 400px;
    }
    #cms-cta-bg {
        background-position: center; /* Keep the new background image centered on mobile */
    }
}

.cta-content h2 {
    font-size: clamp(2.2rem, 5vw, 3.5rem); /* Responsive sizing for better text flow */
    margin-bottom: 1.5rem;
}

.button {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: var(--white);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 0.2rem;
    margin-top: 2.5rem;
    transition: all 0.3s ease;
}

.button:hover {
    background: var(--accent);
    color: var(--white);
}

/* Footer */
footer {
    background: var(--bg-secondary);
    padding: 6rem 0 3rem;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

footer h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

footer h4 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer h4 a:hover {
    color: var(--accent);
}

footer ul {
    list-style: none;
}

footer ul li {
    margin-bottom: 0.8rem;
}

footer a {
    text-decoration: none;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

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

#cms-footer-location {
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(0,0,0,0.1);
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-legal-links {
    margin-top: 0 !important;
    font-size: 0.75rem;
    opacity: 0.55;
    transition: opacity 0.3s ease;
}

.footer-legal-links:hover {
    opacity: 0.95;
}

.footer-legal-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.75rem;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    header { padding: 1.5rem 2rem; }
    .split { grid-template-columns: 1fr; gap: 3rem; }
    .services-list { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--bg-primary);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3rem;
        z-index: 999;
    }
    nav.mobile-open {
        display: flex;
    }
    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
    }
    nav a { font-size: 1rem; }
    .projects-grid { grid-template-columns: 1fr; }
    .project-card.large { aspect-ratio: 1/1; }
    .services-list { grid-template-columns: 1fr; }
}

/* Animations */
.reveal-text {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease, transform 1s cubic-bezier(0.19, 1, 0.22, 1);
}

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

.fade-in {
    opacity: 0;
    transition: opacity 1.5s ease 0.3s;
}

.fade-in.visible {
    opacity: 1;
}

/* Reveal (used on split-image, section-header, etc.) */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.19, 1, 0.22, 1);
}

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

/* Project card and service item entrance */
.project-card,
.service-item {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.19, 1, 0.22, 1), box-shadow 0.4s ease;
}

.project-card.visible,
.service-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children (JS adds 'visible' with delay) */
.stagger-child {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.stagger-child.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Section header */
.section-header {
    opacity: 0;
    transition: opacity 0.8s ease;
}

.section-header.visible {
    opacity: 1;
}

/* ─── Custom Cursor ─────────────────────────────────── */
#cursor {
    position: fixed;
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    transition: width 0.2s ease, height 0.2s ease, background 0.2s ease;
    mix-blend-mode: multiply;
}

#cursor.cursor-grow {
    width: 48px;
    height: 48px;
    background: var(--accent-light);
}

#cursor-dot {
    position: fixed;
    width: 4px;
    height: 4px;
    background: var(--text-primary);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 10000;
}

/* ─── Hamburger Menu Toggle ─────────────────────────── */
.menu-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1001;
    padding: 4px;
}

.menu-toggle span {
    display: block;
    width: 26px;
    height: 1.5px;
    background: var(--text-primary);
    transition: all 0.35s cubic-bezier(0.19, 1, 0.22, 1);
    transform-origin: center;
}

.menu-toggle.open span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
    transform: translateY(-7.5px) rotate(-45deg);
}

@media (max-width: 768px) {
    .menu-toggle { display: flex; }
}

/* ─── Subpage Styling ───────────────────────────────── */
body.subpage header {
    padding: 1.5rem 4rem;
    background: rgba(253, 253, 251, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

@media (max-width: 768px) {
    body.subpage header {
        padding: 1.5rem 2rem;
    }
}

.subpage-hero {
    padding: 12rem 0 6rem 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.subpage-hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
}

.subpage-hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 800px;
    font-weight: 300;
}

.subpage-content {
    padding-top: 8rem;
    padding-bottom: 8rem;
}

/* FAQ Styles */
.faq-list {
    max-width: 850px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3rem; /* slightly increased gap between categories */
}

.faq-category {
    display: flex;
    flex-direction: column;
    gap: 1.25rem; /* tight, refined gap between items in a category */
}

.faq-category-title {
    font-size: 1rem;
    letter-spacing: 0.15rem;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 1rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    padding-bottom: 0.5rem;
}

.faq-item {
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.05);
    padding: 0; /* padding moved to trigger and inner answer to allow 100% click area */
    transition: border-color 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    overflow: hidden;
}

.faq-item:hover {
    border-color: rgba(0,0,0,0.1);
    box-shadow: 0 10px 25px rgba(0,0,0,0.02);
}

.faq-item.active {
    border-color: rgba(0,0,0,0.12);
    box-shadow: 0 15px 35px rgba(0,0,0,0.03);
}

.faq-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    width: 100%;
    text-align: left;
    gap: 1.5rem;
    user-select: none;
    outline: none;
    padding: 1.75rem 2.25rem;
    background: transparent;
    border: none;
    font-family: inherit;
    font-size: inherit;
    transition: background-color 0.3s ease;
}

.faq-trigger h3 {
    font-size: 1.25rem;
    margin: 0;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.45;
    transition: color 0.3s ease;
}

.faq-trigger:hover h3,
.faq-trigger:focus-visible h3 {
    color: var(--accent);
}

/* Elegant Plus/Minus Icon */
.faq-icon {
    position: relative;
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    display: inline-block;
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    background-color: var(--accent);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease;
}

/* Horizontal line */
.faq-icon::before {
    top: 50%;
    left: 0;
    width: 100%;
    height: 1.5px;
    transform: translateY(-50%);
}

/* Vertical line */
.faq-icon::after {
    top: 0;
    left: 50%;
    width: 1.5px;
    height: 100%;
    transform: translateX(-50%);
}

/* Active State: morphs plus into a minus */
.faq-item.active .faq-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
    opacity: 0;
}

.faq-item.active .faq-icon::before {
    transform: translateY(-50%) rotate(180deg);
}

/* Collapsible content wrapper (using smooth CSS Grid transition) */
.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease;
    opacity: 0;
    overflow: hidden;
}

.faq-item.active .faq-answer {
    grid-template-rows: 1fr;
    opacity: 1;
}

.faq-answer-inner {
    min-height: 0;
    padding: 0 2.25rem 2rem 2.25rem;
}

.faq-item p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 1.25rem;
}

.faq-item p:last-child {
    margin-bottom: 0;
}

.faq-item p strong {
    color: var(--text-primary);
    font-weight: 500;
}

.faq-item a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.3s ease;
}

.faq-item a:hover {
    color: var(--accent-light);
}

.faq-links {
    margin-top: 1.5rem;
    font-size: 0.95rem !important;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    border-top: 1px solid rgba(0,0,0,0.04);
    padding-top: 1.25rem;
}

.faq-links span {
    color: var(--text-secondary);
    font-weight: 400;
}

.faq-links a {
    text-decoration: none;
    font-weight: 500;
}

.faq-links a:hover {
    text-decoration: underline;
}

/* FAQ Navigation/Tabs Styles */
.faq-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    margin-bottom: 3.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 1.5rem;
}

.faq-nav-btn {
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.12rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    padding: 0.6rem 0;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
    outline: none;
}

.faq-nav-btn:hover {
    color: var(--accent);
}

.faq-nav-btn.active {
    color: var(--accent);
    font-weight: 500;
}

/* Elegant underline for active button */
.faq-nav-btn::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 1.5px;
    background-color: var(--accent);
    transform: scaleX(0);
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    transform-origin: bottom right;
}

.faq-nav-btn.active::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.faq-nav::-webkit-scrollbar {
    display: none;
}

@media (max-width: 768px) {
    .faq-nav {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding-bottom: 1rem;
        gap: 1.5rem;
        margin-bottom: 2.5rem;
        /* Hide scrollbar for IE, Edge and Firefox */
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
    }
    
    .faq-nav-btn {
        flex-shrink: 0;
        scroll-snap-align: start;
        font-size: 0.85rem;
        letter-spacing: 0.08rem;
    }
}

/* Show/hide categories when navigation is active */
.faq-list.has-nav .faq-category {
    display: none;
}

.faq-list.has-nav .faq-category.active-category {
    display: flex;
    animation: faqFadeIn 0.5s ease forwards;
}

.faq-list.has-nav .faq-category-title {
    display: none;
}

@keyframes faqFadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Process Timeline Styles */
.process-timeline {
    max-width: 900px;
    margin: 0 auto;
}

.process-phase {
    margin-bottom: 6rem;
}

.process-phase:last-child {
    margin-bottom: 0;
}

.process-phase-header {
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding-bottom: 1.5rem;
    margin-bottom: 3.5rem;
}

.process-phase-header h2 {
    font-size: 2.2rem;
    color: var(--accent);
}

.process-phase-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    font-weight: 300;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.process-step {
    display: flex;
    gap: 3.5rem;
}

.process-step-num {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    color: var(--accent-light);
    opacity: 0.5;
    min-width: 70px;
    line-height: 1;
}

.process-step-content {
    flex: 1;
}

.process-step-content h3 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.process-step-content .duration {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 0.08rem;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--bg-secondary);
    padding: 0.25rem 0.75rem;
    margin-bottom: 1.2rem;
    font-family: var(--font-body);
    font-weight: 500;
}

@media (max-width: 768px) {
    .process-step {
        flex-direction: column;
        gap: 0.8rem;
    }
    .process-step-num {
        font-size: 2.2rem;
        min-width: auto;
    }
}

/* Process Closing Section */
.process-closing-section {
    padding-bottom: 8rem;
    max-width: 900px;
    margin: 0 auto;
    border-top: 1px solid rgba(0,0,0,0.08);
    padding-top: 6rem;
}

.process-closing-content {
    max-width: 750px;
}

.process-closing-content h2 {
    font-size: 2.2rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.process-closing-content p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.process-closing-content p:last-of-type {
    margin-bottom: 0;
}

.process-closing-content .text-link {
    margin-top: 2rem;
}

/* Media Page Styles */
.media-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 6rem;
}

.media-section {
    margin-bottom: 5rem;
}

.media-section:last-child {
    margin-bottom: 0;
}

.media-section h2 {
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    padding-bottom: 0.8rem;
}

.media-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.media-item {
    background: var(--white);
    padding: 2.5rem;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.media-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.03);
}

.media-item h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 0.6rem;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.media-item:hover h3 {
    color: var(--accent);
}

.media-item p {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.media-title-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.media-meta {
    margin-top: 1.5rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.media-action-link, .media-project-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s ease, border-color 0.3s ease;
    border-bottom: 1px solid transparent;
}

.media-action-link:hover, .media-project-link:hover {
    color: var(--text-primary);
    border-bottom-color: var(--text-primary);
}

.media-separator {
    color: rgba(0, 0, 0, 0.15);
}

.media-project {
    color: var(--text-secondary);
}

.media-sidebar {
    background: var(--bg-secondary);
    padding: 3.5rem;
    height: fit-content;
    border: 1px solid rgba(0,0,0,0.04);
}

.media-sidebar h3 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
}

.media-sidebar p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.media-sidebar-link {
    display: inline-block;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.85rem;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
    font-weight: 500;
    border-bottom: 1px solid var(--text-primary);
    padding-bottom: 0.3rem;
    transition: all 0.3s ease;
}

.media-sidebar-link:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

@media (max-width: 992px) {
    .media-grid {
        grid-template-columns: 1fr;
        gap: 5rem;
    }
}

/* Form & Contact Styles */
.form-container {
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 3rem;
}

.form-group > label {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 0.12rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 1.2rem 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.15);
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--text-primary);
    transition: border-bottom-color 0.3s ease;
}

textarea.form-control {
    line-height: 1.6;
    resize: none;
}

.form-control:focus {
    outline: none;
    border-bottom-color: var(--accent);
}

.form-checkbox-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
    margin-top: 1.5rem;
}

/* Precise grid helper classes to control columns and reduce text wrapping */
.form-checkbox-group.grid-1-col {
    grid-template-columns: 1fr;
    gap: 1.4rem;
}

.form-checkbox-group.grid-2-cols {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
}

.form-checkbox-group.grid-3-cols {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem;
}

.form-checkbox-group.grid-4-cols {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.4rem;
}

.form-checkbox-label {
    display: flex;
    align-items: flex-start; /* Ensures top-alignment for multi-line text */
    gap: 1rem;              /* Same spacing from label text */
    font-size: 1.05rem;
    cursor: pointer;
    font-weight: 300;
    line-height: 1.4;       /* Fine-tuned line-height for label text */
    text-transform: none;   /* Reset uppercase for multi-line checkboxes and radios */
}

/* Custom Styled Input Controls with absolute consistency */
input[type="checkbox"].form-checkbox,
input[type="radio"].form-checkbox {
    -webkit-appearance: none;
    appearance: none;
    background-color: transparent;
    margin: 0;
    padding: 0;
    width: 20px;       /* Same size: 20px */
    height: 20px;      /* Same size: 20px */
    border: 1px solid rgba(0, 0, 0, 0.2); /* Same border weight: 1px */
    display: inline-grid;
    place-content: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    flex-shrink: 0;    /* Prevent control from shrinking */
    margin-top: 2px;   /* Same vertical alignment: aligns center of control with center of first text line */
}

/* Checkbox specific: square controls */
input[type="checkbox"].form-checkbox {
    border-radius: 0px; /* Completely square */
}

/* Radio specific: circular controls */
input[type="radio"].form-checkbox {
    border-radius: 50%; /* Completely circular */
}

/* Selected-state: Consistent selected-state styling using premium brand brass */
input[type="checkbox"].form-checkbox:checked {
    border-color: var(--accent);
    background-color: var(--accent);
}

input[type="radio"].form-checkbox:checked {
    border-color: var(--accent);
    background-color: transparent; /* Keep background transparent for radio buttons */
}

/* Inner indicator elements */
/* Checkbox indicator: elegant custom white checkmark */
input[type="checkbox"].form-checkbox::before {
    content: "";
    width: 10px;
    height: 10px;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    background-color: var(--bg-primary); /* Matches warm brand background */
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

input[type="checkbox"].form-checkbox:checked::before {
    transform: scale(1);
}

/* Radio indicator: elegant solid brand brass inner circle */
input[type="radio"].form-checkbox::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    background-color: var(--accent); /* Solid inner circle */
}

input[type="radio"].form-checkbox:checked::before {
    transform: scale(1);
}

/* Hover effects for both controls */
input[type="checkbox"].form-checkbox:hover,
input[type="radio"].form-checkbox:hover {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(182, 137, 88, 0.15); /* Soft premium brass glow */
}

/* Text wrapper within label to ensure perfect vertical and horizontal alignment */
.form-checkbox-text {
    color: var(--text-primary);
    transition: color 0.2s ease;
    user-select: none;
    line-height: 1.4;
    text-transform: none; /* Reset uppercase for multi-line checkboxes and radios */
}

/* Interactive brand text highlight on label hover */
.form-checkbox-label:hover .form-checkbox-text {
    color: var(--accent);
}

.button-submit {
    background: var(--text-primary);
    color: var(--white);
    border: none;
    padding: 1.2rem 3.5rem;
    font-family: var(--font-body);
    font-size: 0.8rem;
    letter-spacing: 0.15rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.button-submit:hover {
    background: var(--accent);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 8rem;
}

.contact-info-block {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}

.contact-item h3 {
    font-size: 0.8rem;
    letter-spacing: 0.12rem;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
}

.contact-item p {
    font-size: 1.6rem;
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.4;
}

.contact-item a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--accent);
}

.contact-cta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.contact-cta h2 {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5vw, 3rem);
    line-height: 1.2;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.contact-cta p {
    font-size: 1.15rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.contact-cta p:last-of-type {
    margin-bottom: 3rem;
}

.contact-cta .button {
    background: var(--text-primary);
    color: var(--white);
    align-self: flex-start;
    margin-top: 0;
}

.contact-cta .button:hover {
    background: var(--accent);
    color: var(--white);
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 5rem;
    }
}

@media (max-width: 768px) {
    .form-checkbox-group.grid-3-cols,
    .form-checkbox-group.grid-4-cols {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }
}

@media (max-width: 576px) {
    .form-checkbox-group,
    .form-checkbox-group.grid-2-cols,
    .form-checkbox-group.grid-3-cols,
    .form-checkbox-group.grid-4-cols {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
}

/* ─── Service Pages Styling ───────────────────────────── */
.service-details-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 5rem;
    align-items: start;
    margin-bottom: 8rem;
}

.category-eyebrow {
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    display: block;
    margin-bottom: 1rem;
    font-weight: 500;
}

.category-eyebrow a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.category-eyebrow a:hover {
    color: var(--accent-light);
}

.service-main-info h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    font-family: var(--font-heading);
}

.service-main-info p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.service-main-info .lead {
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--text-primary);
}

.service-highlight-box {
    background: var(--bg-secondary);
    padding: 3rem;
    border-left: 3px solid var(--accent);
    margin-top: 3rem;
}

.service-highlight-box h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
}

.service-highlight-box p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.service-highlight-box p:last-child {
    margin-bottom: 0;
}

.sidebar-block {
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.05);
    padding: 3rem;
    margin-bottom: 2rem;
}

.sidebar-block h3 {
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.deliverables-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.deliverables-list li {
    padding-left: 1.8rem;
    position: relative;
    margin-bottom: 1.2rem;
    line-height: 1.6;
    font-size: 1rem;
    color: var(--text-secondary);
}

.deliverables-list li::before {
    content: "-";
    position: absolute;
    left: 0;
    color: var(--accent);
}

.related-projects-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-projects-list li {
    padding-left: 1.8rem;
    position: relative;
    margin-bottom: 1.2rem;
    line-height: 1.6;
    font-size: 1rem;
    color: var(--text-secondary);
}

.related-projects-list li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--accent);
}

.related-projects-list li a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-projects-list li a:hover {
    color: var(--accent);
}

.cta-block {
    background: var(--accent);
    color: var(--white);
    border: none;
}

.cta-block h3 {
    border-bottom: 1px solid rgba(255,255,255,0.15);
    color: var(--white);
}

.cta-block p {
    margin-bottom: 2rem;
    line-height: 1.6;
    opacity: 0.9;
}

.cta-block .button {
    background: var(--white);
    color: var(--accent);
}

.cta-block .button:hover {
    background: var(--bg-secondary);
    color: var(--accent-light);
}

.service-process-section {
    border-top: 1px solid rgba(0,0,0,0.08);
    padding-top: 6rem;
}

.service-process-section h2 {
    font-size: 2.2rem;
    font-family: var(--font-heading);
    margin-bottom: 1rem;
}

.section-lead-text {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 4rem;
    font-weight: 300;
}

.service-steps-grid,
.service-steps-grid-4 {
    display: grid;
    gap: 2rem;
}

.service-steps-grid {
    grid-template-columns: repeat(5, 1fr);
}

.service-steps-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.step-card {
    background: var(--white);
    padding: 2.5rem;
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
    transition: transform 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
}

.step-card .step-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--accent-light);
    opacity: 0.25;
    display: block;
    margin-bottom: 1.5rem;
}

.step-card h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.step-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .service-steps-grid,
    .service-steps-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .service-details-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .service-steps-grid,
    .service-steps-grid-4 {
        grid-template-columns: 1fr;
    }
}

/* Related Projects Row Section */
.related-projects-row-section {
    margin-bottom: var(--p-section, 8rem);
    margin-top: 4rem;
}

.related-projects-row-section h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--text-primary);
}

.related-projects-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.related-projects-row.count-1 {
    grid-template-columns: minmax(200px, 380px);
}

.related-projects-row.count-2 {
    grid-template-columns: repeat(2, minmax(200px, 380px));
}

.small-project-card {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

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

.small-project-card .image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    margin-bottom: 1rem;
    background-color: var(--bg-secondary);
}

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

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

.small-project-card .project-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 400;
    margin-bottom: 0.3rem;
    color: var(--text-primary);
}

.small-project-card .project-descriptor {
    font-size: 0.85rem;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    font-family: var(--font-body);
}

@media (max-width: 768px) {
    .related-projects-row {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .related-projects-row.count-2 {
        grid-template-columns: 1fr;
    }
}

/* ─── Journal / Blog Styling ──────────────────────────── */
.journal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    margin-bottom: 6rem;
}

.journal-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.03);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.journal-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.04);
}

.journal-card-img-wrapper {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

.journal-card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.journal-card:hover .journal-card-img-wrapper img {
    transform: scale(1.05);
}

.journal-card-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.journal-issue {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 0.8rem;
}

.journal-card h3 {
    font-size: 1.4rem;
    line-height: 1.4;
    margin-bottom: 1.2rem;
    font-family: var(--font-heading);
    font-weight: 400;
}

.journal-excerpt {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.journal-read-link {
    font-size: 0.8rem;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--accent);
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.journal-read-link span {
    transition: transform 0.3s ease;
}

.journal-card:hover .journal-read-link span {
    transform: translateX(4px);
}

/* Newsletter Signup Section */
.newsletter-signup-box {
    background: var(--bg-secondary);
    padding: 6rem;
    text-align: center;
    margin-top: 8rem;
    border: 1px solid rgba(0,0,0,0.03);
}

.newsletter-signup-box h2 {
    font-size: 2.2rem;
    font-family: var(--font-heading);
    margin-bottom: 1rem;
}

.newsletter-signup-box p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem auto;
    font-weight: 300;
}

.newsletter-form {
    display: flex;
    max-width: 550px;
    margin: 0 auto;
    gap: 1rem;
}

.newsletter-input {
    flex-grow: 1;
    background: var(--white);
    border: 1px solid rgba(0,0,0,0.1);
    padding: 1.2rem 2rem;
    font-size: 1rem;
    font-family: var(--font-body);
    outline: none;
    transition: border-color 0.3s ease;
}

.newsletter-input:focus {
    border-color: var(--accent);
}

.newsletter-button {
    background: var(--accent);
    color: var(--white);
    border: none;
    padding: 1.2rem 3rem;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.newsletter-button:hover {
    background: var(--accent-light);
}

/* Individual Post Styling */
.post-header {
    margin-bottom: 4rem;
}

.post-meta {
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.5rem;
    display: block;
}

.post-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 5rem;
    align-items: start;
}

.post-body p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    font-weight: 300;
    color: var(--text-primary);
}

.post-body h2, .post-body h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin: 3.5rem 0 1.5rem 0;
    font-weight: 400;
}

.post-body h2:first-of-type {
    margin-top: 0;
}

.post-quote {
    border-left: 2px solid var(--accent);
    padding-left: 3rem;
    margin: 4rem 0;
    font-style: italic;
}

.post-quote p {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    line-height: 1.6;
    color: var(--accent);
    margin-bottom: 0;
}

.post-image-block {
    margin: 4rem 0;
}

.post-image-block img {
    width: 100%;
    height: auto;
    object-fit: cover;
    margin-bottom: 1rem;
}

.post-image-caption {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
    text-align: center;
}

.post-sidebar-block {
    background: var(--bg-secondary);
    padding: 3rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(0,0,0,0.03);
}

.post-sidebar-block h3 {
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.post-sidebar-block p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.post-images-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 4rem 0;
}

.post-images-grid .post-image-block {
    margin: 0;
}

@media (max-width: 1024px) {
    .journal-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .journal-grid {
        grid-template-columns: 1fr;
    }
    .post-layout {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    .newsletter-form {
        flex-direction: column;
    }
    .newsletter-signup-box {
        padding: 4rem 2rem;
    }
    .post-images-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* ─── Project Details & Portfolio Styling ───────────────── */
.project-details-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 5rem;
    align-items: start;
    margin-bottom: 6rem;
}

@media (min-width: 993px) {
    .project-details-grid {
        grid-template-columns: 1.9fr 1fr; /* Refined proportions for more elegant, less block-like feel */
    }
}

.project-main-info h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.project-main-info p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.project-main-info p a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color 0.3s ease;
}

.project-main-info p a:hover {
    color: var(--accent-light);
}

.project-main-info p.lead {
    font-size: 1.35rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 2.5rem;
}

.project-highlight-box {
    background-color: var(--bg-secondary);
    padding: 3rem;
    margin: 3rem 0;
    border-left: 3px solid var(--accent);
}

.project-highlight-box h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.project-highlight-box p {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.project-highlight-box p:last-child {
    margin-bottom: 0;
}

.project-sidebar {
    background-color: hsl(40, 15%, 96%); /* Soft, lightened background tone */
    padding: 2.25rem 2.25rem; /* Reduced internal padding for a compact, editorial layout */
    position: sticky;
    top: 120px;
}

@media (min-width: 993px) {
    .project-sidebar {
        margin-top: -2rem; /* Raise the panel slightly on desktop to align intentionally with "The Design Story" heading */
    }
}

.project-sidebar-block {
    margin-bottom: 1.5rem; /* Tightened spacing between metadata categories */
}

.project-sidebar-block:last-child {
    margin-bottom: 0;
}

.project-sidebar-block h3 {
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.5rem; /* Tightened spacing inside categories */
    font-weight: 500;
}

.project-sidebar-block p {
    font-size: 1.05rem;
    color: var(--text-primary);
    line-height: 1.5;
}

.project-sidebar-block .meta-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.project-sidebar-block .meta-list li {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 0.35rem; /* Tightened list spacing */
    position: relative;
    padding-left: 1.5rem;
}

.project-sidebar-block .meta-list li::before {
    content: "–";
    position: absolute;
    left: 0;
    color: var(--accent);
}

.project-sidebar-block .meta-list li a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.project-sidebar-block .meta-list li a:hover {
    color: var(--accent);
}

.project-sidebar-block p a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color 0.3s ease;
}

.project-sidebar-block p a:hover {
    color: var(--accent-light);
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin: 6rem 0;
}

.project-gallery-item {
    overflow: hidden;
    background-color: #f7f7f7;
    cursor: zoom-in;
}

.project-gallery-item.landscape {
    aspect-ratio: 3 / 2;
}

.project-gallery-item.portrait {
    aspect-ratio: 2 / 3;
}

.project-gallery-item.full-width {
    grid-column: span 2;
    aspect-ratio: 16 / 9;
}

.project-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
    display: block;
}

.project-gallery-item:hover img {
    transform: scale(1.04);
}

.project-navigation {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(0,0,0,0.08);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    padding-top: 3rem;
    padding-bottom: 3rem;
    margin: 6rem 0 4rem 0;
}

.project-nav-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    max-width: 45%;
}

.project-nav-link.prev {
    align-items: flex-start;
}

.project-nav-link.next {
    align-items: flex-end;
    text-align: right;
}

.project-nav-link .nav-label {
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.project-nav-link .nav-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.project-nav-link:hover .nav-title {
    color: var(--accent);
}

/* ─── Non-link Media Items ────────────────────────────── */
.media-item.no-link {
    cursor: default;
}

.media-item.no-link:hover {
    transform: none;
    box-shadow: none;
}

.media-item.no-link:hover h3 {
    color: var(--text-primary);
}

@media (max-width: 992px) {
    .project-details-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    .project-sidebar {
        position: static;
        padding: 2rem 2rem;
    }
}

@media (max-width: 768px) {
    .project-gallery {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin: 4rem 0;
    }
    .project-gallery-item.full-width {
        grid-column: span 1;
    }
    .project-gallery-item.landscape,
    .project-gallery-item.portrait,
    .project-gallery-item.full-width {
        aspect-ratio: 4 / 3;
    }
    .project-navigation {
        flex-direction: column;
        gap: 2rem;
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }
    .project-nav-link {
        max-width: 100%;
    }
    .project-nav-link.next {
        align-items: flex-start;
        text-align: left;
    }
}

/* ═══════════════════════════════════════════════════════
   ADAPTIVE RESPONSIVENESS & MOBILE ALIGNMENT OVERRIDES
   ═══════════════════════════════════════════════════════ */

/* Body scroll lock when mobile menu is open */
body.menu-active {
    overflow: hidden;
}

/* Redefine root variables for adaptive margins and gutters */
@media (max-width: 768px) {
    :root {
        --p-gutter: 1.5rem;
        --p-section: 4.5rem;
    }
}

@media (max-width: 480px) {
    :root {
        --p-gutter: 1rem;
        --p-section: 3.5rem;
    }
}

/* Header Alignment Overrides for Pixel-Perfect Left/Right Edges */
@media (max-width: 1024px) {
    header {
        padding: 1.5rem var(--p-gutter);
    }
    header.scrolled {
        padding: 1.25rem var(--p-gutter);
    }
}

@media (max-width: 768px) {
    header {
        padding: 1.25rem var(--p-gutter);
    }
    header.scrolled {
        padding: 1rem var(--p-gutter);
    }
    body.subpage header {
        padding: 1.25rem var(--p-gutter);
    }
}

/* Responsive Heading Font Clamping */
@media (max-width: 768px) {
    h1 {
        font-size: clamp(2.2rem, 8vw, 2.8rem);
    }
    h2 {
        font-size: clamp(1.6rem, 5vw, 2.2rem);
    }
    .logo {
        font-size: clamp(0.72rem, 4vw, 1rem);
    }
    header .logo {
        font-size: clamp(0.648rem, 3.6vw, 0.9rem);
    }
}

/* Project and Portfolio touch screen usability */
@media (max-width: 768px) {
    /* Always show title and category info on mobile/touch screens since :hover is unreliable */
    .project-info {
        opacity: 1;
        transform: translateY(0);
        padding: 1.5rem;
    }
}

/* Highlight boxes padding overrides to prevent squeezed text */
@media (max-width: 768px) {
    .project-highlight-box,
    .service-highlight-box {
        padding: 1.75rem 1.5rem;
        margin-top: 2.5rem;
    }
}

/* Sidebar paddings overrides within stacked layouts */
@media (max-width: 768px) {
    .post-sidebar-block {
        padding: 1.75rem 1.5rem;
    }
}

@media (max-width: 576px) {
    .project-sidebar,
    .media-sidebar {
        padding: 1.5rem 1.25rem;
    }
}

/* Service Item list card paddings */
@media (max-width: 768px) {
    .service-item {
        padding: 2rem 1.5rem;
    }
    .step-card {
        padding: 1.75rem var(--p-gutter);
    }
}

/* Subpage spacing overrides */
@media (max-width: 768px) {
    .subpage-hero {
        padding: 8rem 0 4rem 0;
    }
    .subpage-content {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

/* Post Quotes formatting */
@media (max-width: 768px) {
    .post-quote {
        padding-left: 1.5rem;
        margin: 2.5rem 0;
    }
    .post-quote p {
        font-size: 1.3rem;
    }
}

/* Contain drop-shadow spill to prevent viewport overflow */
@media (max-width: 768px) {
    .split-image img {
        filter: drop-shadow(10px 10px 0 var(--accent-light));
    }
}

/* Footer Responsive Column Overrides */
@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        margin-bottom: 4rem;
    }
}

/* Refined Process Timeline spacing */
@media (max-width: 768px) {
    .process-phase-header {
        margin-bottom: 2rem;
    }
    .process-steps {
        gap: 2.5rem;
    }
}

/* Prevent full-bleed offset overflow and horizontal scrolling on mobile */
@media (max-width: 768px) {
    .full-bleed {
        width: 100%;
        left: auto;
        right: auto;
        margin-left: 0;
        margin-right: 0;
    }
}

/* Optimise card/box paddings on mobile to prevent squeezed text and provide maximum reading area */
@media (max-width: 768px) {
    .faq-item,
    .media-item {
        padding: 1.75rem 1.5rem;
    }
    .journal-card-content {
        padding: 1.75rem 1.5rem;
    }
}

/* ────────────────────────────────────────────────────────
   Full Service Design Refinements
   ──────────────────────────────────────────────────────── */

/* Value Rows List Layout (When Full Service Design Creates the Greatest Value) */
.service-value-section {
    border-top: 1px solid rgba(0,0,0,0.08);
    padding: 6rem 0;
}

.service-value-section h2 {
    font-size: 2.2rem;
    font-family: var(--font-heading);
    margin-bottom: 1rem;
}

.value-rows-list {
    border-top: 1px solid rgba(0,0,0,0.08);
    margin-top: 3rem;
}

.value-row {
    display: grid;
    grid-template-columns: 1fr;
    padding: 2.2rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    align-items: start;
}

.value-number {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--accent);
    opacity: 0.5;
    line-height: 1;
}

.value-content {
    display: grid;
    grid-template-columns: 1.2fr 1.8fr;
    gap: 4rem;
    align-items: start;
}

.value-content h3 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
    line-height: 1.4;
}

.value-content p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    font-weight: 300;
}

@media (max-width: 1024px) {
    .value-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .value-row {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 2rem 0;
    }
    .value-number {
        font-size: 1.5rem;
    }
    .value-content {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

/* Outcome Section (Who It's For & Strategic Outcome) */
.service-outcome-section {
    border-top: 1px solid rgba(0,0,0,0.08);
    padding: 6rem 0;
}

.outcome-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
}

.outcome-single-column {
    max-width: 800px;
    margin: 0 auto;
}

.outcome-block {
    display: flex;
    flex-direction: column;
}

.outcome-block .category-eyebrow {
    margin-bottom: 0.75rem;
}

.outcome-block h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
}

.outcome-block p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.65;
    font-weight: 300;
}

.outcome-single-column .outcome-block p {
    line-height: 1.8;
}

.outcome-single-column .outcome-block p:not(:last-child) {
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .outcome-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    .outcome-block h3 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
}

/* Strategic Positioning Section (Why Clients Engage Patina Design Studio Early) */
.strategic-positioning.alternate-bg {
    background-color: var(--bg-secondary);
    padding: var(--p-section) 0;
    border-top: 1px solid rgba(0,0,0,0.04);
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.strategic-positioning-grid {
    display: grid;
    grid-template-columns: 1.2fr 1.8fr;
    gap: 6rem;
    align-items: start;
}

.positioning-left {
    position: sticky;
    top: 8rem;
}

.positioning-left h2 {
    font-size: clamp(2.2rem, 4vw, 3rem);
    line-height: 1.15;
    margin: 1.5rem 0;
}

.positioning-lead {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 300;
}

.positioning-right {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}

.positioning-point {
    border-top: 1px solid rgba(0,0,0,0.08);
    padding-top: 1.5rem;
}

.positioning-point:first-child {
    border-top: none;
    padding-top: 0;
}

.positioning-point h3 {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.positioning-point p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 300;
}

@media (max-width: 1024px) {
    .strategic-positioning-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    .positioning-left {
        position: static;
    }
}

/* ==========================================================================
   Scoped Styles for Newsletter Pages
   ========================================================================== */
body.newsletter-page {
    background-color: var(--bg-primary);
}

/* Hide global subpage hero */
body.newsletter-page .subpage-hero {
    display: none;
}

/* Center main wrapper */
.newsletter-email-wrapper {
    width: 100%;
    padding: 4rem 1.5rem;
    background-color: var(--bg-primary);
}

.newsletter-email-inner {
    max-width: 680px;
    margin: 0 auto;
    background-color: var(--bg-primary);
}

/* Newsletter Top Header */
.newsletter-header-block {
    text-align: center;
    padding: 3rem 0 0 0; /* Remove bottom padding so the divider block sits flush */
    border-bottom: none; /* Borders are now handled individually by the logo wrapper and divider */
}

.newsletter-series-tag {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #7A7267;
    margin-bottom: 1.5rem;
    padding: 0 3rem;
}

.newsletter-logo-wrapper {
    margin-bottom: 0;
    padding: 0 3rem 2.25rem 3rem; /* 48px left/right, 36px bottom padding to match newsletter's first row exactly */
    border-bottom: 1px solid #DDD5C8; /* Under-logo horizontal line */
}

.newsletter-logo-img {
    width: 280px;
    max-width: 100%;
    height: auto;
    display: inline-block;
}

.newsletter-bts-divider {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Left-aligned content block */
    height: 48px; /* Standard Mailchimp divider row height */
    padding: 0 3rem; /* 48px left/right padding */
    background-color: var(--bg-primary);
    border-bottom: 1px solid #DDD5C8; /* Bottom horizontal line */
    box-sizing: border-box;
    position: relative;
}

.newsletter-bts-divider .divider-line:first-child {
    flex-grow: 0;
    flex-shrink: 0;
    width: 12px; /* Thick vertical bar on the left */
    height: 48px; /* Stretches from top border to bottom border */
    background-color: #DDD5C8;
}

.newsletter-bts-divider .bts-badge {
    font-family: var(--font-body);
    font-size: 0.5625rem; /* Exactly 9px to match newsletter */
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #8C7355;
    white-space: nowrap;
    margin-left: 20px; /* 20px gap from the left vertical bar */
}

.newsletter-bts-divider .divider-line:last-child {
    flex-grow: 0;
    flex-shrink: 0;
    width: 12px; /* Thick vertical bar on the right */
    height: 48px; /* Stretches from top border to bottom border */
    background-color: #DDD5C8;
    margin-left: auto; /* Pushes the right vertical bar to the far right */
}

/* "A note from Jacqui" section */
.newsletter-jacqui-note-block {
    padding: 3rem 0 2.5rem 0;
    border-bottom: 1px solid #DDD5C8;
}

.jacqui-note-eyebrow {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #7A7267;
    margin-bottom: 1.5rem;
}

.jacqui-note-text p {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.85;
    color: #2C2925;
    margin-bottom: 1rem;
}

.jacqui-note-signoff {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.1rem;
    color: #8C7355;
    margin-top: 2rem;
    line-height: 1.5;
}

.jacqui-note-signoff span {
    font-size: 1.2rem;
    font-weight: bold;
}

/* Pull Quote Block */
.newsletter-pullquote-block {
    padding: 3.5rem 3rem;
    background-color: #F4EFE6;
    border-left: 3px solid #8C7355;
    border-bottom: 1px solid #DDD5C8;
    margin: 0 0 2rem 0;
}

.pullquote-text {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 400;
    font-style: italic;
    line-height: 1.6;
    color: #2C2925;
    margin: 0;
}

/* Feature Header block */
.newsletter-feature-header-block {
    padding: 1rem 0;
}

.feature-series-no {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #8C7355;
    margin-bottom: 0.5rem;
}

.feature-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 1.5;
    color: #2C2925;
    margin-bottom: 1.5rem;
}

/* Story body layout overrides */
.newsletter-body {
    padding-bottom: 2rem;
}

.newsletter-body p {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.85;
    color: #3E3A35;
    margin-bottom: 1.2rem;
}

.newsletter-body p strong, .newsletter-body p span[style*="font-weight:600"] {
    font-weight: 600 !important;
    color: #2C2925 !important;
}

.newsletter-body h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 400;
    color: #2C2925;
    margin: 3rem 0 1rem 0;
}

.newsletter-body h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 400;
    color: #2C2925;
    margin: 2.5rem 0 1rem 0;
}

/* Image styles in newsletter */
.newsletter-image-block {
    margin: 2rem 0;
}

.newsletter-image-block img {
    width: 100%;
    display: block;
    border: 1px solid #DDD5C8;
    height: auto;
}

.newsletter-image-caption {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 300;
    line-height: 1.6;
    color: #7A7267;
    font-style: italic;
    margin-top: 0.5rem;
    text-align: left;
}

/* Dark Manifesto Block */
.newsletter-manifesto-block {
    background-color: #2C2925;
    padding: 2.5rem;
    margin: 3rem 0 2rem 0;
}

.newsletter-manifesto-block h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 400;
    font-style: italic;
    color: #C9BFB0;
    margin-bottom: 1rem;
    margin-top: 0;
}

.newsletter-manifesto-block p {
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 300;
    line-height: 1.9;
    color: #C9BFB0;
    margin-bottom: 1rem;
}

.newsletter-manifesto-block p:last-child {
    margin-bottom: 0;
}

/* Fullwidth image underneath manifesto */
.newsletter-fullwidth-image {
    margin-bottom: 2rem;
}

.newsletter-fullwidth-image img {
    width: 100%;
    display: block;
    border: 1px solid #DDD5C8;
    height: auto;
}

/* CTA buttons section */
.newsletter-cta-block {
    text-align: center;
    padding: 3rem 0;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.newsletter-cta-btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
}

.newsletter-cta-btn.primary {
    background-color: #2C2925;
    color: #F4EFE6;
    border: 1px solid #2C2925;
}

.newsletter-cta-btn.primary:hover {
    background-color: #3E3A35;
    border-color: #3E3A35;
}

.newsletter-cta-btn.secondary {
    background-color: transparent;
    color: #2C2925;
    border: 1px solid #2C2925;
}

.newsletter-cta-btn.secondary:hover {
    background-color: #2C2925;
    color: #F4EFE6;
}

/* Feedback section */
.newsletter-feedback-block {
    padding-bottom: 3rem;
    text-align: center;
}

.newsletter-feedback-block p {
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 300;
    line-height: 1.85;
    color: #7A7267;
    margin-bottom: 0.5rem;
}

.newsletter-feedback-block p:last-child {
    margin-bottom: 0;
}

/* Teaser block */
.newsletter-teaser-block {
    padding: 2.5rem 0;
    border-top: 1px solid #DDD5C8;
    border-bottom: 1px solid #DDD5C8;
    margin: 2rem 0;
}

.teaser-eyebrow {
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #8C7355;
    margin-bottom: 0.5rem;
}

.teaser-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 400;
    color: #2C2925;
    margin-bottom: 0.5rem;
}

.teaser-desc {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 300;
    line-height: 1.75;
    color: #7A7267;
    margin: 0;
}

/* Footer compliance block */
.newsletter-footer-compliance {
    background-color: #FFFFFF;
    border-top: 1px solid #E5E5E5;
    padding: 2.5rem 1.5rem;
    text-align: center;
    margin-top: 3rem;
}

.newsletter-footer-compliance p {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: #606060;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.newsletter-footer-compliance .compliance-links a {
    color: #8C7355;
    text-decoration: none;
    font-weight: 500;
}

.newsletter-footer-compliance .compliance-links a:hover {
    text-decoration: underline;
}

.newsletter-footer-compliance .compliance-address {
    font-family: var(--font-body);
    font-size: 0.7rem;
    color: #606060;
    margin-top: 0.75rem;
    line-height: 1.5;
}

/* Mobile responsive layout */
@media only screen and (max-width: 620px) {
    .newsletter-email-wrapper {
        padding: 2rem 1rem;
    }
    .newsletter-cta-block {
        flex-direction: column;
        gap: 1rem;
    }
    .newsletter-cta-btn {
        width: 100%;
        text-align: center;
    }
    .newsletter-pullquote-block {
        padding: 2rem 1.5rem;
    }
    .newsletter-manifesto-block {
        padding: 1.5rem;
    }
    .newsletter-series-tag {
        padding: 0 1rem;
        margin-bottom: 1rem;
    }
    .newsletter-logo-wrapper {
        padding: 0 1rem 1.5rem 1rem;
    }
    .newsletter-bts-divider {
        padding: 0 1rem;
    }
    .newsletter-bts-divider .bts-badge {
        font-size: 0.5rem;
        margin-left: 12px;
    }
}

/* ==========================================================================
   Comprehensive Responsive Refinements Pass (June 2026 Pass)
   ========================================================================== */

/* --- Prevent Logo wrapping under all conditions --- */
.logo-main, .logo-sub {
    white-space: nowrap !important;
}

/* --- Base Typography Refinements --- */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.25;
    letter-spacing: -0.01em;
}
h1 {
    line-height: 1.15;
}

/* --- Tablet Landscape (1024px–1194px) and Portrait (768px–834px) Navigation Fixes --- */
@media (max-width: 1100px) {
    /* Trigger Mobile Hamburger Menu early to avoid crowded horizontal nav on tablets */
    .menu-toggle {
        display: flex !important;
    }
    nav {
        display: none !important;
        position: fixed !important;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: var(--bg-primary);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3rem;
        z-index: 999;
    }
    nav.mobile-open {
        display: flex !important;
    }
    nav ul {
        flex-direction: column !important;
        align-items: center;
        gap: 2.5rem !important;
    }
    nav a {
        font-size: 1.1rem !important;
    }
    
    /* Collapse Two-Column layouts that feel squeezed on Tablet Landscape/Portrait */
    .service-details-grid,
    .project-details-grid,
    .post-layout,
    .media-grid,
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
    }
    
    .project-sidebar {
        position: static !important;
        padding: 2rem var(--p-gutter) !important;
    }

    /* Collapse Duplex/Penthouse Case Study Meta rows early */
    .hero-meta-row {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        margin-top: 2.5rem !important;
        padding-top: 1.5rem !important;
    }
    .meta-item::after {
        display: none !important;
    }
    .meta-item {
        border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
        padding-bottom: 1rem !important;
        margin-bottom: 0 !important;
    }
    .meta-item:last-child {
        border-bottom: none !important;
        padding-bottom: 0 !important;
    }
    
    /* Prevent considerations cards wrapping on tablet */
    .considerations-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 2rem !important;
    }
}

/* --- Laptop / Small Desktop (1200px–1366px wide) Spacing Refinements --- */
@media (max-width: 1366px) {
    /* Narrow the grid gap for Split rows so text columns don't feel too narrow */
    .split {
        gap: 3.5rem !important;
    }
    
    /* Slightly compress the header gaps and fonts on laptops to fit everything gracefully */
    nav ul {
        gap: 1.5rem !important;
    }
    nav a {
        font-size: 0.7rem !important;
    }
    header {
        padding: 1.5rem 2.5rem !important;
    }
    
    /* Scale down wide gaps for contact & projects */
    .contact-grid {
        gap: 4rem !important;
    }
    
    /* Keep journal cards readable on laptop screens */
    .journal-grid {
        gap: 2.5rem !important;
    }
    .journal-card-content {
        padding: 1.75rem !important;
    }
}

/* --- Medium Width (768px - 1200px) Layout Refinements --- */
@media (max-width: 1200px) {
    /* 2 columns for services on tablet/medium screen width (avoid 3-col squashing and 1-col dropping) */
    .services-list {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 2rem !important;
    }
    .service-item {
        padding: 2.25rem !important;
    }
}

/* --- Tablet Portrait / Mobile Landscape Height/Scroll Refinements --- */
@media (max-width: 1024px) {
    /* Prevent category navigation tabs from wrapping on tablet */
    .faq-nav {
        justify-content: flex-start !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-snap-type: x mandatory !important;
        padding-bottom: 1rem !important;
        gap: 1.5rem !important;
        margin-bottom: 2.5rem !important;
        -ms-overflow-style: none !important;
        scrollbar-width: none !important;
    }
    .faq-nav::-webkit-scrollbar {
        display: none !important;
    }
    .faq-nav-btn {
        flex-shrink: 0 !important;
    }
}

/* --- Projects & Portfolio Touch & Collapse refinements --- */
@media (max-width: 900px) {
    /* Collapse project card grid earlier for stunning, premium imagery on tablet portrait */
    .projects-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    .project-card.large {
        grid-column: span 1 !important;
        aspect-ratio: 1/1 !important;
    }
}

/* --- Heading Font Size Clamping for smaller widths --- */
@media (max-width: 768px) {
    h1 {
        font-size: clamp(1.8rem, 7.5vw, 2.5rem) !important;
    }
    h2 {
        font-size: clamp(1.4rem, 5vw, 1.8rem) !important;
    }
    h3 {
        font-size: clamp(1.1rem, 4.2vw, 1.35rem) !important;
    }
    
    /* Ensure the services list collapses to single-column on mobile */
    .services-list {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    .service-item {
        padding: 1.75rem 1.5rem !important;
    }
    
    /* Overwrite inline styles on about & services pages for margins and section paddings */
    .split[style*="gap: 4rem"] {
        gap: 2rem !important;
    }
    section[style*="padding: 6rem 0"],
    section[style*="padding: 3.6rem 0"] {
        padding: 3.5rem 0 !important;
    }
    div[style*="max-width: 800px"] {
        max-width: 100% !important;
    }
    div[style*="margin-bottom: 3rem"] {
        margin-bottom: 2rem !important;
    }
    h2[style*="font-size: 2.5rem"] {
        font-size: 1.8rem !important;
    }
}

/* --- Mobile Landscape Height & Sizing Safeguard --- */
@media (max-height: 500px) and (orientation: landscape) {
    #hero {
        height: auto !important;
        min-height: 100vh !important;
        padding: 6rem var(--p-gutter) 4rem var(--p-gutter) !important;
    }
    .hero-content h1 {
        font-size: 2.2rem !important;
        margin-bottom: 1rem !important;
    }
    .scroll-indicator {
        display: none !important;
    }
}

/* --- Mobile Portrait Extra Fine-Tuning (320px–430px wide) --- */
@media (max-width: 480px) {
    /* Prevent very long checkboxes/radios from getting cut off */
    .form-checkbox-group,
    .form-checkbox-group.grid-2-cols,
    .form-checkbox-group.grid-3-cols,
    .form-checkbox-group.grid-4-cols,
    .grid-4-cols,
    .grid-3-cols,
    .grid-2-cols {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    /* Scale down hero title for absolute premium fit */
    .hero-content h1 {
        font-size: 2.0rem !important;
    }
    
    /* Ensure small subpage hero elements have elegant breathing room */
    .subpage-hero {
        padding: 7rem 0 3.5rem 0 !important;
    }
    .subpage-content {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    /* Squeezed text inside cards optimization */
    .project-highlight-box,
    .service-highlight-box {
        padding: 1.5rem 1.25rem !important;
    }
}

/* ──────────────────────────────────────────────────────────── */
/* RESPONSIVE REFINEMENTS PASS: CARD, GRID & OVERFLOW PREVENTION */
/* ──────────────────────────────────────────────────────────── */

/* Ensure html and body can never scroll horizontally */
html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
}

/* Ensure flex and grid items can shrink past their contents to prevent overflowing the screen */
.grid, 
.grid-2-cols, 
.grid-3-cols, 
.grid-4-cols, 
.projects-grid, 
.reviews-grid, 
.services-list, 
.journal-grid, 
.media-grid, 
.contact-grid, 
.footer-grid, 
.service-details-grid, 
.project-details-grid, 
.post-layout,
.considerations-grid,
.related-projects-row {
    min-width: 0 !important;
}

/* Ensure cards and blocks shrink and fit their parents dynamically */
.project-card, 
.service-item, 
.journal-card, 
.step-card, 
.small-project-card, 
.media-sidebar, 
.contact-info-block, 
.form-container, 
.consideration-card,
.footer-brand, 
.footer-links, 
.footer-contact, 
.footer-social {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Global responsive word wrapping for all text elements to prevent any horizontal overflow */
p, span, h1, h2, h3, h4, h5, h6, li, label, input, textarea, button, form, td, th {
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
}

/* Specific long email and link wrapping styles across the entire site */
a, 
a[href^="mailto:"], 
a[href^="http://"], 
a[href^="https://"], 
.break-word,
.contact-item p a,
.footer-contact p a,
.media-sidebar-link,
#cms-footer-email {
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
    word-break: break-word !important; /* Supported in WebKit/Blink */
}

/* Ensure form labels and checkboxes wrap cleanly and never force single-line overflow */
.form-group > label,
.form-checkbox-label,
.form-checkbox-label span,
label {
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
    white-space: normal !important;
    display: inline-block !important;
    max-width: 100% !important;
}

/* Scale down large serif contact info text dynamically on smaller viewports */
.contact-item p {
    font-size: clamp(1.15rem, 5.5vw, 1.6rem) !important;
    line-height: 1.45 !important;
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
}

/* For extremely narrow viewports (e.g. iPhone SE / 320px-375px), force break-all on raw emails to prevent overflow */
@media (max-width: 480px) {
    a[href^="mailto:"], 
    a[href^="http://"], 
    a[href^="https://"],
    .contact-item p a,
    .footer-contact p a,
    #cms-footer-email {
        word-break: break-all !important;
    }
}

/* ──────────────────────────────────────────────────────────── */
/* COMPREHENSIVE RESPONSIVE GRID & CARD REFINEMENTS (GLOBAL FIXES) */
/* ──────────────────────────────────────────────────────────── */

/* Ensure defensive scaling and overflow-wrap properties for card text and general elements */
.project-card, 
.service-item, 
.journal-card, 
.step-card, 
.small-project-card, 
.media-sidebar, 
.contact-info-block, 
.form-container, 
.consideration-card,
.plan-card,
.footer-brand, 
.footer-links, 
.footer-contact, 
.footer-social {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Enforce robust word-wrapping globally on all text within cards, grids and details */
.project-card *,
.service-item *,
.journal-card *,
.step-card *,
.small-project-card *,
.consideration-card *,
.plan-card *,
.contact-info-block *,
.contact-item *,
.footer-contact * {
    overflow-wrap: anywhere !important;
    word-wrap: break-word !important;
}

/* Ensure no page can scroll sideways under any circumstances */
html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    width: 100% !important;
}

/* Responsive adjustments for 768px - 1024px (Tablet Portrait & Landscape) */
@media (max-width: 1024px) {
    /* Set considerations grid to 2 columns on tablet so it remains readable */
    .considerations-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 2rem !important;
    }
    
    /* Related projects row should fit cleanly in 2 columns on tablet */
    .related-projects-row {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 2rem !important;
    }
    .related-projects-row.count-1 {
        grid-template-columns: 1fr !important;
    }
    .related-projects-row.count-2 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Responsive adjustments for under 768px (Mobile Portrait & Landscape: 320px - 767px) */
@media (max-width: 767px) {
    /* Stack all cards/grids one per row on mobile portrait and mobile landscape */
    .considerations-grid,
    .services-list,
    .journal-grid,
    .projects-grid,
    .reviews-grid,
    .related-projects-row,
    .related-projects-row.count-2,
    .journal-checklist-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    /* Ensure project cards inside grids stack cleanly */
    .project-card {
        grid-column: span 1 !important;
        aspect-ratio: 1.2 / 1 !important;
    }
    
    .project-card.large {
        grid-column: span 1 !important;
        aspect-ratio: 1.2 / 1 !important;
    }
    
    /* Custom padding adjustment for considerations cards on mobile */
    .consideration-card {
        padding: 1.8rem !important;
    }
}

/* Mobile Portrait Extra Fine-Tuning (320px - 430px wide) */
@media (max-width: 430px) {
    /* Slightly tighter padding for considerations cards on narrow screens to maximize reading space */
    .consideration-card {
        padding: 1.5rem !important;
        gap: 1.2rem !important;
    }
}

