/*
Theme Name: Arsenal Engineering
Author: Arsenal Engineering
Description: A standalone block theme for hardware, embedded systems and complete product development.
Version: 0.4.0
Requires at least: 6.6
Requires PHP: 8.0
Text Domain: arsenal
*/

/* Shared front-end and editor styles. Global tokens live in theme.json. */
.wp-site-blocks {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - var(--arsenal-admin-bar-height, 0px));
    min-height: calc(100svh - var(--arsenal-admin-bar-height, 0px));
}

body.admin-bar {
    --arsenal-admin-bar-height: var(--wp-admin--admin-bar--height, 32px);
}

.wp-site-blocks > main {
    flex: 1 0 auto;
}

.wp-site-blocks > footer {
    margin-top: auto;
}

.wp-site-blocks > * {
    margin-block-start: 0;
}

.arsenal-home > .wp-block-group {
    margin-block: 0;
}

/* Preserve the original homepage independently of the inner-page revision.
 * WordPress supplies the unchanged small/medium/large/x-large presets.
 * Only the theme's custom title preset and revised global values are reset. */
body.home {
    --wp--style--global--content-size: 760px;
    --wp--preset--color--light: #f8f8f8;
    --wp--preset--font-size--xx-large: clamp(2.75rem, 2.75rem + ((1vw - 0.2rem) * 3.182), 4.5rem);
}

body.home :where(h1, h2, h3, h4, h5, h6) {
    line-height: 1.12;
    letter-spacing: -0.035em;
}

body.home .wp-element-button {
    font-size: 0.75rem;
    line-height: 1.6;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.arsenal-home .arsenal-eyebrow {
    font-weight: 400;
    letter-spacing: 0.025em;
    text-transform: none;
}

.arsenal-home .arsenal-section p {
    color: #60656d;
    line-height: 1.8;
}

.arsenal-home .arsenal-services .arsenal-card p,
.arsenal-home .arsenal-contact p {
    color: #fff;
}

.arsenal-header {
    position: relative;
    z-index: 10;
    background: linear-gradient(115deg, #f8f8f8, #d2d6da);
}

/* Presentation-inspired colour bands, clear of the logo and navigation. */
.arsenal-header::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 8px;
    pointer-events: none;
    background: linear-gradient(
        115deg,
        var(--wp--preset--color--charcoal, #3f3f3f) 0 68%,
        var(--wp--preset--color--red, #df0011) 68% 88%,
        #f2f2f2 88% 100%
    );
}

.arsenal-header .wp-block-image {
    margin-block: 1rem;
}

.arsenal-header .wp-block-image img {
    display: block;
    max-width: min(300px, 55vw);
    height: auto;
}

.arsenal-header .wp-block-navigation {
    font-size: 0.875rem;
    font-weight: 600;
}

.arsenal-header .wp-block-navigation-item__content {
    text-underline-offset: 0.5em;
    text-decoration-thickness: 2px;
}

.arsenal-header .wp-block-navigation-item__content:hover,
.arsenal-header .current-menu-item > .wp-block-navigation-item__content {
    color: var(--wp--preset--color--red);
}

.arsenal-hero {
    position: relative;
    isolation: isolate;
    display: grid;
    align-content: center;
    min-height: 680px;
    box-sizing: border-box;
    padding-block: clamp(5rem, 9vw, 8rem);
    text-align: center;
    color: var(--wp--preset--color--ink);
    background: #e4ecee;
}

.arsenal-hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, #edf3f5d9, #f5f7f5ed 50%, #edf3f5d9),
        url("assets/img/electronics-hero.jpg") center 48% / cover no-repeat;
}

.arsenal-hero > .wp-block-group {
    width: 100%;
}

.arsenal-hero h1 {
    max-width: 800px;
    margin: 1.5rem auto;
    text-wrap: balance;
}

.arsenal-hero p:not(.arsenal-eyebrow) {
    max-width: 620px;
    margin-inline: auto;
    color: #454d55;
    font-size: 1.125rem;
    line-height: 1.8;
}

.arsenal-hero .wp-block-buttons {
    justify-content: center;
    gap: 1.25rem;
    margin-top: 2.5rem;
}

.arsenal-eyebrow {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.arsenal-hero .arsenal-eyebrow.has-red-color {
    color: #454d55 !important;
}

.arsenal-section {
    padding-block: clamp(4rem, 7vw, 6rem);
}

.arsenal-section h2 {
    max-width: 760px;
    text-wrap: balance;
}

.arsenal-section .wp-block-columns {
    gap: 3rem;
    margin-top: 3.5rem;
    margin-bottom: 0;
}

.arsenal-section :where(p:not(.has-text-color)) {
    color: var(--wp--preset--color--muted);
    line-height: 1.75;
}

.arsenal-services {
    position: relative;
    isolation: isolate;
    text-align: center;
    background-color: var(--wp--preset--color--light);
    background-image: linear-gradient(#171c2304 1px, transparent 1px),
        linear-gradient(90deg, #171c2304 1px, transparent 1px);
    background-size: 48px 48px;
}

.arsenal-services::before,
.arsenal-services::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.arsenal-services::before {
    background: linear-gradient(135deg, var(--wp--preset--color--red), transparent 95%);
    opacity: 0.95;
    clip-path: polygon(0 0, 5% 0, 100% 100%, 0 100%);
}

.arsenal-services::after {
    background: linear-gradient(160deg, transparent 15%, var(--wp--preset--color--charcoal));
    opacity: 0.95;
    clip-path: polygon(80% 0%, 100% 0, 100% 100%, 40% 100%);
}

.arsenal-services h2 {
    margin-inline: auto;
}

.arsenal-card {
    position: relative;
    padding: 1rem 1.25rem;
    height: 100%;
    box-sizing: border-box;
}

.arsenal-card::before {
    content: "";
    display: block;
    width: 60px;
    height: 60px;
    margin: 0 auto 1.75rem;
    border-radius: 50%;
    background: var(--wp--preset--color--red) url("assets/img/service-icons.svg#hardware") center / 30px no-repeat;
    transition: transform 180ms ease;
}

.arsenal-services .wp-block-column:nth-child(2) .arsenal-card::before {
    background-image: url("assets/img/service-icons.svg#firmware");
}

.arsenal-services .wp-block-column:nth-child(3) .arsenal-card::before {
    background-image: url("assets/img/service-icons.svg#product");
}

.arsenal-card h3 {
    font-size: 1.25rem;
    letter-spacing: -0.025em;
}

.arsenal-card p {
    font-size: 0.9375rem;
}

/* Original homepage red / charcoal / red service panels. */
.arsenal-services .arsenal-card {
    --arsenal-card-color: var(--wp--preset--color--red);
    overflow: hidden;
    isolation: isolate;
    padding: 2.5rem 1.75rem;
    color: var(--wp--preset--color--white);
    background: linear-gradient(135deg, #00000030, transparent 75%), var(--arsenal-card-color);
}

.arsenal-services .wp-block-column:nth-child(2) .arsenal-card {
    --arsenal-card-color: var(--wp--preset--color--charcoal);
}

.arsenal-services .arsenal-card::before {
    background-color: #ffffff1a;
}

.arsenal-services .arsenal-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: #ffffff0d;
    clip-path: polygon(85% 0, 100% 0, 100% 100%, 55% 100%);
    pointer-events: none;
}

/* Vary the red-panel facets without changing the existing charcoal panel. */
.arsenal-home .arsenal-services .wp-block-column:first-child .arsenal-card::after {
    background: #ffffff24;
    clip-path: polygon(0 0, 28% 0, 72% 100%, 0 100%);
}

.arsenal-home .arsenal-services .wp-block-column:nth-child(3) .arsenal-card::after {
    background: #ffffff24;
    clip-path: polygon(58% 0, 100% 0, 100% 100%, 88% 100%);
}

.arsenal-services .arsenal-card h3,
.arsenal-services .arsenal-card p {
    color: var(--wp--preset--color--white);
}

.arsenal-applications > .wp-block-group {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: clamp(2rem, 6vw, 5rem);
}

.arsenal-applications .wp-block-columns {
    margin-top: 2.5rem;
    gap: 2rem;
}

.arsenal-applications h3 {
    font-size: 1.25rem;
}

.arsenal-applications .wp-block-image {
    margin: 0;
    height: 100%;
    min-height: 380px;
}

.arsenal-applications .wp-block-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 380px;
    object-fit: cover;
}

.arsenal-contact {
    position: relative;
    isolation: isolate;
    text-align: center;
    background: #171c23;
    color: #fff;
}

.arsenal-contact::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(#171c23e8, #171c23e8),
        url("assets/img/electronics-hero.jpg") center / cover;
}

.arsenal-contact p:not(.has-text-color),
.arsenal-contact a {
    color: #fff;
}

.arsenal-contact a {
    text-decoration-color: #ffffff70;
}

.arsenal-footer {
    padding-top: clamp(1.5rem, 3vw, 2.5rem);
    padding-bottom: 2rem;
    border-top: 1px solid #303741;
}

.arsenal-footer-columns {
    gap: 3rem;
    margin-bottom: 3rem;
}

.arsenal-footer-logo {
    padding: 0;
    margin: 0;
}

.arsenal-footer-logo .wp-block-image {
    margin: 0;
}

.arsenal-footer-logo img {
    display: block;
    filter: brightness(0) invert(1);
    max-width: 200px;
    height: auto;
}

.arsenal-footer .arsenal-footer-social {
    margin-top: 0.25rem;
    font-size: 28px;
}

.arsenal-footer h2 {
    margin-bottom: 1.5rem;
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.arsenal-footer a {
    color: #bdc5cf;
    text-decoration: none;
}

.arsenal-footer a:hover {
    color: #fff;
    text-decoration: underline;
}

.arsenal-footer .wp-block-navigation {
    font-size: 1rem;
}

.arsenal-footer-legal {
    border-top: 1px solid #39414c;
    padding-top: 1.5rem;
}

.arsenal-footer-legal p {
    margin-block: 0.75rem;
}

.arsenal-footer .arsenal-footer-policy {
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.arsenal-footer-policy a {
    color: inherit;
}

.arsenal-footer-offices {
    gap: 2rem;
    margin-block: 1rem;
}

.arsenal-footer-offices p {
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.arsenal-footer-pending {
    font-style: italic;
}

.arsenal-footer p {
    color: #bdc5cf;
}

.arsenal-footer strong {
    color: #fff;
}

a {
    text-underline-offset: 0.2em;
}

/* Branded page surfaces: pale introductions, white reading areas, dark actions. */
.arsenal-page-heading {
    padding-block: clamp(2rem, 4vw, 3.5rem);
    border-bottom: 1px solid var(--wp--preset--color--line);
}

.arsenal-page-heading h1 {
    margin-block: 0;
}

.arsenal-page:has(.arsenal-intro) .arsenal-page-heading {
    border-bottom: 0;
    padding-bottom: 1rem;
}

.arsenal-page-heading h1::before,
.arsenal-photo-intro .wp-block-post-title::before {
    content: "";
    display: block;
    width: 44px;
    height: 4px;
    margin-bottom: 1rem;
    background: var(--wp--preset--color--red);
    transform: skewX(-25deg);
}

/* Photo introductions replace, rather than duplicate, the normal title band. */
.arsenal-page:has(.arsenal-photo-intro) > .arsenal-page-heading {
    display: none;
}

.arsenal-page-content > .arsenal-photo-intro {
    margin-top: 0;
}

/* Compact bridge crop; the complete photograph belongs behind the timeline. */
.wp-block-cover.arsenal-photo-intro {
    min-height: 300px !important;
    padding: 0 !important;
    background: var(--wp--preset--color--charcoal);
}

.arsenal-photo-intro img.wp-block-cover__image-background {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 82%;
}

.arsenal-photo-intro .wp-block-cover__background {
    background: linear-gradient(90deg, #171c23d9, #171c2370) !important;
    opacity: 1;
}

.arsenal-photo-intro .wp-block-cover__inner-container {
    box-sizing: border-box;
    width: 100%;
    max-width: calc(1200px + 2 * clamp(1.25rem, 4vw, 3rem));
    padding: clamp(2rem, 4vw, 3.5rem) clamp(1.25rem, 4vw, 3rem);
    margin-inline: auto;
}

.arsenal-photo-intro .wp-block-post-title {
    margin-block: 0 1.5rem;
}

.arsenal-photo-intro :is(p, h2) {
    max-width: 720px;
}

@media (max-width: 781px) {
    .wp-block-cover.arsenal-photo-intro {
        min-height: 240px !important;
    }
}

.arsenal-about-lead {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 4rem);
    padding-block: clamp(2.5rem, 5vw, 4.5rem);
}

.arsenal-about-lead > .wp-block-heading {
    margin: 0;
    font-size: clamp(1.75rem, 3vw, 2.75rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

.arsenal-about-lead > p {
    margin: 0;
    max-width: 38ch;
    padding: 0.5rem 0 0.5rem clamp(1.25rem, 3vw, 2rem);
    border-left: 2px solid var(--wp--preset--color--line);
    line-height: 1.8;
}

@media (max-width: 781px) {
    .arsenal-about-lead {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.5rem;
    }
}

.wp-block-cover.arsenal-story-photo {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    box-sizing: border-box;
    min-height: 0;
    padding: 0;
    background: var(--wp--preset--color--ink);
}

.arsenal-story-photo > img.wp-block-cover__image-background {
    position: relative;
    inset: auto;
    grid-area: 1 / 1;
    align-self: center;
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
}

.arsenal-story-photo > .wp-block-cover__background {
    background: linear-gradient(90deg, #171c23c7, #171c23ad 55%, #171c238f);
    opacity: 1;
}

.arsenal-story-photo > .wp-block-cover__inner-container {
    grid-area: 1 / 1;
    box-sizing: border-box;
    width: 100%;
    max-width: calc(1200px + 2 * clamp(1.25rem, 4vw, 3rem));
    padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 4vw, 3rem);
    margin-inline: auto;
    color: var(--wp--preset--color--white);
}

.arsenal-story-photo .wp-block-column :where(p:not(.has-text-color), h2) {
    color: var(--wp--preset--color--white);
}

.arsenal-story-photo .wp-block-columns {
    gap: clamp(2rem, 5vw, 4rem);
    margin-block: 0;
}

.arsenal-story-principle {
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border-top: 4px solid var(--wp--preset--color--red);
    background: #252c35d9;
}

@media (max-width: 781px) {
    .arsenal-story-photo > .wp-block-cover__inner-container {
        grid-area: 2 / 1;
        background: var(--wp--preset--color--ink);
    }

    .arsenal-story-photo > .wp-block-cover__background {
        display: none;
    }
}

.arsenal-page .arsenal-page-content {
    margin-top: 0;
    padding-bottom: clamp(3rem, 6vw, 5rem);
}

.arsenal-page-content :where(p:not(.has-text-color)) {
    color: var(--wp--preset--color--muted);
    line-height: 1.75;
}

.arsenal-page-content > .arsenal-heritage {
    margin-top: clamp(1.5rem, 3vw, 3rem);
    border-left: 4px solid var(--wp--preset--color--red);
}

.arsenal-heritage .wp-block-cover__inner-container {
    max-width: 1200px;
}

.arsenal-heritage :is(h2, p) {
    max-width: 680px;
}

.arsenal-intro {
    background: var(--wp--preset--color--light);
    padding-inline: var(--wp--style--root--padding-left);
}

.arsenal-intro > p {
    max-width: var(--wp--style--global--wide-size);
    margin-inline: auto;
}

.arsenal-page-content .arsenal-enquiry {
    margin-top: clamp(2rem, 5vw, 4rem);
    padding: clamp(1.25rem, 3vw, 2.5rem);
    background: var(--wp--preset--color--light);
}

.arsenal-capabilities {
    border-top: 3px solid var(--wp--preset--color--red);
}

.arsenal-cta {
    border-left: 4px solid var(--wp--preset--color--red);
}

.arsenal-page-content .arsenal-timeline-year {
    color: var(--wp--preset--color--white);
    line-height: 1.2;
}

.arsenal-page-content .wp-block-columns {
    min-width: 0;
}

/* Shared editorial system for pages, articles, archives and the block editor. */
.wp-site-blocks > main.arsenal-section {
    padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(3.5rem, 7vw, 6rem);
}

main.arsenal-section > :is(.wp-block-post-title, .wp-block-query-title, h1) {
    overflow-wrap: anywhere;
    margin-top: 0;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--wp--preset--color--line);
}

main.arsenal-section > :is(.wp-block-post-title, .wp-block-query-title, h1)::before {
    content: "";
    display: block;
    width: 40px;
    height: 4px;
    margin-bottom: 1.25rem;
    background: var(--wp--preset--color--red);
    transform: skewX(-25deg);
}

:where(.wp-block-post-content, .editor-styles-wrapper) :where(h2, h3, h4) {
    text-wrap: balance;
}

:where(.wp-block-post-content, .editor-styles-wrapper) > :where(h2, h3) {
    margin-top: 2.5rem;
}

:where(.wp-block-post-content, .editor-styles-wrapper) :where(p, li) {
    overflow-wrap: anywhere;
}

:where(.wp-block-post-content, .editor-styles-wrapper) :where(ul, ol):not(.wp-block-social-links) {
    padding-inline-start: 1.4em;
}

:where(.wp-block-post-content, .editor-styles-wrapper) :where(li + li) {
    margin-top: 0.5rem;
}

:where(.wp-block-post-content, .editor-styles-wrapper) :where(blockquote) {
    margin-block: 2rem;
    padding: 0.5rem 0 0.5rem 1.5rem;
    border-left: 3px solid var(--wp--preset--color--red);
}

:where(.wp-block-post-content, .editor-styles-wrapper) :where(figcaption, cite) {
    color: var(--wp--preset--color--muted);
    font-size: 0.875rem;
    line-height: 1.6;
    text-align: left;
}

.wp-block-post-featured-image img {
    display: block;
    max-height: 600px;
    object-fit: contain;
    background: var(--wp--preset--color--light);
}

.wp-block-table {
    overflow-x: auto;
}

.wp-block-table :is(td, th) {
    padding: 0.85rem 1rem;
    border: 1px solid var(--wp--preset--color--line);
    text-align: start;
    vertical-align: top;
}

.wp-block-table th {
    background: var(--wp--preset--color--light);
    font-weight: 600;
}

.wp-block-code, .wp-block-preformatted {
    overflow-x: auto;
    padding: 1.25rem;
    background: var(--wp--preset--color--light);
    border: 1px solid var(--wp--preset--color--line);
    font-size: 0.9375rem;
}

.wp-block-separator {
    border: 0;
    border-top: 1px solid var(--wp--preset--color--line);
    color: var(--wp--preset--color--line);
}

.wp-block-details {
    padding-block: 1rem;
    border-block: 1px solid var(--wp--preset--color--line);
}

.wp-block-details summary {
    padding-block: 0.35rem;
    cursor: pointer;
    font-weight: 600;
}

.wp-block-post-date {
    color: var(--wp--preset--color--muted);
    font-size: 0.875rem;
}

.wp-block-query .wp-block-post {
    padding-block: 2rem;
    border-bottom: 1px solid var(--wp--preset--color--line);
}

.wp-block-query .wp-block-post-title {
    margin-block: 0.75rem 1rem;
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.wp-block-query .wp-block-post-title a {
    color: inherit;
    text-decoration-thickness: 1px;
}

.wp-block-query-pagination {
    gap: 1rem;
    margin-top: 2rem;
}

.wp-block-query-pagination :is(a, .current) {
    display: inline-block;
    padding: 0.5rem;
}

.wp-block-search__input {
    min-width: 0;
    min-height: 48px;
    padding: 0.75rem;
    border: 1px solid #aab3be;
    font: inherit;
}

.wp-block-search__label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.wp-block-search__button {
    cursor: pointer;
}

.wp-site-blocks > main:not(.arsenal-home) .wp-block-button__link {
    min-height: 48px;
    box-sizing: border-box;
}

.arsenal-about > :is(.arsenal-eyebrow, h2, .arsenal-about-intro) {
    max-width: var(--wp--style--global--content-size);
    margin-inline: auto;
}

/* Existing native-block contact sections: retain content and plugin markup. */
.wp-block-post-content .wp-block-group:has(> .wpcf7) {
    border-top: 1px solid var(--wp--preset--color--line);
}

.wpcf7 .wpcf7-list-item {
    margin: 0 1rem 0.5rem 0;
}

.wpcf7 input:is([type="checkbox"], [type="radio"]) {
    width: 1.15rem;
    height: 1.15rem;
    accent-color: var(--wp--preset--color--red);
}

@media (min-width: 1000px) {
    .wp-block-post-content .wp-block-group:has(> .wpcf7) {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
        column-gap: clamp(2rem, 4vw, 4rem);
        align-items: start;
    }

    .wp-block-post-content .wp-block-group:has(> .wpcf7) > * {
        width: 100%;
        box-sizing: border-box;
        grid-column: 1;
        margin-inline: 0;
    }

    .wp-block-post-content .wp-block-group:has(> .wpcf7) > .wpcf7 {
        grid-column: 2;
        grid-row: 1 / span 4;
        margin-top: 0;
    }
}

@media (max-width: 600px) {
    /* Override saved Group padding only for form sections on narrow screens. */
    .wp-block-post-content .wp-block-group:has(> .wpcf7) {
        padding-inline: 1rem !important;
    }

    .wpcf7 form {
        padding: 1rem;
    }

    .wp-block-search__button {
        padding-inline: 1rem;
    }
}

/* Legacy About introduction classes remain for already-inserted page content. */
.arsenal-about .arsenal-eyebrow {
    color: var(--wp--preset--color--red);
}

.arsenal-about-intro {
    max-width: 720px;
    color: var(--wp--preset--color--muted);
    line-height: 1.75;
}

.arsenal-timeline {
    position: relative;
    margin-top: clamp(2rem, 4vw, 3rem);
}

.arsenal-timeline > .arsenal-timeline-step:has(~ .arsenal-timeline-step)::after {
    content: "";
    position: absolute;
    z-index: -1;
    /* Hidden beneath this marker, ending at the next marker's top edge.
     * The row's actual height includes any added milestone content. */
    top: 1rem;
    bottom: -3rem;
    left: 61px;
    width: 2px;
    background: linear-gradient(to bottom, var(--arsenal-milestone-color), var(--arsenal-milestone-color) 45%, transparent);
    pointer-events: none;
}

.arsenal-timeline > .arsenal-timeline-step {
    --arsenal-milestone-color: var(--wp--preset--color--red);
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: 124px minmax(0, 1fr);
    align-items: start;
    gap: clamp(1.25rem, 3vw, 2.5rem);
    margin-block: 0 2rem;
}

.arsenal-timeline > .arsenal-timeline-step:last-child {
    margin-bottom: 0;
}

.arsenal-timeline-step::before {
    content: "";
    position: absolute;
    top: 3.5rem;
    left: 124px;
    width: clamp(1.25rem, 3vw, 2.5rem);
    height: 1px;
    background: #dce0e4;
    pointer-events: none;
}

.arsenal-timeline > .arsenal-timeline-step:nth-child(even) {
    --arsenal-milestone-color: var(--wp--preset--color--charcoal);
}

.arsenal-timeline-step > .arsenal-timeline-marker {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    margin: 1rem 0 0;
    min-height: 96px;
    padding: 1.25rem 1rem 2.25rem;
    background: linear-gradient(125deg, #00000025, #ffffff12), var(--arsenal-milestone-color);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), 50% 100%, 0 calc(100% - 16px));
}

.arsenal-timeline-marker .arsenal-timeline-year {
    margin: 0;
    color: var(--wp--preset--color--white);
    font-size: clamp(1.75rem, 3vw, 2rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.arsenal-timeline-step > .arsenal-timeline-content {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin: 0;
    padding: clamp(1.5rem, 3vw, 2.25rem);
    border: 1px solid #e1e5e9;
    border-left: 3px solid var(--arsenal-milestone-color);
    border-radius: 0;
    background: var(--wp--preset--color--light);
}

.arsenal-timeline-content::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0 0 auto auto;
    width: 100px;
    height: 100px;
    background: var(--arsenal-milestone-color);
    opacity: 0.05;
    clip-path: polygon(40% 0, 100% 0, 100% 100%);
    pointer-events: none;
}

.arsenal-timeline-content h3 {
    margin: 0;
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    letter-spacing: -0.025em;
}

.arsenal-timeline-content ul {
    margin-block: 1rem 0;
    padding-left: 1.25rem;
    color: #535d69;
    font-size: 0.9375rem;
    line-height: 1.85;
}

.arsenal-timeline-content li + li {
    margin-top: 0.5rem;
}

.arsenal-timeline-content li::marker {
    color: var(--arsenal-milestone-color);
}

.arsenal-timeline-content strong {
    color: var(--wp--preset--color--ink);
    font-weight: 600;
}

.arsenal-timeline-content > p {
    margin-block: 1rem 0;
    color: #535d69;
    font-size: 0.9375rem;
    line-height: 1.85;
}

.arsenal-timeline-content .wp-block-image img {
    max-width: 100%;
    height: auto;
}

@media (max-width: 600px) {
    .arsenal-timeline > .arsenal-timeline-step::after {
        display: none;
    }

    .arsenal-timeline-step::before {
        display: none;
    }

    .arsenal-timeline > .arsenal-timeline-step {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.75rem;
        margin-bottom: 2rem;
    }

    .arsenal-timeline-step > .arsenal-timeline-marker {
        width: 124px;
        min-height: 80px;
        margin-top: 0;
        padding: 1rem 1.25rem 2rem;
    }
}

/* Contact Form 7: scoped so other forms and plugin controls stay unchanged. */
.wpcf7 {
    max-width: 720px;
    margin-inline: auto;
}

.arsenal-contact-form-wide .wpcf7 {
    width: 100%;
    max-width: none;
}

.wpcf7 form {
    padding: clamp(1.25rem, 4vw, 2.5rem);
    border: 1px solid #e1e5e9;
    border-top: 3px solid var(--wp--preset--color--red);
    background: var(--wp--preset--color--white);
}

.wpcf7 form > p {
    margin: 0 0 1.5rem;
}

.wpcf7 label {
    display: block;
    color: var(--wp--preset--color--ink);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.6;
}

.wpcf7-form-control-wrap {
    display: block;
    margin-top: 0.5rem;
}

.wpcf7 :is(.wpcf7-text, .wpcf7-textarea, .wpcf7-select, .wpcf7-number, .wpcf7-date) {
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-height: 48px;
    padding: 0.8rem 1rem;
    border: 1px solid #c4cbd3;
    border-radius: 3px;
    background: var(--wp--preset--color--light);
    color: var(--wp--preset--color--ink);
    font: inherit;
    font-size: 1rem;
    line-height: 1.5;
}

.wpcf7 .wpcf7-textarea {
    min-height: 180px;
    resize: vertical;
}

.wpcf7 :is(input, textarea)::placeholder {
    color: #60656d;
    opacity: 1;
}

.wpcf7 :is(input, textarea, select):focus-visible {
    border-color: var(--wp--preset--color--red);
    outline: 2px solid var(--wp--preset--color--red);
    outline-offset: 2px;
}

.wpcf7 .wpcf7-submit {
    box-sizing: border-box;
    max-width: 100%;
    min-height: 48px;
    padding: 1rem 1.75rem;
    border: 1px solid transparent;
    border-radius: 0;
    background: var(--wp--preset--color--red);
    color: var(--wp--preset--color--white);
    font: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
}

.wpcf7 .wpcf7-submit:hover {
    background: #b9000e;
}

.wpcf7 .wpcf7-submit:disabled,
.wpcf7 form.submitting .wpcf7-submit {
    opacity: 0.6;
    cursor: wait;
}

.wpcf7 .wpcf7-not-valid {
    border-color: #b9000e;
}

.wpcf7 .wpcf7-not-valid-tip {
    margin-top: 0.5rem;
    color: #b9000e;
    font-size: 0.875rem;
    font-weight: 400;
}

.wpcf7 form .wpcf7-response-output {
    margin: 1.5rem 0 0;
    padding: 1rem;
    border-width: 1px;
    border-left-width: 4px;
    color: var(--wp--preset--color--ink);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.wpcf7 form.sent .wpcf7-response-output {
    border-color: #267442;
    background: #f0f8f2;
}

.wpcf7 form:is(.invalid, .unaccepted, .failed, .aborted, .spam) .wpcf7-response-output {
    border-color: #a33b12;
    background: #fff5ef;
}

:where(a, button, input, textarea, select, summary):focus-visible {
    outline: 3px solid currentColor;
    outline-offset: 5px;
}

.wp-block-button__link {
    border: 1px solid transparent;
    transition: background-color 180ms ease, color 180ms ease;
}

.wp-block-button:not(.is-style-outline) > .wp-block-button__link:hover {
    background-color: #b9000e;
}

.wp-block-button.is-style-outline > .wp-block-button__link {
    border: 1px solid currentColor;
    color: var(--wp--preset--color--ink);
    background: transparent;
    padding: 1rem 1.75rem;
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover {
    background: var(--wp--preset--color--ink);
    border-color: var(--wp--preset--color--ink);
    color: #fff;
}

.arsenal-hero .wp-block-button__link:focus-visible {
    outline-color: var(--wp--preset--color--ink);
}

@media (hover: hover) {
    .arsenal-card:hover::before {
        transform: translateY(-4px);
    }
}

@media (max-width: 781px) {
    .arsenal-hero {
        min-height: 560px;
    }

    .arsenal-hero h1 {
        font-size: clamp(2.75rem, 8vw, 4rem);
    }

    .arsenal-section .wp-block-columns {
        gap: 2rem;
        margin-top: 2.5rem;
    }

    .arsenal-applications > .wp-block-group {
        grid-template-columns: 1fr;
    }

    .arsenal-applications .wp-block-image,
    .arsenal-applications .wp-block-image img {
        height: 320px;
        min-height: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .arsenal-card::before,
    .wp-block-button__link {
        transition: none;
        transform: none;
    }
}
