    /* ========== PRE-FOOTER ========== */
    .pre-footer {
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 5%;
      box-sizing: border-box;
      /* Transparent so the three.js cube (z-index 100005 in footer mode) shows
         through behind the text. The body's bg paints the cream behind it. */
      background: transparent;
      position: relative;
      /* Lift above .pre-footer-dark so any shatter pieces flying downward
         render on top of the dark band (without this they'd be hidden by
         pre-footer-dark which comes later in the DOM). */
      z-index: 2;
    }

    /* ========== PRE-FOOTER ORANGE SHATTER (shared) ==========
       10×10 grid of orange tiles, mounted by js/prefooter-shatter.js.
       The text/button sit on top via z-index 100020 (above). */
    .au-prefooter-shatter {
      position: absolute;
      top: 50%;
      left: 50%;
      width: clamp(440px, 60vmin, 720px);
      height: clamp(440px, 60vmin, 720px);
      transform: translate(-50%, -50%);
      pointer-events: none;
      z-index: 1;
    }
    .au-shatter-piece {
      position: absolute;
      width: 10%;
      height: 10%;
      background: #ff4612;
      will-change: transform;
      transform-origin: center;
      /* Cover subpixel gaps between the 100 tiles so the resting state reads
         as a single solid orange square (no grid lines). The 1px halo travels
         with each fragment during the shatter, so it doesn't affect the
         dispersal animation. */
      box-shadow: 0 0 0 1px #ff4612;
    }
    /* Lift text + button above the cube canvas (z-index 100005 in footer mode). */
    .pre-footer h2,
    .pre-footer .pre-footer-btn {
      position: relative;
      z-index: 100020;
    }
    .pre-footer h2 {
      font-family: 'Sequel Sans Display', Arial, sans-serif;
      font-size: clamp(42px, 7vw, 100px);
      font-weight: 500;
      color: #0a0a0a;
      line-height: 1.15;
      letter-spacing: -0.02em;
      margin: 0 0 48px;
    }
    .pre-footer-btn {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      font-family: 'Sequel Sans Display', Arial, sans-serif;
      font-size: 14px;
      font-weight: 500;
      letter-spacing: 1.5px;
      text-transform: uppercase;
      color: #0a0a0a;
      text-decoration: none;
      padding: 16px 40px;
      border: 1px solid rgba(10,10,10,0.2);
      background: transparent;
      cursor: pointer;
      transition: background 0.3s ease, color 0.3s ease;
    }
    .pre-footer-btn:hover {
      background: #0a0a0a;
      color: #fff;
    }

    /* ========== PRE-FOOTER DARK WRAPPER ========== */
    /* Hosts the shared blueprint canvas so the squares effect runs continuously
       across the "Get started today" banner and the Kastelo logo lockup. */
    .pre-footer-dark {
      background: #0a0a0a;
      position: relative;
      overflow: hidden;
    }
    .pre-footer-dark > .pre-footer-banner,
    .pre-footer-dark > .footer-logo-lockup {
      position: relative;
      z-index: 1;
    }

    /* ========== PRE-FOOTER BANNER ========== */
    .pre-footer-banner {
      padding: 80px 5vw;
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      gap: 40px;
      border-bottom: 1px solid rgba(255,255,255,0.08);
    }
    .pre-footer-banner h2 {
      font-family: 'Sequel Sans Display', Arial, sans-serif;
      font-size: clamp(32px, 4.5vw, 64px);
      font-weight: 500;
      color: #fff;
      line-height: 1.15;
      letter-spacing: -0.02em;
      margin: 0;
      max-width: 700px;
    }
    /* PT copy ("Construa o seu castelo connosco.") is longer than the EN line — keep it on a
       single line on the footer banner, with a slightly smaller size; wrap only on phones. */
    html[lang="pt-PT"] .pre-footer-banner h2 {
      max-width: none;
      white-space: nowrap;
      font-size: clamp(26px, 3.6vw, 52px);
    }
    @media (max-width: 600px) {
      html[lang="pt-PT"] .pre-footer-banner h2 { white-space: normal; }
    }
    .pre-footer-cta {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      font-family: 'Sequel Sans Display', Arial, sans-serif;
      font-size: 14px;
      font-weight: 600;
      letter-spacing: 1.5px;
      text-transform: uppercase;
      color: #fff;
      text-decoration: none;
      padding: 16px 36px;
      background: #E8450A;
      border: none;
      white-space: nowrap;
      cursor: pointer;
      transition: background 0.3s ease;
      flex-shrink: 0;
    }
    .pre-footer-cta:hover {
      background: #c73a08;
    }

    /* ========== FOOTER LOGO LOCKUP ========== */
    .footer-logo-lockup {
      padding: 60px 5vw 50px;
      display: flex;
      align-items: center;
      gap: 28px;
    }
    .footer-favicon {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      grid-template-rows: repeat(4, 1fr);
      width: 130px;
      height: 170px;
      gap: 6px;
      flex-shrink: 0;
    }
    .footer-favicon .fv {
      background: #fff;

    }
    .footer-favicon .fv-orange {
      background: #E8450A;
    }
    .footer-favicon .fv-empty {
      background: transparent;
    }
    .footer-logo-text {
      font-family: 'Sequel Sans Display', Arial, sans-serif;
      font-size: clamp(80px, 17vw, 250px);
      font-weight: 700;
      color: #fff;
      letter-spacing: 0.02em;
      text-transform: uppercase;
      line-height: 1;
    }

    /* ========== FOOTER ========== */
    .site-footer {
      background: #0a0a0a;
      padding: 100px 5vw 0;
      color: #fff;
      font-family: 'Sequel Sans Display', Arial, sans-serif;
    }
    .footer-body {
      display: grid;
      grid-template-columns: 1.2fr 1fr 1fr;
      gap: 60px;
      padding-bottom: 60px;
    }
    .site-footer h3 {
      font-family: 'Sequel Sans Display', Arial, sans-serif;
      font-size: 20px;
      font-weight: 400;
      color: #fff;
      letter-spacing: 1px;
      text-transform: uppercase;
      line-height: 1.3;
      margin: 0 0 24px;
    }
    .info-site-footer,
    .footer-col a {
      font-size: 17px;
      font-weight: 300;
      color: rgba(255,255,255,0.8);
      line-height: 1.8;
      margin: 0;
      text-decoration: none;
    }
    .footer-col a:hover {
      color: #fff;
    }
    .footer-social {
      display: flex;
      gap: 16px;
      margin-top: 24px;
    }
    .footer-social a {
      color: rgba(255,255,255,0.5);
      transition: color 0.2s ease;
    }
    .footer-social a:hover {
      color: #fff;
    }
    .footer-email-row {
      display: flex;
      margin-top: 4px;
    }
    .footer-email-input {
      flex: 1;
      background: transparent;
      border: 1px solid rgba(255,255,255,0.2);
      border-right: none;
      padding: 12px 16px;
      color: #fff;
      font-family: 'Sequel Sans Display', Arial, sans-serif;
      font-size: 13px;
      outline: none;
    }
    .footer-email-input::placeholder {
      color: rgba(255,255,255,0.3);
    }
    .footer-email-submit {
      background: #fff;
      color: #0a0a0a;
      border: 1px solid #fff;
      padding: 12px 24px;
      font-family: 'Sequel Sans Display', Arial, sans-serif;
      font-size: 11px;
      font-weight: 600;
      letter-spacing: 1.5px;
      text-transform: uppercase;
      cursor: pointer;
      transition: opacity 0.3s ease;
    }
    .footer-email-submit:hover {
      opacity: 0.85;
    }
    .footer-bottom {
      border-top: 1px solid rgba(255,255,255,0.1);
      padding: 28px 0;
    }
    .footer-bottom-nav {
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 16px;
      margin-bottom: 20px;
    }
    .footer-bottom-links {
      display: flex;
      gap: 28px;
      flex-wrap: wrap;
    }
    .footer-bottom-links a {
      font-size: 11px;
      font-weight: 500;
      letter-spacing: 1.5px;
      text-transform: uppercase;
      color: rgba(255,255,255,0.5);
      text-decoration: none;
      transition: color 0.2s ease;
    }
    .footer-bottom-links a:hover {
      color: #fff;
    }
    .footer-copyright {
      font-size: 12px;
      font-weight: 300;
      color: rgba(255,255,255,0.3);
      margin: 0;
      padding-bottom: 28px;
    }
