/* Shared layout additions. Navigation switches at 1024px, as in navigation.js. */
.lfg-page {
    min-height: 100vh;
    min-height: 100svh;
    height: auto;
    display: flex;
    flex-direction: column;
}
.lfg-page main { flex: 1 0 auto; min-width: 0; }
.lfg-page :where(a, button, input, textarea):focus-visible {
    outline: 3px solid #60A5FA;
    outline-offset: 4px;
}
.lfg-page main :where(h1, h2, h3, h4, p, a) { overflow-wrap: anywhere; }
.lfg-page :where(main, footer) img { max-width: 100%; height: auto; }
.lfg-page main video { width: 100%; height: 100%; object-fit: cover; }
.lfg-page footer { line-height: 1.7; }

.lfg-navigation { position: relative; }
.lfg-header { flex-shrink: 0; }
.lfg-nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(.5rem, 2vw, 2rem);
    min-height: 5rem;
    height: auto;
    padding-block: .5rem;
}
.lfg-nav-brand { display: flex; align-items: center; gap: clamp(.5rem, 2vw, 1.5rem); min-width: 0; }
.lfg-logo { display: flex; align-items: center; min-height: 44px; flex-shrink: 0; }
.lfg-logo img { width: auto; height: 2.25rem; max-width: clamp(80px, 26vw, 130px); object-fit: contain; }
.lfg-language { display: flex; flex-shrink: 0; }
.lfg-language button { min-width: 44px; min-height: 44px; }
.lfg-desktop-nav { display: none; align-items: center; gap: clamp(1.25rem, 2.5vw, 2rem); }
.lfg-desktop-nav a { display: inline-flex; align-items: center; min-height: 44px; }
.lfg-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 1px solid #E5E7EB;
    border-radius: .75rem;
    background: #fff;
    color: #0A1C3A;
    cursor: pointer;
}
.lfg-menu-icon { display: block; position: relative; width: 22px; height: 2px; background: currentColor; transition: background .16s ease; }
.lfg-menu-icon::before, .lfg-menu-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background: currentColor;
    transition: transform .16s ease;
}
.lfg-menu-icon::before { transform: translateY(-7px); }
.lfg-menu-icon::after { transform: translateY(7px); }
.lfg-menu-toggle[aria-expanded="true"] .lfg-menu-icon { background: transparent; }
.lfg-menu-toggle[aria-expanded="true"] .lfg-menu-icon::before { transform: rotate(45deg); }
.lfg-menu-toggle[aria-expanded="true"] .lfg-menu-icon::after { transform: rotate(-45deg); }
.lfg-mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    color: #0A1C3A;
    border-top: 1px solid #E5E7EB;
    border-bottom: 1px solid #E5E7EB;
    box-shadow: 0 12px 20px rgb(10 28 58 / .1);
    padding: .75rem clamp(1rem, 3vw, 2rem);
    max-height: calc(100vh - 5rem);
    max-height: calc(100dvh - 5rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    animation: lfg-menu-enter .16s ease-out;
}
.lfg-mobile-menu[hidden] { display: none; }
.lfg-mobile-menu a { display: flex; align-items: center; min-height: 44px; padding: .75rem 1rem; border-radius: .5rem; }
.lfg-mobile-menu a:hover { background: #F0F4F8; color: #1D4ED8; }
.lfg-mobile-menu a[aria-current="page"] { background: #EFF6FF; color: #1D4ED8; }
@keyframes lfg-menu-enter { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 1024px) {
    .lfg-desktop-nav { display: flex; }
    .lfg-menu-toggle, .lfg-mobile-menu { display: none; }
}

.lfg-page .lfg-home-hero {
    min-height: 26rem;
    min-height: max(26rem, calc(100svh - 9.5rem));
    padding-block: clamp(4rem, 12vh, 8rem);
}
.lfg-page .lfg-home-hero > .bg-cover { background-position: 50% 15%; }
.lfg-page .lfg-home-title { font-size: clamp(1.75rem, 4.7vw, 3.75rem); letter-spacing: clamp(.08em, .5vw, .2em); min-height: 2.5em; line-height: 1.3; }
.lfg-page .lfg-home-subtitle { font-size: clamp(.8rem, 1.2vw, 1rem); letter-spacing: clamp(.12em, .6vw, .3em); line-height: 1.8; }
.lfg-page .lfg-hero { padding-block: clamp(3.5rem, 8vw, 8rem); }
.lfg-page .lfg-hero-title { font-size: clamp(1.9rem, 4.5vw, 3rem); line-height: 1.2; }
.lfg-about .lfg-hero-title { font-size: clamp(1.9rem, 4.5vw, 3.75rem); }
.lfg-page .lfg-hero :where(.intro-paragraph, .intro-delay, .intro-delay-two) { font-size: clamp(1rem, 1.6vw, 1.125rem); }
.lfg-page .lfg-section { padding-block: clamp(3rem, 6vw, 6rem); }
.lfg-page .lfg-grid { display: grid; gap: clamp(1.25rem, 3vw, 3rem); }
.lfg-page .lfg-grid > *, .lfg-form-grid > *, .lfg-info-card > div { min-width: 0; }
.lfg-page .lfg-grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 28rem), 1fr)); }
.lfg-page .lfg-grid-3 { grid-template-columns: minmax(0, 1fr); }
.lfg-page .lfg-grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.lfg-page .lfg-grid-small { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.lfg-page .lfg-content-card { padding: clamp(1.25rem, 3vw, 2rem); }
.lfg-page .lfg-content-card-large { padding: clamp(1.25rem, 3vw, 3rem); }
.lfg-page .lfg-content-card > .flex.justify-between { gap: 1rem; }
.lfg-page .lfg-content-card > .flex.justify-between > i { flex-shrink: 0; }
.lfg-page .lfg-portfolio-card { height: auto; min-height: 12rem; padding: clamp(1.25rem, 2vw, 1.5rem); }
.lfg-page .lfg-portfolio-card img { width: auto; max-width: 100%; max-height: 5rem; object-fit: contain; }
.lfg-page .lfg-chart-panel { position: relative; min-width: 0; height: clamp(20rem, 40vw, 28rem); padding: clamp(.75rem, 2vw, 1.5rem); }
.lfg-page .lfg-chart-panel canvas { max-width: 100%; }
.lfg-page .lfg-contact-layout { grid-template-columns: minmax(0, 1fr); }
.lfg-page .lfg-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: 0 2rem; }
.lfg-page .lfg-form-panel { padding: clamp(1.25rem, 4vw, 3rem); }
.lfg-page .form-input { min-height: 44px; font-size: 1rem; }
.lfg-page textarea.form-input { resize: vertical; min-height: 8rem; }
.lfg-page .form-label { max-width: 100%; }
.lfg-contact .form-label { color: #6B7280; }
.lfg-contact :where(.form-input, #captchaInput)::placeholder { color: #6B7280; opacity: 1; }
.lfg-page .lfg-info-card { padding: clamp(1rem, 2vw, 1.5rem); gap: clamp(.75rem, 2vw, 1.25rem); }
.lfg-page .lfg-captcha { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.lfg-page .lfg-captcha > div { min-width: 0; max-width: 100%; }
.lfg-page .lfg-captcha > div:first-child > div:first-child { flex-shrink: 0; }
.lfg-page .lfg-captcha-controls { flex: 1 1 9rem; }
.lfg-page .lfg-captcha-controls input { width: 6rem; min-width: 0; max-width: 100%; min-height: 44px; font-size: 1rem; }
.lfg-page .lfg-captcha-controls button { width: 44px; height: 44px; flex-shrink: 0; }
.lfg-page .btn-shine { min-height: 44px; }
.lfg-page #formStatus { overflow-wrap: anywhere; }
.lfg-page .lfg-cookie-banner { max-height: 100vh; max-height: 100dvh; overflow-y: auto; padding-bottom: max(1rem, env(safe-area-inset-bottom)); }
.lfg-page .lfg-cookie-banner p { min-width: 0; overflow-wrap: anywhere; }
.lfg-page .lfg-cookie-banner button { min-height: 44px; min-width: 44px; }
.lfg-page .lfg-cookie-banner > div > div { min-width: 0; }
.lfg-privacy-content { width: min(100%, 52rem); margin-inline: auto; padding: clamp(1.25rem, 5vw, 4rem); }
.lfg-privacy-content h1 { color: #0A1C3A; font-size: clamp(1.8rem, 4vw, 2.75rem); line-height: 1.25; margin-bottom: 1.75rem; }
.lfg-privacy-content p { line-height: 1.85; margin-block: 1.25rem; }
@media (min-width: 1024px) {
    .lfg-page .lfg-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lfg-page .lfg-contact-layout { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
    .lfg-page .lfg-contact-layout > * { grid-column: auto; }
}
@media (min-width: 640px) and (max-width: 1023px) {
    .lfg-page .lfg-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
    .lfg-home .typed-text:hover { letter-spacing: .14em; }
    .lfg-about main :where(h2, h3).text-3xl { font-size: clamp(1.5rem, 7vw, 1.875rem); }
    .lfg-about .statement-panel h2 { font-size: 2rem; }
    .lfg-about .statement-panel p.text-xl { font-size: 1.125rem; }
    .lfg-contact .form-label { position: static; display: block; margin-bottom: .25rem; font-size: .875rem; pointer-events: auto; }
    .lfg-contact .form-group { display: flex; flex-direction: column; }
    .lfg-contact .form-group .form-label { order: -1; letter-spacing: normal; text-transform: none; }
}
/* Limited to this site; necessary overrides of existing animated utility classes. */
@media (prefers-reduced-motion: reduce) {
    html.scroll-smooth { scroll-behavior: auto !important; }
    .lfg-page *, .lfg-page *::before, .lfg-page *::after { animation: none !important; transition: none !important; }
    .lfg-page :where(.fade-in, .intro-label, .intro-paragraph, .card-enter, .cookie-banner, .reveal.pending) { opacity: 1; transform: none; }
    .lfg-cookie-banner.hidden-banner { display: none; }
    .lfg-page :where(.typed-text, .logo-card, .surface-card, .info-card, .info-icon, .captcha-refresh):hover { transform: none; }
    .lfg-page .cursor-blink::after { display: none; }
}
