@keyframes marketing-pan {
    from { transform: scale(1.02) translate3d(0, 0, 0); }
    to { transform: scale(1.06) translate3d(-1.5%, -1%, 0); }
}

@keyframes marketing-rise {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 900px) {
    .marketing-nav__links {
        display: flex;
    }

    .marketing-pillars {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }

    .marketing-pillars article {
        border-top: 0;
        border-left: 1px solid var(--tsn-line);
        padding: 0 0 0 1.25rem;
    }

    .marketing-pillars article:first-child {
        border-left: 0;
        padding-left: 0;
    }
}

/* Tenant public sites */
.tenant-site {
    margin: 0;
    color: #1c2430;
    background: #f7f5f1;
}

.site-shell {
    width: min(1080px, calc(100% - 2rem));
    margin-inline: auto;
}

.site-preview-banner,
.site-fiction-banner,
.site-placeholder-banner {
    padding: 0.65rem 1rem;
    font-size: 0.9rem;
}

.site-preview-banner {
    background: #0b1f33;
    color: #fff;
}

.site-fiction-banner {
    background: #2f6f7e;
    color: #fff;
}

.site-placeholder-banner {
    background: #fff4e8;
    color: #5c3b16;
    border-bottom: 1px solid #e7c89a;
}

.site-placeholder-banner ul {
    margin: 0.35rem 0 0;
    padding-left: 1.1rem;
}

.site-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.9);
}

.site-header__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 4.25rem;
    padding: 0.75rem 0;
    position: relative;
}

.site-logo {
    color: var(--site-primary);
    font-weight: 700;
    text-decoration: none;
}

.site-logo img {
    display: block;
    height: 2.5rem;
    width: auto;
}

.site-nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.3rem;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0.35rem;
    margin-left: auto;
    background: none;
    border: 1px solid rgba(0, 0, 0, 0.12);
    cursor: pointer;
}

.site-nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--site-primary);
}

.site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0.35rem;
    order: 5;
}

.site-nav.is-open {
    display: flex;
}

.site-call {
    order: 2;
}

@media (min-width: 800px) {
    .site-nav-toggle {
        display: none;
    }

    .site-nav {
        display: flex;
        width: auto;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.9rem;
        order: initial;
    }

    .site-call {
        order: initial;
    }
}

.site-nav a,
.site-call,
.tp-text-link,
.lf-secondary {
    color: var(--site-primary);
    text-decoration: none;
}

.site-nav a[aria-current="page"] {
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.site-call,
.site-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--site-accent);
    color: #fff !important;
    font-weight: 700;
    border: 0;
    padding: 0.75rem 1.1rem;
    cursor: pointer;
    text-decoration: none;
}

.site-section {
    padding: 3rem 0;
}

.site-lede {
    color: #5c6773;
    max-width: 40rem;
    line-height: 1.55;
}

.site-service-list,
.tp-services,
.mc-service-stack,
.lf-service-grid,
.site-work-grid {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.site-service-list article,
.tp-services article,
.mc-service-stack article,
.lf-service-grid article,
.site-work-grid article,
.site-placeholder-panel {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 1.1rem;
}

.site-lead {
    padding: 3rem 0 4rem;
    background: rgba(255, 255, 255, 0.55);
}

.site-lead-form {
    position: relative;
    margin-top: 1.25rem;
    display: grid;
    gap: 1rem;
    max-width: 40rem;
}

.site-field > label {
    display: grid;
    gap: 0.35rem;
    font-size: 0.95rem;
}

.site-field input,
.site-field textarea,
.site-field select {
    width: 100%;
    border: 1px solid #c9c2b7;
    padding: 0.7rem 0.8rem;
    background: #fff;
}

.site-field-grid {
    display: grid;
    gap: 1rem;
}

.site-field--consent {
    max-width: 100%;
}

.site-field--consent > label {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0.75rem;
    width: 100%;
}

.site-field--consent input[type='checkbox'] {
    width: auto;
    flex: 0 0 auto;
    margin-top: 0.2rem;
}

.site-field--consent > label > span {
    flex: 1 1 auto;
    min-width: 12rem;
    line-height: 1.45;
}

.hp-field {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
    padding: 0 !important;
    margin: -1px !important;
}

.site-alert {
    padding: 0.9rem 1rem;
    margin-bottom: 1rem;
}

.site-alert--success {
    background: #e8f6ef;
    border: 1px solid #9dceb2;
}

.site-alert--error {
    background: #fdeceb;
    border: 1px solid #e3a59d;
}

.site-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding: 1.75rem 0;
    background: #fff;
}

.site-footer__inner {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.site-footer__brand {
    font-weight: 700;
    margin: 0;
}

.site-footer__note,
.site-footer__links a {
    color: #5c6773;
    font-size: 0.92rem;
}

.site-footer__links {
    display: flex;
    gap: 1rem;
}

/* Trade Pro */
.theme-trade-pro {
    font-family: "IBM Plex Sans", ui-sans-serif, sans-serif;
    background:
        linear-gradient(180deg, #f3f1ec 0%, #e7ebef 100%);
}

.theme-trade-pro h1,
.theme-trade-pro h2,
.theme-trade-pro h3,
.theme-trade-pro .tp-kicker {
    font-family: "IBM Plex Serif", Georgia, serif;
    color: var(--site-primary);
}

.tp-hero {
    padding: 3.5rem 0 2rem;
}

.tp-hero__grid {
    display: grid;
    gap: 1.5rem;
}

.tp-hero__panel {
    min-height: 220px;
    background:
        linear-gradient(135deg, rgba(15, 40, 63, 0.92), rgba(47, 111, 126, 0.75)),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.05) 0 12px, transparent 12px 24px);
    animation: marketing-rise 800ms ease both;
}

.tp-kicker {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.78rem;
    margin: 0 0 0.75rem;
}

.tp-hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.1;
    margin: 0;
    max-width: 16ch;
}

.tp-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.4rem;
    align-items: center;
}

/* Modern Craft */
.theme-modern-craft {
    font-family: Manrope, ui-sans-serif, sans-serif;
    background: #f6f1ea;
}

.theme-modern-craft h1,
.theme-modern-craft h2,
.theme-modern-craft h3,
.theme-modern-craft .mc-brand {
    font-family: Fraunces, Georgia, serif;
    color: var(--site-primary);
}

.mc-hero__stage {
    min-height: min(78vh, 640px);
    display: grid;
    align-items: end;
    background:
        linear-gradient(180deg, rgba(28, 24, 20, 0.15), rgba(28, 24, 20, 0.72)),
        linear-gradient(120deg, #c7b39a 0%, #7f6a55 48%, #2f3a3f 100%);
    color: #f8f4ee;
    animation: marketing-pan 20s ease-in-out infinite alternate;
}

.mc-hero__copy {
    padding: 4rem 0;
}

.mc-brand {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin: 0 0 0.6rem;
}

.mc-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    line-height: 1.05;
    max-width: 12ch;
    margin: 0;
    color: #fff;
}

.mc-hero p {
    max-width: 34rem;
    color: #efe7db;
}

.mc-feature__grid {
    display: grid;
    gap: 1.5rem;
}

/* Local Friendly */
.theme-local-friendly {
    font-family: Nunito, ui-sans-serif, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(47, 111, 126, 0.12), transparent 30%),
        linear-gradient(180deg, #f8faf7 0%, #eef3ea 100%);
}

.theme-local-friendly h1,
.theme-local-friendly h2,
.theme-local-friendly h3,
.theme-local-friendly .lf-brand {
    font-family: Literata, Georgia, serif;
    color: var(--site-primary);
}

.lf-hero {
    padding: 4rem 0 2rem;
}

.lf-brand {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin: 0 0 0.5rem;
}

.lf-hero h1 {
    font-size: clamp(2rem, 5vw, 3.3rem);
    max-width: 16ch;
    line-height: 1.1;
    margin: 0;
}

.lf-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.4rem;
}

.lf-secondary {
    border: 1px solid var(--site-secondary);
    padding: 0.75rem 1.1rem;
    font-weight: 700;
}

.lf-areas ul,
.site-area-list,
.site-contact-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    padding: 0;
    list-style: none;
    margin: 1rem 0 0;
}

.lf-areas li,
.site-area-list li {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 0.45rem 0.75rem;
}

@media (min-width: 800px) {
    .site-field-grid,
    .tp-hero__grid,
    .tp-services,
    .mc-feature__grid,
    .lf-service-grid,
    .site-work-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tp-services {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

