/* Progressive mobile safety overrides for the existing portfolio styles. */
html{scroll-padding-top:1rem}img,svg,video{max-width:100%}img{height:auto}body{overflow-x:clip}a,button,input,textarea,summary{touch-action:manipulation}input,textarea,select{max-width:100%}a:focus-visible,button:focus-visible,summary:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid #dba58e;outline-offset:3px}.bj-footer-faq{font-size:12px;opacity:.8;text-decoration:underline;text-underline-offset:3px;margin-inline:12px}
@media(max-width:700px){.bj-nav-links a{min-height:44px;display:flex;align-items:center}.bj-nav-inner{max-width:100%}body{max-width:100%}.page-shell,.wrap,.container,.page-width{max-width:100%}.contact-layout,.story-grid,.hero-grid,.about-grid,.comparison-grid,.project-grid,.invitation-grid,.last-grid,.small-works{min-width:0}.contact-layout>* ,.hero-grid>*,.story-grid>*,.about-grid>*,.comparison-grid>*{min-width:0}.contact-form input,.contact-form textarea{font-size:16px}.paper-container,.paper-wrap,.botanical-aside,.hero-photo,.photo-mat{max-width:100%}.project-art-title{overflow-wrap:anywhere}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* Keep decorative Unicode symbols in text presentation on iOS/Android. */
.bj-site-header, .hero, .about-section, .contact-section, .site-footer,
.eyebrow, .text-link, .button, .project-stamp, .project-number, .intro-moon,
.scribble, .hero-spark, .doodle, .endnote-star, .contact-star, .asterisk,
.floating-star, .note-star, .paper-signature, .botanical-spark, .wedding-flourish {
    font-variant-emoji: text;
}
/* Home footer: FAQ belongs in the same flex row, not outside the inner wrapper. */
.footer-inner .bj-footer-faq { margin-inline: 0; flex-shrink: 0; }
@media (max-width: 700px) {
    .footer-inner .bj-footer-faq { align-self: center; }
}

/* Footer polish: true visual centering regardless of side-item widths. */
.footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    column-gap: 20px;
}
.footer-inner > :first-child { justify-self: start; }
.footer-inner > :nth-child(2) { justify-self: center; text-align: center; }
.footer-inner > .bj-footer-faq { justify-self: end; }
/* FAQ is a normal footer link, not an underlined text link. */
a.bj-footer-faq, a.bj-footer-faq:link, a.bj-footer-faq:visited,
a.bj-footer-faq:hover, a.bj-footer-faq:focus {
    text-decoration: none !important;
    border-bottom: 0 !important;
}
@media (max-width: 600px) {
    .footer-inner { grid-template-columns: 1fr auto; row-gap: 16px; }
    .footer-inner > :first-child { grid-column: 1; grid-row: 1; }
    .footer-inner > .bj-footer-faq { grid-column: 2; grid-row: 1; }
    .footer-inner > :nth-child(2) { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
}

/* Compact homepage footer on phones: logo, copyright and FAQs in one row. */
@media (max-width: 700px) {
    footer .footer-inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto auto;
        align-items: center;
        column-gap: clamp(8px, 2.8vw, 18px);
        row-gap: 0;
        text-align: left;
        flex-direction: row;
    }
    footer .footer-inner > .logo:first-child {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
        font-size: clamp(15px, 4.3vw, 20px);
        white-space: nowrap;
        min-width: 0;
    }
    footer .footer-inner > span:nth-child(2) {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        font-size: clamp(9px, 2.6vw, 11px);
        white-space: nowrap;
        text-align: right;
    }
    footer .footer-inner > .bj-footer-faq {
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
        align-self: center;
        font-size: clamp(10px, 2.7vw, 12px);
        white-space: nowrap;
        margin: 0;
        text-decoration: none !important;
        border-bottom: 0 !important;
    }
    footer { padding-block: 22px; }
}
@media (max-width: 375px) {
    footer .footer-inner { column-gap: 7px; }
    footer .footer-inner > .logo:first-child { font-size: 15px; }
    footer .footer-inner > span:nth-child(2) { font-size: 9px; }
}
