    :root {
      /* Dark Theme (Default) */
      --bg: #232323;
      --bg2: #2d2d2d;
      --card: #282828;
      --card2: #333333;
      --border: #444444;
      --heading: #F2F2F3;
      --text: #d1d1d1;
      --muted: #8e8d8d;
      --accent: #88B597;
      --accent-hover: #709a7d;
      --accent-text: #88B597;
      --accent-soft: rgba(136, 181, 151, 0.14);
      --btn-text: #232323;
      --nav-bg: rgba(35, 35, 35, 0.94);
      --shadow: 0 20px 45px -18px rgba(0, 0, 0, 0.65);
      
      /* Interior Architectural Palette */
      --frame-wood: #8a6a3d;
      --frame-wood-soft: rgba(138, 106, 61, 0.18);
      --frame-gold: #c9a227;
      --frame-gold-soft: rgba(201, 162, 39, 0.16);
      --frame-slate: #5d6b7a;
      --frame-slate-soft: rgba(93, 107, 122, 0.2);
      --frame-stone: #6e6a63;
      
      --wood-overlay: linear-gradient(rgba(35, 35, 35, 0.9), rgba(35, 35, 35, 0.95)), url('wooden_bg.png');
    }

    html[data-theme="light"] {
      --bg: #F2F2F3;
      --bg2: #e8e8e9;
      --card: #ffffff;
      --card2: #f7f7f8;
      --border: #d5d5d6;
      --heading: #232323;
      --text: #4a4a4a;
      --muted: #747474;
      --accent: #88B597;
      --accent-hover: #709a7d;
      --accent-text: #5f8d6f;
      --accent-soft: rgba(136, 181, 151, 0.18);
      --btn-text: #ffffff;
      --nav-bg: rgba(242, 242, 243, 0.94);
      --shadow: 0 20px 40px -20px rgba(136, 181, 151, 0.35);
      
      --wood-overlay: linear-gradient(rgba(242, 242, 243, 0.92), rgba(242, 242, 243, 0.96)), url('wooden_bg.png');
    }

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

    html {
      scroll-behavior: smooth;
      overflow-x: clip;
      scrollbar-width: thin;
      scrollbar-color: var(--accent) var(--bg2);
    }

    /* Custom Sleek Scrollbar */
    ::-webkit-scrollbar {
      width: 8px;
      height: 8px;
    }
    ::-webkit-scrollbar-track {
      background: var(--bg2);
    }
    ::-webkit-scrollbar-thumb {
      background: var(--accent);
      border-radius: 999px;
      border: 2px solid var(--bg2);
    }
    ::-webkit-scrollbar-thumb:hover {
      background: var(--accent-hover);
    }

    body {
      font-family: 'Jost', sans-serif;
      background: var(--bg);
      color: var(--text);
      line-height: 1.68;
      overflow-x: clip;
      transition: background 0.35s ease, color 0.35s ease;
      opacity: 1 !important;
      visibility: visible !important;
    }

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

    a {
      text-decoration: none;
      color: inherit;
    }

    ul {
      list-style: none;
    }

    button {
      font-family: inherit;
      cursor: pointer;
      background: none;
      border: none;
      color: inherit;
    }

    /* Typography */
    h1, h2, h3, h4, h5, h6, .serif {
      font-family: 'Playfair Display', Georgia, serif;
      color: var(--heading);
      font-weight: 700;
      line-height: 1.2;
    }

    .display-title {
      font-size: clamp(34px, 4.4vw, 58px);
      line-height: 1.12;
      letter-spacing: -0.01em;
    }

    .section-title {
      font-size: clamp(28px, 3.5vw, 44px);
      line-height: 1.18;
    }

    .c-accent {
      color: var(--accent-text);
    }

    .sub-label {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      color: var(--accent-text);
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.15em;
      font-size: 13px;
      margin-bottom: 12px;
    }

    .sub-icon {
      width: 20px;
      height: 20px;
      color: var(--accent);
    }

    /* Containers & Layout */
    .container {
      width: 100%;
      max-width: 1380px;
      margin-inline: auto;
      padding-inline: 24px;
    }

    /* Builder Layout Reversal */
    .builder-section.dir-reverse .hero-grid,
    .builder-section.dir-reverse .services-tabs-wrap,
    .builder-section.dir-reverse .grid-2 {
      direction: rtl;
    }
    .builder-section.dir-reverse .hero-grid > *,
    .builder-section.dir-reverse .services-tabs-wrap > *,
    .builder-section.dir-reverse .grid-2 > * {
      direction: ltr;
    }

    .section {
      padding-block: 90px;
      position: relative;
      scroll-margin-top: 80px;
    }

    .section-t {
      padding-top: 90px;
      scroll-margin-top: 80px;
    }

    .section-b {
      padding-bottom: 90px;
    }

    .wood-textured-band {
      background: var(--bg2);
    }

    /* Buttons */
    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 12px 28px;
      border-radius: 999px;
      font-weight: 600;
      font-size: 14.5px;
      letter-spacing: 0.03em;
      background: var(--accent);
      color: var(--btn-text);
      transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
      box-shadow: 0 8px 20px -8px rgba(136, 181, 151, 0.45);
    }

    .btn:hover {
      background: var(--accent-hover);
      transform: translateY(-2px);
      box-shadow: 0 12px 24px -6px rgba(136, 181, 151, 0.55);
    }

    .btn-outline {
      background: transparent;
      color: var(--heading);
      border: 1.5px solid var(--border);
      box-shadow: none;
    }

    .btn-outline:hover {
      border-color: var(--accent);
      color: var(--accent-text);
      background: var(--accent-soft);
      transform: translateY(-2px);
    }

    .btn-soft {
      background: var(--card2);
      color: var(--heading);
      border: 1px solid var(--border);
      box-shadow: none;
    }

    .btn-soft:hover {
      border-color: var(--accent);
      color: var(--accent-text);
      transform: translateY(-2px);
    }

    /* Distinct Architectural Interior Image Frames */
    .interior-frame {
      position: relative;
      transition: transform 0.4s ease, box-shadow 0.4s ease;
    }

    .interior-frame .img-box {
      overflow: hidden;
      position: relative;
    }

    .interior-frame img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .interior-frame:hover img {
      transform: scale(1.05);
    }

    /* 1. Sage Chamfer Frame */
    .frame-sage-chamfer {
      background: var(--card);
      border: 1.5px solid var(--border);
      border-radius: 20px;
      padding: 14px;
      box-shadow: var(--shadow);
      position: relative;
    }

    .frame-sage-chamfer::before {
      content: '';
      position: absolute;
      inset: -6px;
      border: 1px dashed var(--accent);
      border-radius: 26px;
      opacity: 0.35;
      pointer-events: none;
    }

    .frame-sage-chamfer .img-box {
      border-radius: 14px;
      border: 1px solid var(--border);
    }

    /* 2. Artisan Walnut Inlay Frame */
    .frame-wood-inlay {
      background: var(--card2);
      border: 3px solid var(--frame-wood);
      border-radius: 16px;
      padding: 12px;
      box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
      position: relative;
    }

    .frame-wood-inlay .img-box {
      border-radius: 8px;
      box-shadow: inset 0 0 25px rgba(0,0,0,0.4);
    }

    .frame-wood-inlay .frame-tag {
      position: absolute;
      top: 22px;
      right: 22px;
      background: rgba(35, 35, 35, 0.82);
      border: 1px solid var(--frame-wood);
      color: #dfba86;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      padding: 5px 12px;
      border-radius: 50px;
      backdrop-filter: blur(8px);
      z-index: 2;
    }

    /* 3. Brass Gold Molding Frame */
    .frame-gold-molding {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 18px;
      padding: 12px;
      box-shadow: var(--shadow);
      position: relative;
    }

    .frame-gold-molding .img-box {
      border-radius: 12px;
      border: 2px solid var(--frame-gold);
      outline: 4px solid var(--frame-gold-soft);
      outline-offset: 4px;
    }

    /* 4. Slate Architectural Shadow-Box */
    .frame-slate-box {
      background: var(--card2);
      border-left: 6px solid var(--frame-slate);
      border-top: 1px solid var(--border);
      border-right: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
      border-radius: 16px;
      padding: 10px;
      box-shadow: 0 24px 45px -15px rgba(0, 0, 0, 0.55);
    }

    .frame-slate-box .img-box {
      border-radius: 10px;
    }

    /* ========================================================
       SITE HEADER & RIGHT-ALIGNED NAVIGATION
       ======================================================== */
    .site-header {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      z-index: 100;
      background: var(--nav-bg);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      border-bottom: 1px solid var(--border);
      transition: all 0.35s ease;
    }

    .nav {
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: 84px;
      gap: 20px;
    }

    .logo-container {
      display: flex;
      align-items: center;
      height: 48px;
      border: none;
      outline: none;
    }

    .logo-container img {
      height: 44px;
      width: auto;
      object-fit: contain;
      border: none;
      outline: none;
    }

    .logo-container:focus,
    .logo-container:focus-visible {
      outline: none;
    }

    .nav-right-cluster {
      display: flex;
      align-items: center;
      gap: 32px;
      margin-left: auto;
    }

    .nav-links {
      display: none;
      align-items: center;
      gap: 8px;
    }

    @media (min-width: 1024px) {
      .nav-links {
        display: flex;
      }
    }

    .nav-item {
      position: relative;
    }

    .nav-link {
      display: flex;
      align-items: center;
      gap: 4px;
      padding: 12px 14px;
      font-size: 14.5px;
      font-weight: 600;
      color: var(--heading);
      letter-spacing: 0.02em;
      transition: color 0.3s ease;
    }

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

    .nav-dropdown {
      position: absolute;
      top: 100%;
      right: 0;
      min-width: 220px;
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 14px;
      padding: 10px;
      opacity: 0;
      visibility: hidden;
      transform: translateY(12px);
      box-shadow: var(--shadow);
      z-index: 110;
      transition: all 0.3s ease;
    }

    .nav-item:hover .nav-dropdown {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }

    .nav-dropdown a {
      display: block;
      padding: 10px 14px;
      border-radius: 8px;
      font-size: 14px;
      font-weight: 500;
      color: var(--text);
      transition: background 0.25s ease, color 0.25s ease;
    }

    .nav-dropdown a:hover {
      background: var(--accent-soft);
      color: var(--accent-text);
    }

.nav-actions {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .book-consult-btn {
      padding: 10px 22px;
      font-size: 13.5px;
      white-space: nowrap;
    }

    @media (max-width: 639px) {
      .book-consult-btn {
        padding: 7px 12px;
        font-size: 12px;
        gap: 6px;
      }
    }

    @media (max-width: 400px) {
      .book-consult-btn {
        padding: 7px 9px;
        font-size: 11px;
      }
    }

    .theme-toggle-btn {
      width: 44px;
      height: 44px;
      border-radius: 50%;
      background: var(--card2);
      border: 1px solid var(--border);
      color: var(--accent-text);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 19px;
      transition: all 0.3s ease;
    }

    .theme-toggle-btn:hover {
      background: var(--accent);
      color: var(--btn-text);
      border-color: var(--accent);
      transform: rotate(15deg);
    }

    .menu-btn-mobile {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 44px;
      height: 44px;
      border-radius: 50%;
      background: var(--card2);
      border: 1px solid var(--border);
      color: var(--heading);
      font-size: 20px;
    }

    @media (min-width: 1024px) {
      .menu-btn-mobile {
        display: none;
      }
    }

    /* Mobile Drawer */
    #mobileMenu {
      position: fixed;
      top: 0;
      right: 0;
      width: min(380px, 100%);
      height: 100dvh;
      background: var(--nav-bg);
      backdrop-filter: blur(20px);
      border-left: 2px solid var(--accent);
      padding: 30px 24px;
      z-index: 200;
      transform: translateX(100%);
      transition: transform 0.35s ease;
      overflow-y: auto;
    }

    #mobileMenu.open {
      transform: translateX(0);
    }

    #menuOverlay {
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.65);
      z-index: 190;
      display: none;
    }

    #menuOverlay.open {
      display: block;
    }

    /* ========================================================
       HERO SECTION
       ======================================================== */
    .hero-section {
      padding-top: 150px;
      padding-bottom: 80px;
      position: relative;
      scroll-margin-top: 80px;
    }

    .hero-grid { min-width: 0; 
      display: grid;
      grid-template-columns: 1fr;
      gap: 48px;
      align-items: center;
    }

    @media (min-width: 1024px) {
      .hero-grid { min-width: 0; 
        grid-template-columns: 1.1fr 1fr;
      }
    }

    .hero-stats-badge {
      display: inline-flex;
      align-items: center;
      gap: 16px;
      background: var(--card);
      border: 1px solid var(--border);
      padding: 10px 20px;
      border-radius: 999px;
      margin-top: 36px;
      box-shadow: var(--shadow);
    }

    .hero-stats-badge .stat-item {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .hero-stats-badge .stat-num {
      font-family: 'Playfair Display', serif;
      font-weight: 700;
      font-size: 20px;
      color: var(--accent-text);
    }

    .hero-slider-wrap { min-width: 0; 
      position: relative;
      width: 100%;
    }

    .hero-slider-wrap .swiper {
      border-radius: 18px;
      overflow: hidden;
    }

    .hero-slider-wrap .swiper-slide { background: var(--border);
      aspect-ratio: 4 / 3.2;
    }

    .hero-floating-card {
      position: absolute;
      bottom: -25px;
      left: -20px;
      z-index: 10;
      background: var(--card2);
      border: 1.5px solid var(--frame-wood);
      padding: 16px 20px;
      border-radius: 16px;
      box-shadow: 0 20px 40px rgba(0,0,0,0.5);
      display: flex;
      align-items: center;
      gap: 14px;
      max-width: 280px;
    }

    .hero-floating-card .avatar {
      width: 48px;
      height: 48px;
      border-radius: 50%;
      background: var(--accent);
      color: var(--btn-text);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 22px;
      flex: none;
    }

    /* ========================================================
       TRUST MARQUEE / STATS BAND
       ======================================================== */
    .trust-band {
      background: var(--bg2);
      border-block: 1px solid var(--border);
      padding-block: 30px;
    }

    .trust-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 24px;
      text-align: center;
    }

    @media (min-width: 768px) {
      .trust-grid {
        grid-template-columns: repeat(4, 1fr);
      }
    }

    .trust-card h3 {
      font-size: clamp(32px, 3vw, 44px);
      color: var(--accent-text);
    }

    .trust-card p {
      font-size: 14px;
      color: var(--muted);
      text-transform: uppercase;
      letter-spacing: 0.1em;
      margin-top: 4px;
    }

    /* ========================================================
       SERVICES SECTION WITH TABS
       ======================================================== */
    .services-tabs-wrap {
      display: grid;
      grid-template-columns: 1fr;
      gap: 36px;
      margin-top: 48px;
    }

    @media (min-width: 1024px) {
      .services-tabs-wrap {
        grid-template-columns: 320px 1fr;
      }
    }

    .service-tab-btn {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 18px 22px;
      border-radius: 14px;
      background: var(--card);
      border: 1px solid var(--border);
      color: var(--heading);
      font-weight: 600;
      font-size: 16px;
      margin-bottom: 12px;
      transition: all 0.3s ease;
      text-align: left;
    }

    .service-tab-btn:hover {
      border-color: var(--accent);
      color: var(--accent-text);
      transform: translateX(4px);
    }

    .service-tab-btn.active {
      background: var(--accent);
      color: var(--btn-text);
      border-color: var(--accent);
      box-shadow: 0 10px 25px -8px rgba(136, 181, 151, 0.5);
    }

    .service-tab-btn.active i {
      transform: rotate(45deg);
    }

    .service-panel {
      display: none;
      animation: fadeIn 0.45s ease;
    }

    .service-panel.active {
      display: block;
    }

    @keyframes fadeIn {
      from { opacity: 1; visibility: visible; transform: translateY(12px); }
      to { opacity: 1; transform: translateY(0); }
    }

    /* ========================================================
       BEFORE / AFTER COMPARISON
       ======================================================== */
    .ba-container { width: 100%;
        position: relative;
        border-radius: 20px;
        overflow: hidden;
        aspect-ratio: 16 / 10;
        max-width: 960px;
        max-height: 65vh;
        margin-inline: auto;
        box-shadow: var(--shadow);
        border: 2px solid var(--border);
        margin-top: 40px;
      }

    .ba-after-img,
    .ba-before-img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
    }

    .ba-after-img img,
    .ba-before-img img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .ba-before-img {
      clip-path: inset(0 50% 0 0);
    }

    .ba-tag {
      position: absolute;
      top: 18px;
      padding: 6px 16px;
      border-radius: 999px;
      background: rgba(0, 0, 0, 0.7);
      backdrop-filter: blur(6px);
      color: #fff;
      font-weight: 700;
      font-size: 12px;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      z-index: 5;
    }

    .ba-tag.left { left: 18px; }
    .ba-tag.right { right: 18px; }

    .ba-divider {
      position: absolute;
      top: 0;
      bottom: 0;
      width: 2px;
      background: var(--accent);
      left: 50%;
      transform: translateX(-50%);
      z-index: 10;
      pointer-events: none;
    }

    .ba-knob {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 48px;
      height: 48px;
      border-radius: 50%;
      background: var(--accent);
      color: var(--btn-text);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 18px;
      box-shadow: 0 8px 20px rgba(0,0,0,0.5);
    }

    .ba-range-input {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        cursor: ew-resize;
        z-index: 20;
      }
      .ba-thumbnail-gallery {
        display: flex;
        flex-direction: column;
        gap: 16px;
        margin-top: 0;
        justify-content: center;
      }
      .ba-thumb {
        width: 160px;
        height: 110px;
        border: 2px solid transparent;
        border-radius: 8px;
        overflow: hidden;
        cursor: pointer;
        background: none;
        padding: 0;
        transition: border-color 0.3s;
      }
      .ba-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }
      .ba-thumb.active {
        border-color: var(--accent);
      }

    /* ========================================================
       WORK PROCESS SECTION
       ======================================================== */
    .process-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 24px;
      margin-top: 48px;
    }

    @media (min-width: 640px) {
      .process-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @media (min-width: 1024px) {
      .process-grid {
        grid-template-columns: repeat(4, 1fr);
      }
    }

    .process-card {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 18px;
      padding: 30px 24px;
      position: relative;
      transition: all 0.35s ease;
    }

    .process-card:hover {
      border-color: var(--accent);
      transform: translateY(-6px);
      box-shadow: var(--shadow);
    }

    .process-num-badge {
      font-family: 'Playfair Display', serif;
      font-size: 38px;
      font-weight: 800;
      color: var(--accent-text);
      opacity: 0.4;
      line-height: 1;
      margin-bottom: 16px;
    }

    /* ========================================================
       PROJECTS PORTFOLIO (BALANCED FRAMES)
       ======================================================== */
    .portfolio-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 30px;
      margin-top: 48px;
    }

    @media (min-width: 640px) {
      .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @media (min-width: 1024px) {
      .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
      }
    }

    .project-card {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 20px;
      padding: 16px;
      transition: all 0.35s ease;
    }

    .project-card:hover {
      border-color: var(--accent);
      transform: translateY(-6px);
      box-shadow: var(--shadow);
    }

    .project-card .img-box {
      border-radius: 14px;
      aspect-ratio: 4 / 3.2;
    }

    .project-meta {
      padding: 18px 8px 6px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .project-meta h4 {
      font-size: 19px;
    }

    .project-meta span {
      font-size: 13px;
      color: var(--muted);
      display: block;
      margin-top: 2px;
    }

    /* ========================================================
       GALLERY SLIDER (RESTORED)
       ======================================================== */
    .gallery-slider .swiper-slide { background: var(--border);
      border-radius: 16px;
      overflow: hidden;
      aspect-ratio: 4 / 3;
    }

    .gallery-slider img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.6s ease;
    }

.gallery-slider .swiper-slide:hover img {
      transform: scale(1.08);
    }

    /* ========================================================
       MOBILE: HORIZONTAL SNAP SCROLL for gallery / process / portfolio
       (cards swipe left–right instead of stacking in a cascade)
       ======================================================== */
    @media (max-width: 639px) {

      .process-grid,
      .portfolio-grid {
        display: flex;
        flex-wrap: nowrap;
        gap: 14px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        scroll-padding-left: 4px;
        scrollbar-width: none;
        padding-bottom: 10px;
      }

      .process-grid::-webkit-scrollbar,
      .portfolio-grid::-webkit-scrollbar {
        display: none;
      }

      .process-card,
      .project-card {
        flex: 0 0 76%;
        scroll-snap-align: start;
      }

      .project-card .img-box {
        aspect-ratio: 4 / 3;
      }

      /* If Swiper failed to initialise (e.g. CDN blocked on mobile),
         fall back to a plain horizontal scroller instead of stacked images. */
      .gallery-slider:not(.swiper-initialized) .swiper-wrapper {
        display: flex;
        flex-wrap: nowrap;
        gap: 14px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        padding-bottom: 10px;
      }

      .gallery-slider:not(.swiper-initialized) .swiper-slide {
        flex: 0 0 78%;
        scroll-snap-align: start;
      }
    }

    /* ========================================================
       TESTIMONIALS SLIDER
       ======================================================== */
    .testimonial-card {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 20px;
      padding: 30px;
      height: 100%;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }

    .testimonial-header {
      display: flex;
      align-items: center;
      gap: 14px;
    }

    .testimonial-avatar {
      width: 54px;
      height: 54px;
      border-radius: 50%;
      overflow: hidden;
      border: 2px solid var(--accent);
    }

    .star-rating {
      color: var(--frame-gold);
      font-size: 16px;
      margin-top: 18px;
    }

    /* ========================================================
       FLOATING ESTIMATE WIDGET & LUXURY MODAL
       ======================================================== */
    .floating-estimate-btn {
      position: fixed;
      right: 28px;
      bottom: 30px;
      z-index: 150;
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: 14px 24px;
      border-radius: 999px;
      background: var(--accent);
      color: var(--btn-text);
      font-weight: 700;
      font-size: 14.5px;
      letter-spacing: 0.04em;
      border: 2px solid rgba(255, 255, 255, 0.2);
      box-shadow: 0 16px 36px -10px rgba(136, 181, 151, 0.65);
      transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
      cursor: pointer;
      animation: pulseFloat 3s infinite ease-in-out;
    }

    .floating-estimate-btn:hover {
      transform: translateY(-4px) scale(1.04);
      background: var(--accent-hover);
      box-shadow: 0 20px 42px -8px rgba(136, 181, 151, 0.8);
    }

    @keyframes pulseFloat {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-6px); }
    }

    /* Luxury Interior-Styled Estimator Modal */
    .estimate-modal-overlay {
      position: fixed;
      inset: 0;
      background: rgba(18, 18, 18, 0.85);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
      z-index: 999;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 20px;
      opacity: 1; visibility: visible;
      pointer-events: none;
      transition: opacity 0.35s ease;
    }

    .estimate-modal-overlay.active {
      display: flex !important;
      opacity: 1 !important;
      pointer-events: auto !important;
    }

.estimate-modal-box {
      width: 100%;
      max-width: 960px;
      max-height: 90vh;
      background: var(--card);
      border: 2px solid var(--frame-wood);
      border-radius: 24px;
      box-shadow: 0 35px 70px -15px rgba(0, 0, 0, 0.85);
      position: relative;
      overflow: hidden;
      display: grid;
      grid-template-columns: 1fr;
      transform: scale(0.94) translateY(20px);
      transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
      container-type: inline-size;
      container-name: est-modal;
    }

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

    @media (min-width: 860px) {
      .estimate-modal-box {
        grid-template-columns: 340px 1fr;
      }
    }

.estimate-modal-sidebar {
      background: var(--wood-overlay);
      background-size: cover;
      background-position: center;
      padding: clamp(22px, 3.1cqi, 40px) clamp(20px, 3.1cqi, 30px);
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      border-right: 1px solid var(--border);
      position: relative;
    }

    .estimate-modal-content {
      padding: clamp(14px, 2.1cqi, 24px) clamp(16px, 2.5cqi, 28px);
      overflow-y: auto;
      max-height: 90vh;
      -ms-overflow-style: none;
      scrollbar-width: none;
    }

    /* Custom Scrollbar Inside Modal */
    .estimate-modal-content::-webkit-scrollbar {
      display: none;
    }
    .estimate-modal-content::-webkit-scrollbar-track {
      background: var(--card);
    }
    .estimate-modal-content::-webkit-scrollbar-thumb {
      background: var(--accent);
      border-radius: 999px;
    }

.modal-close-btn {
      position: absolute;
      top: clamp(14px, 1.9cqi, 20px);
      right: clamp(14px, 1.9cqi, 20px);
      width: clamp(32px, 4cqi, 42px);
      height: clamp(32px, 4cqi, 42px);
      border-radius: 50%;
      background: var(--card2);
      border: 1px solid var(--border);
      color: var(--heading);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: clamp(17px, 2.1cqi, 22px);
      z-index: 10;
      transition: all 0.25s;
    }

    .modal-close-btn:hover {
      background: var(--accent);
      color: var(--btn-text);
      transform: rotate(90deg);
    }

    .form-group {
      margin-bottom: clamp(12px, 1.5cqi, 16px);
    }

    .form-label {
      display: block;
      font-weight: 600;
      font-size: clamp(12.5px, 1.45cqi, 14px);
      color: var(--heading);
      margin-bottom: clamp(6px, 0.85cqi, 9px);
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }

    .input-field,
    .select-field {
      width: 100%;
      padding: clamp(11px, 1.35cqi, 14px) clamp(13px, 1.7cqi, 17px);
      background: var(--card2);
      border: 1.5px solid var(--border);
      border-radius: 10px;
      color: var(--heading);
      font-size: clamp(13.5px, 1.55cqi, 15.5px);
      font-family: inherit;
      outline: none;
      transition: border-color 0.3s;
    }

    .input-field:focus,
    .select-field:focus {
      border-color: var(--accent);
    }

.space-type-cards {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: clamp(8px, 1cqi, 12px);
      margin-bottom: clamp(12px, 1.5cqi, 16px);
    }

    .space-card-option {
      background: var(--card2);
      border: 1.5px solid var(--border);
      border-radius: clamp(8px, 1cqi, 12px);
      padding: clamp(5px, 0.7cqi, 8px) clamp(8px, 1cqi, 12px);
      display: flex;
      align-items: center;
      justify-content: center;
      gap: clamp(5px, 0.6cqi, 8px);
      text-align: center;
      cursor: pointer;
      transition: all 0.25s ease;
    }

    .space-card-option:hover,
    .space-card-option.selected {
      border-color: var(--accent);
      background: var(--accent-soft);
      color: var(--accent-text);
    }

    .space-card-option i {
      font-size: clamp(13px, 1.5cqi, 16px);
      display: inline-flex;
      margin-bottom: 0;
    }

    .space-card-option span {
      line-height: 1.2;
    }

    .calc-range-val {
      font-size: clamp(15px, 1.9cqi, 20px);
      font-weight: 700;
      color: var(--accent-text);
    }

    /* Range slider custom styling */
    input[type=range].custom-slider {
      width: 100%;
      height: clamp(5px, 0.7cqi, 7px);
      background: var(--card2);
      border-radius: 999px;
      outline: none;
      accent-color: var(--accent);
      margin-block: clamp(8px, 1cqi, 11px);
    }

    /* ========================================================
       FOOTER
       ======================================================== */
    .site-footer {
      background: var(--wood-overlay);
      background-size: cover;
      background-position: center;
      border-top: 1px solid var(--border);
      padding-top: 70px;
      padding-bottom: 30px;
    }

    .footer-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 40px;
    }

    @media (min-width: 640px) {
      .footer-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @media (min-width: 1024px) {
      .footer-grid {
        grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
      }
    }

    .footer-col h4 {
      font-size: 18px;
      margin-bottom: 20px;
      position: relative;
    }

    .footer-col h4::after {
      content: '';
      position: absolute;
      left: 0;
      bottom: -6px;
      width: 28px;
      height: 2px;
      background: var(--accent);
    }

    .footer-link {
      display: flex;
      align-items: center;
      gap: 8px;
      color: var(--text);
      padding-block: 6px;
      font-size: 14.5px;
      transition: color 0.25s, transform 0.25s;
    }

    .footer-link:hover {
      color: var(--accent-text);
      transform: translateX(4px);
    }

    .to-top-btn {
      position: fixed;
      bottom: 30px;
      left: 28px;
      z-index: 90;
      width: 44px;
      height: 44px;
      border-radius: 50%;
      background: var(--card2);
      border: 1.5px solid var(--border);
      color: var(--accent-text);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 18px;
      opacity: 1; visibility: visible;
      visibility: visible;
      transition: all 0.3s ease;
    }

    .to-top-btn.show {
      opacity: 1;
      visibility: visible;
    }

    .to-top-btn:hover {
      background: var(--accent);
      color: var(--btn-text);
      border-color: var(--accent);
    }

main {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative;
        z-index: 10;
      }

    /* ========================================================
       CMS PAGE BUILDER (page.php — layout + blocks)
       ======================================================== */
    .page-wrap {
      max-width: 1100px;
      margin-inline: auto;
      padding-block: 60px 90px;
      min-height: 60vh;
    }

    .page-head {
      margin-bottom: 36px;
    }

    .page-head h1 {
      font-size: clamp(30px, 4vw, 46px);
      margin-bottom: 14px;
    }

    .page-head .rule {
      width: 60px;
      height: 3px;
      background: var(--accent);
      border-radius: 999px;
    }

    .page-layout {
      display: grid;
      gap: 28px;
    }

    .page-layout.layout-one {
      grid-template-columns: 1fr;
    }

    .page-layout.layout-two {
      grid-template-columns: 1fr;
    }

    @media (min-width: 768px) {
      .page-layout.layout-two {
        grid-template-columns: 1.5fr 1fr;
      }
      .page-layout.layout-three {
        grid-template-columns: repeat(3, 1fr);
      }
    }

    .page-col {
      min-width: 0;
      display: flex;
      flex-direction: column;
      gap: 24px;
    }

    .page-body {
      font-size: 16.5px;
      line-height: 1.75;
    }

    .page-body h2, .page-body h3, .block-title {
      margin: 24px 0 12px;
      color: var(--heading);
    }

    .page-body p { margin-bottom: 16px; }
    .page-body a { color: var(--accent-text); }
    .page-body ul, .page-body ol { margin: 0 0 16px 24px; }
    .page-body img { border-radius: 14px; margin: 8px 0; max-width: 100%; }
    .page-body blockquote { border-left: 3px solid var(--accent); padding: 10px 18px; margin: 18px 0; background: var(--card); border-radius: 0 10px 10px 0; font-style: italic; }

    .block { min-width: 0; }
    .block-text { font-size: 16.5px; line-height: 1.75; }
    .block-text h2, .block-text h3 { margin: 24px 0 12px; color: var(--heading); }
    .block-text p { margin-bottom: 16px; }
    .block-text a { color: var(--accent-text); }
    .block-text ul, .block-text ol { margin: 0 0 16px 24px; }
    .block-text img { border-radius: 14px; margin: 8px 0; max-width: 100%; }
    .block-text blockquote { border-left: 3px solid var(--accent); padding: 10px 18px; margin: 18px 0; background: var(--card); border-radius: 0 10px 10px 0; font-style: italic; }

    .block-image img {
      width: 100%;
      border-radius: 16px;
      display: block;
    }

    .block-caption {
      margin-top: 8px;
      font-size: 13px;
      color: var(--muted);
      text-align: center;
    }

    .block-sub {
      color: var(--muted);
      margin-bottom: 18px;
    }

    .block-gallery .gallery-slider .swiper-slide {
      aspect-ratio: 4 / 3;
    }

    .block-projects .portfolio-grid {
      margin-top: 0;
    }

    .block-projects .project-card .img-box {
      aspect-ratio: 4 / 3;
    }

    .block-before-after .ba-container {
      max-width: 860px;
    }

    .block-cta {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 18px;
      padding: 28px;
      text-align: center;
    }

    .cta-inner .block-title { margin: 0 0 16px; }
    .block-cta .btn { margin-top: 8px; }

    .page-full { margin-block: 40px; }
    .page-full:first-child { margin-top: 0; }
    .page-full:last-child { margin-bottom: 0; }

    .block-image-text {
      display: grid;
      gap: 24px;
      align-items: center;
    }
    @media (min-width: 768px) {
      .block-image-text { grid-template-columns: 1fr 1fr; }
    }
    .bit-media img { width: 100%; border-radius: 16px; display: block; }
    .bit-content h2, .bit-content h3 { margin: 0 0 12px; color: var(--heading); }
    .bit-content p { margin-bottom: 14px; }

    .block-stats {
      background: var(--bg2);
      border: 1px solid var(--border);
      border-radius: 18px;
      padding: 30px 24px;
    }
    .block-stats .stats-row {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 24px;
      text-align: center;
    }
    @media (min-width: 768px) {
      .block-stats .stats-row { grid-template-columns: repeat(4, 1fr); }
    }
    .block-stats .stat-item { display: flex; flex-direction: column; gap: 4px; }
    .block-stats .stat-value { font-family: var(--serif); font-size: clamp(30px, 3vw, 42px); color: var(--accent-text); }
    .block-stats .stat-label { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

    .block-testimonials .testi-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 16px;
    }
    @media (min-width: 768px) {
      .block-testimonials .testi-grid { grid-template-columns: repeat(2, 1fr); }
    }
    .testi-card {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 22px;
    }
    .testi-card .testi-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; margin-bottom: 12px; }
    .testi-card p { font-size: 15px; line-height: 1.6; margin-bottom: 14px; }
    .testi-name { font-weight: 700; color: var(--heading); }
    .testi-role { font-size: 13px; color: var(--muted); }

    /* ========================================================
       PAGE BUILDER: SPLIT HERO, SERVICES ACCORDION, STORY, PROCESS
       (styled with the existing home theme — accents, frames, cards)
       ======================================================== */
    .block-hero-split { margin-block: 30px 20px; }
    .hs-media { min-width: 0; }
    .hs-media .img-box { aspect-ratio: 4 / 3.2; }

    /* Services accordion */
    .block-services-list { margin-top: 30px; }
    .block-services-list .section-title { margin-bottom: 40px; }
    .svc-row {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 18px;
      margin-bottom: 16px;
      overflow: hidden;
      transition: border-color 0.35s ease, box-shadow 0.35s ease;
    }
    .svc-row:hover { border-color: var(--accent); box-shadow: var(--shadow); }
    .svc-top {
      display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px;
      padding: 26px 28px; cursor: pointer;
    }
    .svc-num {
      font-family: 'Playfair Display', serif; font-size: 30px; font-weight: 800;
      color: var(--accent-text); opacity: 0.55; line-height: 1;
    }
    .svc-title { font-size: clamp(18px, 1.8vw, 24px); letter-spacing: .02em; }
    .svc-short { color: var(--muted); font-size: 15px; margin-top: 6px; max-width: 60ch; }
    .svc-explore {
      display: inline-flex; align-items: center; gap: 8px; font-size: 12px;
      letter-spacing: .18em; text-transform: uppercase; color: var(--accent-text);
      font-weight: 700; white-space: nowrap; transition: gap .25s ease;
    }
    .svc-row:hover .svc-explore { gap: 14px; }
    .svc-detail {
      max-height: 0; overflow: hidden; opacity: 0;
      transition: max-height .6s ease, opacity .35s ease;
      display: grid; gap: 26px; padding-inline: 28px;
    }
    @media (min-width: 820px) {
      .svc-detail { grid-template-columns: 1fr 1fr; align-items: center; padding-bottom: 28px; }
    }
    .svc-row.expanded .svc-detail { max-height: 2600px; opacity: 1; }
    .svc-media .img-box { aspect-ratio: 16 / 10; }
    .svc-info .svc-desc { font-size: 16px; line-height: 1.75; margin-bottom: 20px; max-width: 54ch; }
    .svc-includes {
      display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
      gap: 9px 18px; margin: 0 0 28px;
    }
    .svc-includes li { position: relative; padding-left: 18px; font-size: 14.5px; color: var(--muted); }
    .svc-includes li::before { content: ""; position: absolute; left: 0; top: 10px; width: 7px; height: 1px; background: var(--accent); }
    .svc-btn { margin-top: 4px; }

    /* Story band */
    .block-story { margin-block: 30px; }
    .story-frame .img-box { aspect-ratio: 21 / 9; max-height: 78vh; }
    .story-overlay {
      position: absolute; inset: 0; z-index: 2;
      display: flex; flex-direction: column; align-items: center; justify-content: center;
      text-align: center; gap: 12px; padding: 24px;
      background: rgba(18, 18, 18, 0.42);
    }
    .story-overlay h2 { color: #fff; font-size: clamp(30px, 4.4vw, 60px); letter-spacing: .02em; text-shadow: 0 2px 24px rgba(0,0,0,.35); }
    .story-overlay p { font-size: 14px; letter-spacing: .3em; text-transform: uppercase; color: var(--accent-text); }

    /* Process — reuse the home process card grid */
    .block-process .section-title { margin-bottom: 16px; }

    /* CTA big title variant */
    .cta-sub { color: var(--muted); font-size: 16px; margin-bottom: 28px; }

    /* Page builder sections: per-section background image / colour */
    .builder-section { position: relative; }
    .builder-section[data-bg] > .section { background: transparent !important; }

    .empty-body {
      text-align: center;
      color: var(--muted);
    .page-body p { margin-bottom: 16px; }
    .page-body a { color: var(--accent-text); }
    .page-body ul, .page-body ol { margin: 0 0 16px 24px; }
    .page-body img { border-radius: 14px; margin: 8px 0; max-width: 100%; }
    .page-body blockquote { border-left: 3px solid var(--accent); padding: 10px 18px; margin: 18px 0; background: var(--card); border-radius: 0 10px 10px 0; font-style: italic; }

    .block { min-width: 0; }
    .block-text { font-size: 16.5px; line-height: 1.75; }
    .block-text h2, .block-text h3 { margin: 24px 0 12px; color: var(--heading); }
    .block-text p { margin-bottom: 16px; }
    .block-text a { color: var(--accent-text); }
    .block-text ul, .block-text ol { margin: 0 0 16px 24px; }
    .block-text img { border-radius: 14px; margin: 8px 0; max-width: 100%; }
    .block-text blockquote { border-left: 3px solid var(--accent); padding: 10px 18px; margin: 18px 0; background: var(--card); border-radius: 0 10px 10px 0; font-style: italic; }

    .block-image img {
      width: 100%;
      border-radius: 16px;
      display: block;
    }

    .block-caption {
      margin-top: 8px;
      font-size: 13px;
      color: var(--muted);
      text-align: center;
    }

    .block-sub {
      color: var(--muted);
      margin-bottom: 18px;
    }

    .block-gallery .gallery-slider .swiper-slide {
      aspect-ratio: 4 / 3;
    }

    .block-projects .portfolio-grid {
      margin-top: 0;
    }

    .block-projects .project-card .img-box {
      aspect-ratio: 4 / 3;
    }

    .block-before-after .ba-container {
      max-width: 860px;
    }

    .block-cta {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 18px;
      padding: 28px;
      text-align: center;
    }

    .cta-inner .block-title { margin: 0 0 16px; }
    .block-cta .btn { margin-top: 8px; }

    .page-full { margin-block: 40px; }
    .page-full:first-child { margin-top: 0; }
    .page-full:last-child { margin-bottom: 0; }

    .block-image-text {
      display: grid;
      gap: 24px;
      align-items: center;
    }
    @media (min-width: 768px) {
      .block-image-text { grid-template-columns: 1fr 1fr; }
    }
    .bit-media img { width: 100%; border-radius: 16px; display: block; }
    .bit-content h2, .bit-content h3 { margin: 0 0 12px; color: var(--heading); }
    .bit-content p { margin-bottom: 14px; }

    .block-stats {
      background: var(--bg2);
      border: 1px solid var(--border);
      border-radius: 18px;
      padding: 30px 24px;
    }
    .block-stats .stats-row {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 24px;
      text-align: center;
    }
    @media (min-width: 768px) {
      .block-stats .stats-row { grid-template-columns: repeat(4, 1fr); }
    }
    .block-stats .stat-item { display: flex; flex-direction: column; gap: 4px; }
    .block-stats .stat-value { font-family: var(--serif); font-size: clamp(30px, 3vw, 42px); color: var(--accent-text); }
    .block-stats .stat-label { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

    .block-testimonials .testi-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 16px;
    }
    @media (min-width: 768px) {
      .block-testimonials .testi-grid { grid-template-columns: repeat(2, 1fr); }
    }
    .testi-card {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 22px;
    }
    .testi-card .testi-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; margin-bottom: 12px; }
    .testi-card p { font-size: 15px; line-height: 1.6; margin-bottom: 14px; }
    .testi-name { font-weight: 700; color: var(--heading); }
    .testi-role { font-size: 13px; color: var(--muted); }

    /* ========================================================
       PAGE BUILDER: SPLIT HERO, SERVICES ACCORDION, STORY, PROCESS
       (styled with the existing home theme — accents, frames, cards)
       ======================================================== */
    .block-hero-split { margin-block: 30px 20px; }
    .hs-media { min-width: 0; }
    .hs-media .img-box { aspect-ratio: 4 / 3.2; }

    /* Services accordion */
    .block-services-list { margin-top: 30px; }
    .block-services-list .section-title { margin-bottom: 40px; }
    .svc-row {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 18px;
      margin-bottom: 16px;
      overflow: hidden;
      transition: border-color 0.35s ease, box-shadow 0.35s ease;
    }
    .svc-row:hover { border-color: var(--accent); box-shadow: var(--shadow); }
    .svc-top {
      display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px;
      padding: 26px 28px; cursor: pointer;
    }
    .svc-num {
      font-family: 'Playfair Display', serif; font-size: 30px; font-weight: 800;
      color: var(--accent-text); opacity: 0.55; line-height: 1;
    }
    .svc-title { font-size: clamp(18px, 1.8vw, 24px); letter-spacing: .02em; }
    .svc-short { color: var(--muted); font-size: 15px; margin-top: 6px; max-width: 60ch; }
    .svc-explore {
      display: inline-flex; align-items: center; gap: 8px; font-size: 12px;
      letter-spacing: .18em; text-transform: uppercase; color: var(--accent-text);
      font-weight: 700; white-space: nowrap; transition: gap .25s ease;
    }
    .svc-row:hover .svc-explore { gap: 14px; }
    .svc-detail {
      max-height: 0; overflow: hidden; opacity: 0;
      transition: max-height .6s ease, opacity .35s ease;
      display: grid; gap: 26px; padding-inline: 28px;
    }
    @media (min-width: 820px) {
      .svc-detail { grid-template-columns: 1fr 1fr; align-items: center; padding-bottom: 28px; }
    }
    .svc-row.expanded .svc-detail { max-height: 2600px; opacity: 1; }
    .svc-media .img-box { aspect-ratio: 16 / 10; }
    .svc-info .svc-desc { font-size: 16px; line-height: 1.75; margin-bottom: 20px; max-width: 54ch; }
    .svc-includes {
      display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
      gap: 9px 18px; margin: 0 0 28px;
    }
    .svc-includes li { position: relative; padding-left: 18px; font-size: 14.5px; color: var(--muted); }
    .svc-includes li::before { content: ""; position: absolute; left: 0; top: 10px; width: 7px; height: 1px; background: var(--accent); }
    .svc-btn { margin-top: 4px; }

    /* Story band */
    .block-story { margin-block: 30px; }
    .story-frame .img-box { aspect-ratio: 21 / 9; max-height: 78vh; }
    .story-overlay {
      position: absolute; inset: 0; z-index: 2;
      display: flex; flex-direction: column; align-items: center; justify-content: center;
      text-align: center; gap: 12px; padding: 24px;
      background: rgba(18, 18, 18, 0.42);
    }
    .story-overlay h2 { color: #fff; font-size: clamp(30px, 4.4vw, 60px); letter-spacing: .02em; text-shadow: 0 2px 24px rgba(0,0,0,.35); }
    .story-overlay p { font-size: 14px; letter-spacing: .3em; text-transform: uppercase; color: var(--accent-text); }

    /* Process — reuse the home process card grid */
    .block-process .section-title { margin-bottom: 16px; }

    /* CTA big title variant */
    .cta-sub { color: var(--muted); font-size: 16px; margin-bottom: 28px; }

    /* Page builder sections: per-section background image / colour */
    .builder-section { position: relative; }
    .builder-section[data-bg] > .section { background: transparent !important; }

    .empty-body {
      text-align: center;
      color: var(--muted);
      padding: 60px 0;
      font-size: 18px;
    }

    
        width: 64px;
        height: 3px;
        margin-top: 14px;
        border-radius: 99px;
        background: linear-gradient(90deg, var(--accent), transparent);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
      }
      html[data-anim="on"] .section-title.in-view::after,
      html[data-anim="on"] .section-title:hover::after {
        transform: scaleX(1);
      }

      /* Reduced motion: only persistent/infinite motion is disabled.
         One-shot section reveals still run so the page never feels broken. */
      @media (prefers-reduced-motion: reduce) {
        html[data-anim="on"] .logo-container {
          animation: none !important;
        }
        html[data-anim="on"] .nav {
          height: 84px;
          transition: none !important;
        }
      }

      /* ========================================================
         STANDALONE PAGE HERO (services / portfolio / about / gallery / contact)
         ======================================================== */
      .page-hero {
        position: relative;
        padding: 130px 0 56px;
        background:
          radial-gradient(1000px 420px at 80% -10%, rgba(136, 181, 151, 0.14), transparent 60%),
          radial-gradient(900px 400px at 10% 110%, rgba(183, 148, 87, 0.12), transparent 60%);
        border-bottom: 1px solid var(--border);
      }
      .page-hero .sub-label {
        justify-content: center;
      }
      .page-hero .display-title {
        font-size: clamp(34px, 5vw, 56px);
        margin-top: 14px;
      }
      .page-hero .page-hero-desc {
        max-width: 640px;
        margin: 18px auto 0;
        color: var(--muted);
        font-size: 16.5px;
      }
      .page-hero-breadcrumb {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 10px;
        font-size: 12.5px;
        text-transform: uppercase;
        letter-spacing: 0.16em;
        color: var(--accent-text);
      }
      .page-hero-breadcrumb a { color: var(--muted); text-decoration: none; transition: color 0.3s ease; }
      .page-hero-breadcrumb a:hover { color: var(--accent-text); }

/* --- Process Flow Accordion --- */
.process-flow { display: flex; flex-direction: row; gap: 24px; height: 550px; }
.p-card { flex: 0 0 240px; background: var(--bg2); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1); display: flex; flex-direction: column; cursor: pointer; position: relative; }
.p-card.active { flex: 1 1 0; border-color: var(--accent); cursor: default; }
.p-head { padding: 32px; display: flex; align-items: center; white-space: nowrap; transition: padding 0.3s; }
.p-num { font-family: var(--font-mono); font-size: 14px; color: var(--accent); margin-right: 16px; font-weight: 600; }
.p-title { font-size: 22px; margin: 0; color: var(--heading); font-weight: 500; font-family: var(--font-serif); }
.p-icon { font-size: 24px; color: var(--accent); margin-left: auto; }
.p-card:not(.active) .p-icon { color: var(--accent); }
.p-body { padding: 0 32px 32px; flex: 1; opacity: 0; visibility: hidden; transition: opacity 0.4s 0.2s; overflow-y: auto; }
.p-card.active .p-body { opacity: 1; visibility: visible; }
.p-circle { width: 72px; height: 72px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 22px; color: var(--bg); margin-bottom: 24px; font-weight: 700; opacity: 0.8; }
.p-steps { margin-top: 24px; display: flex; flex-direction: column; gap: 14px; }
.p-step { display: flex; align-items: flex-start; gap: 12px; }
.p-step i { color: var(--accent); font-size: 18px; margin-top: 2px; }
.p-step span { font-size: 15px; color: var(--text); line-height: 1.5; }
.p-readmore { margin-top: 32px; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--accent); text-decoration: none; border-bottom: 1px solid var(--accent); padding-bottom: 4px; transition: all 0.2s; }
.p-readmore:hover { color: var(--heading); border-bottom-color: var(--heading); }
@media (max-width: 900px) {
  .process-flow { flex-direction: column; height: auto; }
  .p-card { flex: none; height: auto; transition: all 0.4s ease; }
  .p-head { padding: 24px; }
  .p-body { display: none; padding: 0 24px 24px; opacity: 1; visibility: visible; transition: none; overflow-y: visible; }
  .p-card.active .p-body { display: block; animation: fadeInDown 0.4s ease forwards; }
}


/* ============ LOADER ============ */
.loader { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; background: var(--bg); backdrop-filter: blur(20px); transition: opacity 0.5s ease, visibility 0.5s ease; }
.loader.hidden { opacity: 0; visibility: hidden; }
.cube-loader { display: flex; gap: 8px; }
.cube { width: 26px; height: 26px; background: var(--accent); border-radius: 5px; animation: cub 1.1s infinite ease-in-out; }
.cube:nth-child(2) { animation-delay: 0.15s; }
.cube:nth-child(3) { animation-delay: 0.3s; }
@keyframes cub { 0%, 100% { transform: scale(0.55); opacity: 0.5; } 50% { transform: scale(1); opacity: 1; } }

/* Estimate Modal: allow scroll on small screens */
.estimate-modal-box {
  overflow-y: auto !important;
  max-height: 90vh;
}

/* ===== Mobile: Before/After slider on top, thumbnails horizontal row below ===== */
@media (max-width: 1023px) {
  /* Outer wrapper → column, slider first, thumbs below */
  #compare .container > div[style*="flex"] {
    flex-direction: column !important;
    align-items: center !important;
  }

  /* Slider wrapper takes full width */
  #compare .container > div[style*="flex"] > div:first-child {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
  }

  /* Slider itself full width and good height */
  .ba-container {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 55vw !important;
    margin-top: 20px !important;
    aspect-ratio: 16 / 10 !important;
  }

  /* Thumbnail wrapper full width */
  #compare .container > div[style*="flex"] > div:last-child {
    width: 100% !important;
  }

  /* Thumbnails become a horizontal row */
  .ba-thumbnail-gallery {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    gap: 10px !important;
    width: 100% !important;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  /* Each thumbnail 3-across */
  .ba-thumb {
    width: calc(33% - 8px) !important;
    height: auto !important;
    min-width: 80px;
    max-width: 140px;
    aspect-ratio: 16 / 10;
    flex-shrink: 0;
  }

  /* "Original Structure" stays top, "Araen Transformation" moves to bottom */
  .ba-tag.right {
    top: auto !important;
    bottom: 18px !important;
  }
}


/* ============ LOGO SWAP FIX: ensure logo transitions work at all screen sizes ============ */
.logo-stack {
  position: relative;
  display: inline-block;
  width: 114px;
  height: 44px;
}
.logo-stack img {
  position: absolute;
  left: 0;
  top: 0;
  height: 44px;
  width: auto;
  max-width: 114px;
  object-fit: contain;
  transform-origin: left center;
  will-change: opacity, transform;
}
.logo-img-main {
  opacity: 1;
  transform: scale(1) rotate(0deg);
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
}
.logo-img-scroll {
  opacity: 0;
  transform: scale(0.3) rotate(-8deg);
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
html[data-anim="on"] .site-header.is-scrolled .logo-img-main {
  opacity: 0 !important;
  transform: scale(0.55) rotate(4deg) !important;
}
html[data-anim="on"] .site-header.is-scrolled .logo-img-scroll {
  opacity: 1 !important;
  transform: scale(1) rotate(0deg) !important;
}

/* ===================================================
   SCROLL JANK FIX: Disable old reveal system so AOS
   is the only animation driver. Old classes are kept
   but made invisible no-ops so elements stay visible.
   =================================================== */
html[data-anim="on"].js .reveal,
html[data-anim="on"].js .animate-up,
html[data-anim="on"].js .animate-card,
html[data-anim="on"][data-anim-style="bounce"].js .reveal,
html[data-anim="on"][data-anim-style="slide"].js .reveal {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
  will-change: auto !important;
}
