/* --- WARM EARTH & STONE IVORY DESIGN SYSTEM --- */
:root {
    --bg-color: #FAFAF0;         /* Primary crisp Stone Ivory backdrop */
    --nav-bg: #F3F3E6;           /* Slightly darker cream tone for header anchoring */
    --surface-color: #FFFFFF;    /* Overwritten: Pure white card background containers */
    --text-main: #231210;        /* Rich dark Espresso Brown text contrast mapping */
    --text-muted: #6B5955;       /* Muted earth tone for secondary layout copy */
    --accent: #4A2B20;           /* Rich Espresso Brown tone for button baselines */
    --accent-hover: #231210;     /* Darkest Earth Brown for hover response states */
    --brand-orange: #FF6B35;     /* High-contrast pumpkin orange brand highlight color */
    --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --gap-sm: 1rem;
    --gap-md: 2rem;
    --gap-lg: 4rem;
    --max-width: 1200px;
}

/* --- RESET & BASE STYLES --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

/* --- REUSABLE COMPONENTS --- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--gap-md);
}

section {
    padding: var(--gap-lg) 0;
    border-bottom: 1px solid rgba(35, 18, 16, 0.08); /* Thin organic split lines */
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--gap-md);
    letter-spacing: -0.05em;
}

.section-title span {
    color: var(--brand-orange);   /* Maps secondary layout headings directly to brand orange */
}

.btn {
    display: inline-block;
    background-color: var(--accent);
    color: #FAFAF0;              /* High contrast warm cream font tracking */
    padding: 0.8rem 2rem;
    border-radius: 6px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px); /* Soft modern lift effect */
}

/* --- HEADER & NAVIGATION (80PX FIXED) --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(243, 243, 230, 0.85); /* Darker cream frosted filter tracking */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(35, 18, 16, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;                /* FIXED HEIGHT ELEMENT CONSTRAINT */
}

.logo {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-main);
}

.logo span {
    color: var(--brand-orange);   /* STUDIOS renders in orange */
}

.nav-menu {
    display: flex;
    gap: var(--gap-md);
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

.nav-link:hover, .nav-link.active {
    color: var(--text-main);
}

/* Mobile Menu Toggle lines layout */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 1001;
}

.menu-toggle span {
    width: 30px;
    height: 2px;
    background-color: var(--text-main);
    transition: all 0.3s ease;
}

/* --- GLOBAL PRODUCTION ANNouncement NOTIFICATION STRIP (40PX) --- */

.global-notice-strip {
    position: fixed;
    top: 80px; /* Mounts perfectly flush beneath your strict 80px header line */
    left: 0;
    width: 100%;
    height: 40px; /* EXACT 40PX STRUCTURAL HEIGHT LOCK CONSTRAINT */
    background-color: var(--brand-orange, #FF6B35); /* High-contrast pumpkin orange pulse color */
    color: #FAFAF0; /* Crisp stone-ivory contrast text path color alignment */
    z-index: 990; /* Stacks just beneath your main navigation header tier box (1000) */
    border-bottom: 1px solid var(--text-main, #231210);
    display: flex;
    align-items: center;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

/* Structural flex wrapper handles perfect spacing and alignments across screens */
.notice-flex-wrapper {
    width: 100%;
    max-width: var(--max-width, 1200px);
    margin: 0 auto;
    padding: 0 var(--gap-md, 2rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notice-message {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin: 0 auto; /* Keeps the text string perfectly centered on wide monitors */
    padding-left: 24px; /* Optical balance compensation offset against the close icon */
}

/* Premium text underline decoration matches your editorial agency look */
.notice-message a {
    color: #FFFFFF;
    text-decoration: underline;
    font-weight: 700;
}
.notice-message a:hover {
    color: var(--text-main, #231210); /* Shifts to deep espresso on mouseover */
}

/* CLEAR DISMISS DISMISS TRIGGER ACTION MODULE */
.notice-dismiss-trigger {
    background: none;
    border: none;
    color: #FAFAF0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    transition: transform 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
}
.notice-dismiss-trigger:hover {
    color: var(--text-main, #231210);
    transform: scale(1.1);
}

/* CLOSED TRANSITION LOGIC STATE INJECTED VIA JAVASCRIPT */
.global-notice-strip.notice-hidden {
    transform: translateY(-40px);
    opacity: 0;
    pointer-events: none;
}

/* 📐 RESPONSIVE FLOW OFFSET RE-ADJUSTMENT OVERRIDES */
/* When the notification bar is uncommented, it adds 40px of fixed top height.
   We add an extra 40px margin buffer directly onto the hero section layer to prevent overlay clipping */
.global-notice-strip ~ #hero {
    margin-top: 40px;
    transition: margin-top 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Smoothly collapses the hero space upward the second the active strip is closed */
.global-notice-strip.notice-hidden ~ #hero {
    margin-top: 0px;
}


/* --- HERO SECTION --- */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;            /* Clear navigation layout buffer */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.hero-content {
    max-width: 540px;             /* Tighter sizing boundary layout card */
    position: relative;
    z-index: 2;
    background-color: rgba(255, 255, 255, 0.96);
    padding: var(--gap-md);
    border-radius: 12px;
    border: 1px solid var(--text-main); /* 1px Line Framework integration */
    box-shadow: 0 20px 40px rgba(35, 18, 16, 0.08);
    width: 100%;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.06em;
    margin-bottom: var(--gap-sm);
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: var(--gap-md);
}

/* --- SERVICES SECTION --- */
.services-grid {
    display: grid;
    /* Base setting: Clean three-column distribution track layout */
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap-md);
}

.service-card {
    background-color: var(--surface-color); /* Inherits crisp clean white */
    padding: var(--gap-md);
    border-radius: 12px;
    border: 1px solid var(--text-main);    /* 1px dark brutalist border update */
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: var(--brand-orange);
}

.service-icon {
    font-size: 2rem;
    margin-bottom: var(--gap-sm);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.service-card p {
    color: var(--text-muted);
}


.service-card-wide {
    /* Instructs the grid engine to stretch from the very first column marker track to the very last */
    grid-column: 1 / -1;

    /* Configures inner horizontal alignment text grouping for desktop viewports */
    display: flex;
    align-items: center;
    gap: var(--gap-md);
}

.wide-card-text-wrapper {
    flex: 1;
}

/* --- PORTFOLIO SECTION --- */
.portfolio-grid {
    display: grid;
    /* Default Desktop View: Perfect three-column layout grid matrix */
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap-md);
}
.portfolio-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background-color: var(--surface-color);
    border: 1px solid var(--text-main);    /* 1px structural framing */
}

.portfolio-placeholder {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Floating alignment text metadata row tracking rules */
.portfolio-overlay {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    max-width: calc(100% - 3rem);  /* Right-side alignment margin protection buffer */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    opacity: 1;
    z-index: 2;
}

.portfolio-overlay span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand-orange);
    margin-bottom: 0.4rem;
    font-weight: 700;
    text-shadow: 0 1px 4px rgba(250, 250, 240, 0.8); /* Guarantees readability */
}

/* --- UNIFIED 40PX SEAMLESS TITLE HIGHLIGHT TRACKER --- */
.portfolio-overlay h3.title-highlight {
    font-size: 2.5rem;            /* 40px equivalent text footprint */
    color: #231210 !important;    /* Espresso Dark Brown lock */
    font-weight: 700;
    line-height: 1.2;

    background-color: #FEF08A;    /* Vibrant highlighter yellow background */
    border-radius: 4px;
    border: none;

    /* Symmetrical top and bottom padding (0.15rem) for perfect vertical center balance */
   /* padding: 0.15rem 0.6rem;*/
   padding: 0.08rem 0.6rem 0.15rem 0.6rem;
    display: inline-block;
    vertical-align: middle;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

/* --- LEFT-ALIGNED LEADING ORANGE ARROW VECTOR --- */
.card-link-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: var(--brand-orange);   /* Vibrant brand orange */
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.4rem;         /* Snug horizontal gap before text */
    margin-top: -3px;             /* Optical micro-pixel vertical shift alignment */
    transition: transform 0.2s ease;
}

.portfolio-item:hover .card-link-icon {
    transform: translate(2px, -2px); /* Upward-right vector hover spring */
}

/* --- TIGHT STRIPPED COMING SOON SNIPPET --- */
.coming-soon-badge {
    position: absolute;
    bottom: 1.25rem;
    right: 1.25rem;
    background-color: #FFFFFF;
    color: var(--brand-orange);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    z-index: 2;
    padding: 0;                  /* Collapsed padding for tight highlight fit */
    box-shadow: none;             /* Stripped container shadow line markers */
}

.portfolio-card-anchor.coming-soon {
    cursor: not-allowed;
}

/* --- COLLECTIVE SECTION --- */
.collective-p {
    width: 100%;
    max-width: 100%;              /* Spans fully fluid layout container edges */
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: var(--gap-md);
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
    text-align: left;
}

.collective-lead {
    font-size: 1.35rem;
    color: var(--text-main); /* Forces your bold rich espresso dark brown color */
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    text-align: left;
    width: 100%;
}
.collective-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap-md);
}

.member-card {
    text-align: center;
    width: 100%;
}

.member-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: rgba(35, 18, 16, 0.04);
    margin: 0 auto var(--gap-sm);
    border: 1px solid var(--text-main); /* Framed profile outline system update */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.member-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
    white-space: nowrap;
}

.member-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    white-space: nowrap;
}

/* --- ABOUT US SECTION (OUR STORY) --- */
.about-layout-split {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--gap-lg);
    align-items: flex-start;
    width: 100%;
}

.about-text-column p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: var(--gap-sm);
    line-height: 1.7;
}

.about-text-column .about-lead {
    font-size: 1.35rem;
    color: var(--text-main);
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.about-stats-column {
    display: flex;
    flex-direction: column;
    gap: var(--gap-md);
    background-color: var(--surface-color); /* Crisp white backdrop */
    padding: var(--gap-md);
    border-radius: 12px;
    border: 1px solid var(--text-main); /* 1px structural framing */
}

.stat-item-block {
    border-bottom: 1px solid rgba(35, 18, 16, 0.08);
    padding-bottom: 1rem;
}

.stat-item-block:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--brand-orange);
    display: block;
    line-height: 1.1;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-main);
    font-weight: 500;
    margin-top: 0.25rem;
}

/* --- CONTACT US SECTION --- */
.contact-layout-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: var(--gap-lg);
    align-items: flex-start;
    width: 100%;
}

.contact-info-block .contact-lead {
    font-size: 1.35rem;
    color: var(--text-main);
    font-weight: 600;
    margin-bottom: 1rem;
}

.contact-info-block .contact-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: var(--gap-md);
    line-height: 1.7;
}

.contact-direct-channels p {
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.contact-direct-channels strong {
    color: var(--brand-orange);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    background-color: var(--surface-color); /* Pure white lift container layer */
    padding: var(--gap-md);
    border-radius: 12px;
    border: 1px solid var(--text-main); /* Thick brutalist bounding frame */
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
}


/* Input elements customized to receive 1px dark boundaries */
.form-group input,
.form-group textarea {
    font-family: var(--font-sans);
    font-size: 1rem;
    padding: 0.75rem 1rem;
    background-color: var(--bg-color); /* Soft ivory slot fields */
    border: 1px solid var(--text-main); /* Linked directly to dark font color */
    border-radius: 6px;
    color: var(--text-main);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
}

/* --- INLINE CONTACT FORM FEEDBACK SYSTEM --- */
.form-status-notice {
    margin-top: 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: left;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

/* Informational feedback colors coordinate with your system palette variables */
.form-status-notice.processing {
    color: var(--text-muted); /* Warm slate gray-brown tracking code */
}

.form-status-notice.success {
    color: var(--brand-orange); /* Vibrant signature brand pumpkin orange pulse notice */
}

.form-status-notice.error {
    color: #DC2626; /* Warning red fallback color layer for structural or API safety faults */
}

/* ==========================================================================
   PREMIUM LIGHT-BRUTALIST SUCCESS MODAL FRAMEWORK
   ========================================================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(35, 18, 16, 0.4); /* Elegant warm translucent espresso layer */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000; /* Stacks confidently above your fixed 80px navigation header bar */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--gap-md);

    /* Layout State Transitions */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Modal Open Hook Activated by JavaScript */
.modal-overlay.modal-active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background-color: #FAFAF0; /* Symmetrical crisp Stone Ivory card surface */
    max-width: 480px;
    width: 100%;
    padding: 3rem 2rem 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--text-main); /* Light Brutalist signature wire border */
    box-shadow: 0 30px 60px rgba(35, 18, 16, 0.15);
    text-align: center;

    /* Interactive Entrance Scale Animation */
    transform: scale(0.92) translateY(10px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.modal-active .modal-card {
    transform: scale(1) translateY(0);
}

/* VIBRANT BRAND ORANGE AVATAR RING */
.modal-checkmark-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #FFFFFF;
    color: var(--brand-orange); /* Vibrant orange checkmark path */
    border: 1px solid var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 20px rgba(255, 107, 53, 0.12);
}

.modal-card h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.04em;
    margin-bottom: 0.75rem;
}

.modal-card p {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* MODAL DISMISS PILL SELECTION BUTTON */
.modal-dismiss-btn {
    background-color: var(--text-main); /* Deep espresso brown filling */
    color: #FAFAF0;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0.8rem 2rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.modal-dismiss-btn:hover {
    background-color: var(--brand-orange); /* Snaps beautifully to orange on mouse hover */
}

/* --- LOCATIONS SECTION --- */
.locations-grid {
    display: grid;
    /* Default Desktop View: Perfect three-column track distribution */
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap-md);
}

.locations-lead {
    font-size: 1.35rem;
    color: var(--text-main);
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.5;
    text-align: left;
    width: 100%;
}

/* Secondary supporting blurb tracking matching your standard text fields */
.locations-p {
    width: 100%;
    max-width: 100%;
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: var(--gap-md); /* Keeps a comfortable space cushion before the grid begins */
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
    text-align: left;
}

.location-card {
    background-color: var(--surface-color); /* White block background color */
    padding: var(--gap-md);
    border-radius: 12px;
    border: 1px solid var(--text-main); /* Outlined outer frame */
    border-left: 4px solid var(--brand-orange); /* Vibrant orange indicator stripe */
}

.location-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.location-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

/* --- FOOTER & SPACIOUS SOCIALS --- */
footer {
    padding: var(--gap-md) 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid rgba(35, 18, 16, 0.08);
}

.footer-content-flex {
    display: flex;
    justify-content: space-between; /* Links stay split layout to absolute outer edges */
    align-items: center;
    gap: var(--gap-md);
    width: 100%;
}

.footer-social-row {
    display: flex;
    align-items: center;
    gap: 1.75rem;                 /* Expanded separation margin width between text icons */
}

.social-icon-link {
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, transform 0.2s ease;
}

.social-icon-link:hover {
    color: var(--text-main);
    transform: translateY(-1.5px);
}

/* --- RESPONSIVE MEDIA QUERIES --- */

/* ==========================================================================
   RESPONSIVE MEDIA Breakpoints (CLEAN HANDOFF MATRIX)
   ========================================================================== */

   /* ==========================================================================
      PORTMANDAU STUDIOS GLOBAL RESPONSIVE MATRIX
      ========================================================================== */

   /* --------------------------------------------------------------------------
      📱 TIER 1: LAPTOPS, TABLETS & COMPRESSED BROWSERS (968px and Down)
      -------------------------------------------------------------------------- */
   @media (max-width: 968px) {
       html {
           font-size: 15px; /* Scales down the root REM typography math globally */
       }

       .hero-content h1 {
           font-size: 3.2rem; /* Tightens the hero bold statement layout size */
       }

       /* ABOUT US SECTION MOBILE STACK */
       .about-layout-split {
           grid-template-columns: 1fr; /* Collapses summary and stats to a single row */
           gap: var(--gap-md);
       }
       .portfolio-grid {
           /* Snaps your three cards instantly into a uniform vertical list */
           grid-template-columns: 1fr;

           /* Comfortable layout spacing safety buffer optimized for mobile scrolling */
           gap: var(--gap-sm, 1rem);
       }
       .collective-grid {
           grid-template-columns: 1fr;

           /* Updated: Increased vertical gap from a tight --gap-sm (1rem)
              to var(--gap-md) (2rem / 32px) to prevent card blending */
           gap: var(--gap-md);
       }
       .locations-grid {
           /* Snaps the layout directly into a unified single column list */
           grid-template-columns: 1fr;

           /* Comfortable thumb-scrolling padding safety buffer */
           gap: var(--gap-sm, 1rem);
       }

       /* CONTACT US SECTION MOBILE STACK */
       .contact-layout-grid {
           grid-template-columns: 1fr; /* Pushes the contact form directly under your text summary */
           gap: var(--gap-md);
       }
   }

   /* --------------------------------------------------------------------------
      💻 TIER 2: WIDESCREEN DESKTOP MONITORS (969px and Up)
      -------------------------------------------------------------------------- */
   @media (min-width: 969px) {
       /* Ultra-tight top padding override matching your large 40px portfolio headers */
       .portfolio-overlay h3.title-highlight {
           padding: 0.02rem 0.6rem 0.12rem 0.6rem;
       }

       /* Perfect optical center vector shift for the brand-orange link icon arrow */
       .card-link-icon {
           margin-top: -4px;
       }
   }

   /* --------------------------------------------------------------------------
      💻 TIER 3: MID-SIZE TABLET SERVICES TRACKING (769px to 1024px)
      -------------------------------------------------------------------------- */
   @media (max-width: 1024px) and (min-width: 769px) {
       .services-grid {
           grid-template-columns: repeat(2, 1fr); /* Restructures core services grid into two columns */
       }

       .service-card-wide {
           grid-column: 2 / 3; /* Slides the wide card up to sit perfectly flush next to card 3 on row 2 */
           display: flex;
           flex-direction: column;
           align-items: flex-start;
       }
   }

   /* --------------------------------------------------------------------------
      📱 TIER 4: PORTRAIT SMARTPHONES & DRAWER MENUS (768px and Down)
      -------------------------------------------------------------------------- */
   @media (max-width: 768px) {
       :root {
           --gap-lg: 3rem; /* Slightly compacts spacing depths for easy scrolling access */
       }

       /* Core Services Grid Mobile Simplification */
       .services-grid {
           grid-template-columns: 1fr; /* Stacks all four services cards into a clean vertical list */
       }

       .service-card-wide {
           grid-column: auto; /* Dissolves custom layout column paths to flow natively */
           display: flex;
           flex-direction: column;
           align-items: flex-start;
           gap: 0.5rem;
       }

       /* Mobile Hamburger Overlay Navigation Drawer Configuration */
       .menu-toggle {
           display: flex;
       }

       .nav-menu {
           position: fixed;
           top: 80px; /* Aligns flush beneath your strict 80px fixed navigation height line */
           left: 0;
           width: 100%;
           height: calc(100vh - 80px);
           background-color: var(--nav-bg);
           flex-direction: column;
           align-items: center;
           padding-top: var(--gap-lg);
           gap: var(--gap-md);
           transform: translateX(100%);
           transition: transform 0.3s ease-in-out;
       }

       .nav-menu.active {
           transform: translateX(0);
       }

       .nav-link {
           font-size: 1.5rem;
       }

       /* Drawer Hamburger Cross-Over Vector Animation States */
       .menu-toggle.active span:nth-child(1) {
           transform: rotate(45deg) translate(6px, 6px);
       }
       .menu-toggle.active span:nth-child(2) {
           opacity: 0;
       }
       .menu-toggle.active span:nth-child(3) {
           transform: rotate(-45deg) translate(5px, -5px);
       }

       .hero-content h1 {
           font-size: 2.8rem;
       }

       /* Protective Mobile Downscale: Resizes the 40px portfolio headers so they don't break cards */
       .portfolio-overlay h3.title-highlight {
           font-size: 1.5rem;
       }
   }

   /* --------------------------------------------------------------------------
      📱 TIER 5: ULTRA-NARROW PHONE MARGIN PROTECTION (540px and Down)
      -------------------------------------------------------------------------- */
   @media (max-width: 540px) {
       /* Hero container bezel buffer prevents text cards from touching screen edges */
       #hero {
           padding-left: var(--gap-sm);
           padding-right: var(--gap-sm);
       }

       .hero-content {
           padding: 1.75rem 1.25rem;
       }

       /* Flips footer structures into a centered, vertically stacked layout */
       .footer-content-flex {
           flex-direction: column-reverse;
           text-align: center;
           gap: var(--gap-sm);
       }

       .footer-social-row {
           gap: 2rem; /* Comfortable touch targeting padding for the five social icon vectors */
       }
   }
