/* Page-specific styles for index.html */
/* Hero - aligned with products page hero */
      .hero {
        position: relative;
        overflow: hidden;
        background: radial-gradient(1200px 500px at 70% -10%, rgba(217,181,69,0.12), transparent),
          linear-gradient(var(--surface-dark), var(--surface-dark-2));
        min-height: 240px;
        display: flex;
        align-items: center;
        border: none;
        border-bottom: none;
        border-top: none;
      }
      .hero::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 42%;
        pointer-events: none;
        z-index: 2;
        background: linear-gradient(
          to top,
          var(--bg) 0%,
          rgba(51, 51, 51, 0.88) 18%,
          rgba(51, 51, 51, 0.52) 42%,
          rgba(51, 51, 51, 0.18) 72%,
          rgba(51, 51, 51, 0) 100%
        );
      }
      .hero-background {
        position: absolute;
        inset: 0;
        overflow: hidden;
        z-index: 0;
      }
      .hero-background picture {
        position: absolute;
        inset: 0;
        display: block;
        width: 100%;
        height: 100%;
      }
      .hero-background img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center 50%;
        position: absolute;
        inset: 0;
        display: block;
        transform: none;
        filter: saturate(110%);
        opacity: 0;
        transition: opacity 0.8s ease;
        pointer-events: none;
      }
      .hero-background img.hero-image--active {
        opacity: 1;
        z-index: 0;
      }
      .hero-background img.hero-image--previous {
        opacity: 0;
        z-index: -1;
      }
      .hero-background::before {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background:
          radial-gradient(120% 90% at 50% 52%, rgba(11,11,12,0.22) 0%, rgba(11,11,12,0.14) 34%, rgba(11,11,12,0.06) 62%, rgba(11,11,12,0) 100%),
          linear-gradient(to right, rgba(11,11,12,0.12) 0%, rgba(11,11,12,0.04) 18%, rgba(11,11,12,0) 32%, rgba(11,11,12,0) 68%, rgba(11,11,12,0.04) 82%, rgba(11,11,12,0.12) 100%),
          linear-gradient(to top, rgba(11,11,12,0.34) 0%, rgba(11,11,12,0.24) 16%, rgba(11,11,12,0.14) 34%, rgba(11,11,12,0.07) 54%, rgba(11,11,12,0.03) 74%, rgba(11,11,12,0.01) 88%, rgba(11,11,12,0) 100%);
        z-index: 2;
      }
      .hero-blur-layer {
        position: absolute;
        inset: 0;
        z-index: 1;
        pointer-events: none;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        mask-image: linear-gradient(to top, rgba(0,0,0,0.62) 0%, rgba(0,0,0,0.48) 14%, rgba(0,0,0,0.3) 30%, rgba(0,0,0,0.16) 48%, rgba(0,0,0,0.08) 66%, rgba(0,0,0,0.03) 82%, rgba(0,0,0,0.01) 92%, rgba(0,0,0,0) 100%);
        -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.62) 0%, rgba(0,0,0,0.48) 14%, rgba(0,0,0,0.3) 30%, rgba(0,0,0,0.16) 48%, rgba(0,0,0,0.08) 66%, rgba(0,0,0,0.03) 82%, rgba(0,0,0,0.01) 92%, rgba(0,0,0,0) 100%);
      }
      .hero-overlay {
        position: relative;
        z-index: 3;
        width: 100%;
        padding: 66px 0;
        border-bottom: none;
      }
      .hero-copy {
        max-width: 520px;
        text-align: left;
        margin: 0 auto 0 clamp(28px, 8vw, 132px);
        position: relative;
        z-index: 1;
        padding: 26px 30px;
      }
      .hero-copy::before {
        content: "";
        position: absolute;
        inset: -10px -18px;
        z-index: -1;
        border-radius: 32px;
        background:
          radial-gradient(78% 120% at 50% 50%, rgba(11,11,12,0.44) 0%, rgba(11,11,12,0.28) 44%, rgba(11,11,12,0.12) 72%, rgba(11,11,12,0.03) 88%, rgba(11,11,12,0) 100%);
        filter: blur(8px);
      }
      .eyebrow { color: var(--muted); text-transform: uppercase; letter-spacing: 0.24em; font-size: 0.82rem; margin-bottom: 12px; font-weight: 600; text-shadow: none; }
      .hero h1 { font-size: clamp(42px, 5vw, 62px); line-height: 1.13; margin: 0 0 14px; max-width: 11ch; text-shadow: none; }
      .hero p { font-size: 1.1em; line-height: 1.6; color: var(--muted); margin: 0; }
      .hero .eyebrow { color: #D8D1C8; }
      .hero h1 { color: var(--surface-light); }
      .hero p { color: #E7E1D8; }
      .hero-title {
        display: flex;
        flex-wrap: wrap;
        gap: 0.1em 0.24em;
        align-items: flex-end;
        overflow: visible;
        font-weight: 600;
      }
      .hero-title-word {
        display: inline-flex;
        align-items: flex-end;
        white-space: nowrap;
        overflow: visible;
      }
      .hero-title-initial,
      .hero-title-rest,
      .hero-subheading,
      .hero-actions {
        opacity: 0;
      }
      .hero-title-initial {
        display: inline-block;
        animation: heroInitialFade 0.42s cubic-bezier(0.22, 1, 0.36, 1) forwards;
      }
      .hero-title-rest {
        display: inline-block;
        transform: translateX(-0.24em);
        animation: heroRestReveal 0.72s cubic-bezier(0.22, 1, 0.36, 1) forwards;
      }
      .hero-title-word:nth-child(1) .hero-title-initial { animation-delay: 0.08s; }
      .hero-title-word:nth-child(2) .hero-title-initial { animation-delay: 0.46s; }
      .hero-title-word:nth-child(3) .hero-title-initial { animation-delay: 0.68s; }
      .hero-title-word:nth-child(1) .hero-title-rest { animation-delay: 0.96s; }
      .hero-title-word:nth-child(2) .hero-title-rest { animation-delay: 1.08s; }
      .hero-title-word:nth-child(3) .hero-title-rest { animation-delay: 1.2s; }
      .hero-subheading {
        max-width: 34ch;
        margin: 0;
        font-size: 1rem;
        line-height: 1.45;
        animation: heroContentFade 0.6s ease forwards;
        animation-delay: 1.56s;
      }
      .hero-actions {
        display: flex;
        align-items: center;
        gap: 12px;
        flex-wrap: wrap;
        margin-top: 22px;
        animation: heroContentFade 0.6s ease forwards;
        animation-delay: 1.76s;
      }
      .hero-actions .btn-primary {
        min-width: 220px;
        justify-content: center;
      }
      @keyframes heroInitialFade {
        from {
          opacity: 0;
          transform: translateY(16px) scale(0.92);
        }
        to {
          opacity: 1;
          transform: translateY(0) scale(1);
        }
      }
      @keyframes heroRestReveal {
        from {
          opacity: 0;
          transform: translateX(-0.24em);
        }
        to {
          opacity: 1;
          transform: translateX(0);
        }
      }
      @keyframes heroContentFade {
        from {
          opacity: 0;
          transform: translateY(12px);
        }
        to {
          opacity: 1;
          transform: translateY(0);
        }
      }
      @media (prefers-reduced-motion: reduce) {
        .hero-title-initial,
        .hero-title-rest,
        .hero-subheading,
        .hero-actions {
          opacity: 1;
          animation: none;
          transform: none;
          filter: none;
          clip-path: inset(0 0 0 0);
        }
      }
      html.pref-high-contrast .hero-background::before {
        background: linear-gradient(to top, rgba(248,250,252,1) 0%, rgba(248,250,252,0.99) 10%, rgba(248,250,252,0.95) 20%, rgba(248,250,252,0.88) 30%, rgba(248,250,252,0.75) 40%, rgba(248,250,252,0.6) 50%, rgba(248,250,252,0.45) 60%, rgba(248,250,252,0.3) 70%, rgba(248,250,252,0.18) 80%, rgba(248,250,252,0.1) 85%, rgba(248,250,252,0.05) 90%, rgba(248,250,252,0.02) 95%, rgba(248,250,252,0) 100%);
      }
      html.pref-high-contrast .hero-blur-layer {
        mask-image: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0.99) 10%, rgba(0,0,0,0.95) 20%, rgba(0,0,0,0.88) 30%, rgba(0,0,0,0.75) 40%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.45) 60%, rgba(0,0,0,0.3) 70%, rgba(0,0,0,0.18) 80%, rgba(0,0,0,0.1) 85%, rgba(0,0,0,0.05) 90%, rgba(0,0,0,0.02) 95%, rgba(0,0,0,0) 100%);
        -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0.99) 10%, rgba(0,0,0,0.95) 20%, rgba(0,0,0,0.88) 30%, rgba(0,0,0,0.75) 40%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.45) 60%, rgba(0,0,0,0.3) 70%, rgba(0,0,0,0.18) 80%, rgba(0,0,0,0.1) 85%, rgba(0,0,0,0.05) 90%, rgba(0,0,0,0.02) 95%, rgba(0,0,0,0) 100%);
      }
      .hero strong { color: var(--accent); }
      section p strong { color: var(--accent); }

      /* Testimonials Section */
      .testimonials-grid {
        position: relative;
        width: 100%;
        height: 100%;
        min-height: 400px;
      }
      .testimonial {
        background: var(--card);
        border: 1px solid var(--border);
        border-radius: 16px;
        padding: 30px;
        position: absolute;
        z-index: 1;
        width: 85%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        opacity: 0;
        pointer-events: none;
        left: 0;
        top: 0;
        transform: translateX(0) translateY(0);
        transition: opacity 0.3s ease;
      }
      .testimonial.testimonial-active {
        opacity: 1;
        pointer-events: auto;
      }
      .testimonial.testimonial-hidden {
        display: none;
      }
      .testimonial.testimonial-animating {
        transition: none;
      }
      .testimonial-quote {
        font-size: 1.1em;
        line-height: 1.6;
        color: var(--text);
        margin: 0 0 20px;
        font-style: italic;
      }
      .testimonial-author {
        display: flex;
        align-items: center;
        gap: 12px;
      }
      .testimonial-avatar {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background: var(--bg-2);
        border: 2px solid var(--accent);
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
      }
      .testimonial-avatar i {
        font-size: 24px;
        color: var(--muted);
      }
      .testimonial-author-info {
        display: flex;
        flex-direction: column;
      }
      .testimonial-author-name {
        font-weight: 600;
        color: var(--accent);
        font-size: 0.95em;
      }
      .testimonial-author-role {
        font-size: 0.85em;
        color: var(--muted);
      }
      .testimonial[data-position="1"].testimonial-active {
        z-index: 2;
        height: 50%;
        transform: translateX(0) translateY(0);
      }
      .testimonial[data-position="2"].testimonial-active {
        z-index: 1;
        height: 50%;
        /* Position will be set by JavaScript */
      }
      .testimonial[data-position="3"] {
        display: none;
      }
      /* Phone + tablet: stack cards statically. Desktop absolute/slide layout needs a wide column. */
      @media (max-width: 1024px) {
        .testimonials-grid {
          position: static;
          min-height: 0;
        }
        .testimonial,
        .testimonial[data-position="1"].testimonial-active,
        .testimonial[data-position="2"].testimonial-active {
          position: relative;
          width: 100%;
          height: auto;
          min-height: 0;
          left: auto;
          top: auto;
          transform: none;
          margin-bottom: 16px;
        }
        .testimonial.testimonial-active {
          opacity: 1;
          pointer-events: auto;
        }
      }

      /* Services */
      section { padding: 15px 0; }
      .section-title { font-size: clamp(28px, 3vw, 44px); margin: 0 0 18px; text-align: center; color: var(--accent); text-shadow: 0 1px 0 rgba(0,0,0,0.2); }
      .cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 1200px; margin: 0 auto; justify-items: center; }
      .card { background: var(--card); border: 1px solid var(--border); border-top: 3px solid var(--accent); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
      .card[data-href] { cursor: pointer; }
      .card[data-href]:focus-within, .card[data-href].kbd-focus { outline: 2px solid var(--focus); outline-offset: 2px; }
      .card img { height: 180px; object-fit: cover; border-bottom: 1px solid var(--border); }
      .card-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
      .card h3 { font-size: 16px; margin: 0; font-weight: 600; color: var(--text); border-bottom: 2px solid var(--accent); padding-bottom: 8px; }
      .card p { margin: 0; color: var(--muted); font-size: 14px; }
      .card .link { margin-top: auto; font-weight: 600; color: var(--link); }
      .card .link:hover { color: #f0cc57; text-decoration: underline; }

      /* Why Choose Us */
      .stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; justify-items: center; max-width: 1700px; margin: 0 auto; position: relative; padding-bottom: 0; }
      .stat { background: #333333; border: 1px solid var(--border); border-radius: 16px; padding: 16px 16px 38px; text-align: center; width: 100%; position: relative; overflow: hidden; cursor: pointer; transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease; }
      .stat:hover,
      .stat:focus-visible,
      .stat.kbd-focus {
        transform: translateY(-2px);
        border-color: var(--accent);
        box-shadow: inset 0 0 0 1px rgba(217,181,69,0.32), 0 10px 24px rgba(0, 0, 0, 0.18);
      }
      .stat::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(
          120deg,
          rgba(0,0,0,0) 40%,
          rgba(217,181,69,0.7) 50%,
          rgba(0,0,0,0) 60%
        );
        transform: translateX(-150%);
        transition: none;
        animation: none;
        pointer-events: none;
      }
      .stat::after {
        content: "View details";
        position: absolute;
        left: 50%;
        bottom: 12px;
        transform: translateX(-50%);
        font-size: 11px;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: var(--accent);
        opacity: 0.88;
        white-space: nowrap;
        pointer-events: none;
      }
      .stat.stat-shimmer-animating::before,
      .stat-shimmer-stack-item.stat-shimmer-animating {
        animation: stat-shimmer 1.2s ease forwards;
      }
      @keyframes stat-shimmer {
        from {
          transform: translateX(-150%);
        }
        to {
          transform: translateX(150%);
        }
      }
      .stat-shimmer-stack-item {
        background: linear-gradient(
          120deg,
          rgba(0,0,0,0) 40%,
          rgba(217,181,69,0.7) 50%,
          rgba(0,0,0,0) 60%
        );
        transform: translateX(-150%);
      }
      .stat .big { font-size: 22px; font-weight: 700; margin-bottom: 6px; color: var(--accent); }
      .stat .small { color: var(--muted); font-size: 13px; }

      /* Ambient muted video: keep <track> for audits, never paint cues */
      #hero-video::cue {
        display: none;
      }
      
      /* Stat pixel card overlay: absolutely positioned at top of spacer area, fixed position */
      .stat-pixel-overlay {
        position: absolute;
        top: calc(100% + 24px);
        left: 0;
        right: 0;
        z-index: 900;
        display: none;
        pointer-events: auto; /* capture clicks to allow click-off-to-close */
      }
      .stat-pixel-overlay.is-open {
        display: block;
      }
      .stat-pixel-spacer {
        height: 0;
        margin-top: 24px;
        transition: height 0.3s ease;
        visibility: hidden;
        /* Spacer is in document flow and pushes content down */
      }
      .stat-pixel-spacer:not([aria-hidden="true"]) {
        visibility: visible;
      }
      .stat-pixel-overlay-inner {
        position: relative;
        width: 100%;
        pointer-events: none; /* keep inner layout from blocking overlay click detection */
      }
      .stat-pixel-backdrop {
        display: none; /* no full-screen dimming */
      }
      .stat-pixel-wrapper {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        max-width: 100%;
        width: 100%;
        transform-origin: center top;
        pointer-events: auto;
      }
      .stat-pixel-close {
        position: absolute;
        top: 12px;
        right: 12px;
        z-index: 2;
        background: rgba(0,0,0,0.6);
        border: 1px solid var(--border);
        color: var(--text);
        border-radius: 999px;
        width: 32px;
        height: 32px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        display: none; /* hide the X; close via click-off instead */
      }
      .stat-pixel-card-content {
        position: relative;
        padding: 28px 28px 32px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        gap: 14px;
        text-align: left;
        /* Start hidden, fade in when card is marked as built */
        opacity: 0;
        clip-path: circle(0px at var(--pixel-origin-x, 50%) 0%);
        -webkit-clip-path: circle(0px at var(--pixel-origin-x, 50%) 0%);
        transition: opacity 0.64s ease, clip-path 0.5s ease;
        transition-delay: 0s;
      }
      .stat-pixel-title {
        margin: 0;
        font-size: 24px;
        font-weight: 700;
        color: var(--accent);
      }
      .stat-pixel-subtitle {
        margin: 0;
        font-size: 16px;
        color: var(--text);
      }
      .stat-pixel-body {
        margin: 0;
        font-size: 14px;
        color: var(--muted);
      }
      /* Make stat pixel card fill the full stats width and ignore pixel canvas for now */
      #stat-pixel-card {
        width: 100%;
        min-height: 220px;
        border-radius: 16px;
        border: 1px solid transparent;
        background: transparent;
        transition: border-color 3s ease;
      }
      #stat-pixel-card.pixel-static-bg {
        background: #333333;
      }
      #stat-pixel-card .pixel-canvas {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        display: block;
      }

      /* Text fades in only after pixel build is complete */
      #stat-pixel-card.pixels-built .stat-pixel-card-content {
        opacity: 1;
        clip-path: circle(160% at var(--pixel-origin-x, 50%) 0%);
        -webkit-clip-path: circle(160% at var(--pixel-origin-x, 50%) 0%);
        transition-delay: var(--text-delay, 0.2s);
      }
      #stat-pixel-card.pixels-built {
        border-color: var(--border);
      }

      /* No extra rule – JS controls text opacity directly */

      /* Contact Section */
      .form-grid { display: flex; justify-content: center; gap: 18px; }
      @media (max-width: 720px) { .form-grid { flex-direction: column; align-items: stretch; } }
      .form-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 18px; }
      label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
      input, select, textarea { width: 100%; background: var(--bg-2); color: var(--text); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; outline: none; }
      input:focus, select:focus, textarea:focus { border-color: var(--focus); box-shadow: 0 0 0 3px rgba(59,130,246,0.2); }
      .btn-primary { padding: 12px 16px; background: var(--accent); border: none; border-radius: 10px; color: var(--accent-contrast); font-weight: 700; cursor: pointer; box-shadow: 0 8px 20px rgba(217,181,69,0.28); transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease; }
      .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(217,181,69,0.38); filter: brightness(0.96); }
      .note { color: var(--muted); font-size: 12px; margin-top: 8px; }
      .cta-card { 
        background: var(--card); 
        border: 1px solid var(--border); 
        border-radius: 16px; 
        padding: 40px; 
        text-align: center;
        box-shadow: 0 4px 20px rgba(0,0,0,0.3);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        display: flex;
        flex-direction: column;
      }
      .cta-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 24px rgba(0,0,0,0.4);
      }
      .cta-card h2 { 
        font-size: 32px; 
        margin: 0 0 16px; 
        color: var(--text);
      }
      .cta-card p { 
        color: var(--muted); 
        margin-bottom: 24px; 
        font-size: 1.1em;
        line-height: 1.6;
      }
      .cta-card .btn-primary { 
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 16px 24px;
        font-size: 16px;
        margin-top: auto;
        margin-left: auto;
        margin-right: auto;
        text-decoration: none;
        max-width: 280px;
        width: 100%;
      }
      .cta-card .note { 
        font-size: 14px;
        margin-top: 0;
      }
      .contact-options {
        display: flex;
        gap: 20px;
        justify-content: center;
        flex-wrap: wrap;
        margin-bottom: 24px;
      }
      .contact-option {
        display: flex;
        align-items: center;
        gap: 8px;
        color: var(--muted);
        text-decoration: none;
        font-size: 15px;
        min-height: 44px;
        padding: 10px 8px;
        transition: color 0.2s ease;
      }
      .contact-option:hover {
        color: var(--accent);
      }
      .contact-option i {
        font-size: 18px;
      }
      .cta-boxes {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        max-width: 1680px;
        margin: 0 auto;
      }
      .business-box {
        background: var(--card);
        border: 1px solid var(--border);
        border-radius: 16px;
        padding: 40px;
        text-align: center;
        box-shadow: 0 4px 20px rgba(0,0,0,0.3);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        display: flex;
        flex-direction: column;
      }
      .business-box:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 24px rgba(0,0,0,0.4);
      }
      .business-box h2 {
        font-size: 32px;
        margin: 0 0 16px;
        color: var(--text);
      }
      .business-box p {
        color: var(--muted);
        margin-bottom: 24px;
        font-size: 1.1em;
        line-height: 1.6;
      }
      .business-box .btn-primary {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 16px 24px;
        font-size: 16px;
        text-decoration: none;
        margin-top: auto;
        max-width: 280px;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
      }
      .case-studies-banner-section {
        padding: 60px 0;
      }
      .case-studies-banner-link {
        position: relative;
        display: block;
        width: 100%;
        min-height: 240px;
        border-radius: 16px;
        overflow: hidden;
        border: 4px solid var(--accent);
        text-decoration: none;
        box-shadow: 0 4px 20px rgba(0,0,0,0.3);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
      }
      .case-studies-banner-link:hover {
        transform: scale(1.05);
        box-shadow: 0 6px 24px rgba(0,0,0,0.4);
      }
      .case-studies-banner-link img {
        width: 100%;
        height: 100%;
        min-height: 240px;
        object-fit: cover;
        display: block;
      }
      .case-studies-banner-link::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.2));
      }
      .case-studies-banner-text {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        z-index: 1;
        text-align: center;
        color: #F5F1EC;
        font-size: clamp(24px, 3.2vw, 48px);
        font-weight: 700;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        text-shadow: 0 4px 12px rgba(0,0,0,0.55);
        padding: 0 18px;
      }
      @media (max-width: 960px) {
        .cta-boxes {
          grid-template-columns: 1fr;
        }
        .case-studies-banner-link,
        .case-studies-banner-link img {
          min-height: 168px;
        }
      }

      /* Editable text highlighting */
      [contenteditable="true"] {
        outline: 1px dashed rgba(217, 181, 69, 0.3);
        outline-offset: 2px;
        cursor: text;
      }
      [contenteditable="true"]:hover {
        outline: 1px dashed rgba(217, 181, 69, 0.6);
        background: rgba(217, 181, 69, 0.05);
      }
      [contenteditable="true"]:focus {
        outline: 2px solid var(--accent);
        background: rgba(217, 181, 69, 0.08);
      }

      /* Responsive */
      @media (max-width: 1400px) {
        .hero-media { height: 550px; }
      }
      @media (max-width: 1200px) {
        .header-inner { gap: 18px; }
        .menu .nav-center { gap: 12px; }
        .hero-media { height: 475px; }
      }
      @media (max-width: 960px) {
        .logo-image { height: 52px; }
        .logo-image-fami { height: 23px; }
        .hero { min-height: 168px; }
        .hero-overlay { padding: 48px 0 44px; }
        .hero h1 { font-size: 48px; }
        .hero p { max-width: none; }
        .hero-copy {
          max-width: 500px;
          margin-left: clamp(20px, 5vw, 56px);
        }
        .cards { grid-template-columns: 1fr; }
        .stats { grid-template-columns: 1fr 1fr; }
      }
        @media (max-width: 720px) {
          .header-inner { padding: 12px 20px; }
          .logo-image { height: 46px; }
          .logo-image-fami { height: 21px; }
          .header-bottom { position: relative; }
          .menu { display: none; }
          .hero-copy {
            margin: 0 auto;
            text-align: center;
            padding: 22px 20px;
          }
          .hero-copy::before {
            inset: -8px -10px;
          }
          .hero h1 { font-size: 36px; max-width: none; }
          .hero-subheading {
            margin-left: auto;
            margin-right: auto;
          }
          .hero-actions {
            justify-content: center;
          }
          .hero-media { width: 100%; height: 350px; }
          .form-grid { grid-template-columns: 1fr; }
          .stats { grid-template-columns: 1fr; }
          /* Home page galleries - show only 2 images on mobile */
          .home-gallery-1 > div:nth-child(n+3) {
            display: none;
          }
          .home-gallery-2 {
            display: none !important;
          }
          .home-gallery-1 {
            grid-template-columns: 1fr !important;
            gap: 20px !important;
          }
        }
