/*
 * AMTECCO operating-path hero system.
 * New namespace: no dependency on the retired hero, Apple, CDN, AI, or b-hero cascades.
 */

.sf-site .amtecco-service-hero {
    --service-accent: var(--amtecco-mark);
    --service-accent-text: var(--amtecco-action-soft);
    --service-accent-ink: #fff;
    position: relative;
    overflow: clip;
    padding-block: clamp(5rem, 8vw, 7.5rem) clamp(4rem, 7vw, 6rem);
    border-bottom: 1px solid var(--amtecco-line);
    background-color: var(--amtecco-carbon-deep);
    color: var(--amtecco-paper);
}

.sf-site .amtecco-service-hero--srt {
    --service-accent: var(--amtecco-srt);
    --service-accent-text: var(--amtecco-srt);
    --service-accent-ink: #08101c;
}

.sf-site .amtecco-service-hero--cdn {
    --service-accent: var(--amtecco-cdn);
    --service-accent-text: var(--amtecco-cdn);
    --service-accent-ink: #071114;
}

.sf-site .amtecco-service-hero__mast {
    display: grid;
    grid-template-columns: minmax(0, 8fr) minmax(17rem, 4fr);
    align-items: end;
    gap: clamp(3rem, 7vw, 7rem);
}

.sf-site .amtecco-service-hero__copy {
    min-width: 0;
}

.sf-site .amtecco-service-hero__relationship {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem 0.9rem;
    margin: 0 0 1.5rem;
    color: var(--amtecco-steel) !important;
    font-family: var(--amtecco-mono);
    font-size: var(--amtecco-type-caption) !important;
    font-weight: 600;
    letter-spacing: 0.1em;
    line-height: 1.5 !important;
    text-transform: uppercase;
}

.sf-site .amtecco-service-hero__relationship span:first-child {
    padding: 0.25rem 0.45rem;
    border: 1px solid color-mix(in srgb, var(--service-accent) 62%, transparent);
    color: var(--service-accent-text);
}

.sf-site .amtecco-service-hero__relationship strong {
    color: var(--amtecco-paper);
    font-family: var(--amtecco-display);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-transform: none;
}

.sf-site .amtecco-service-hero__relationship strong::after {
    margin-left: 0.9rem;
    color: var(--amtecco-line-strong);
    content: "/";
}

.sf-site .amtecco-service-hero h1 {
    max-width: 18ch;
    margin: 0;
    color: var(--amtecco-paper) !important;
    font-family: var(--amtecco-display);
    font-size: clamp(3rem, 5vw, 4.5rem) !important;
    font-weight: 600 !important;
    hyphens: none;
    letter-spacing: -0.052em !important;
    line-height: 1.04 !important;
    overflow-wrap: normal;
    text-wrap: balance;
}

.sf-site .amtecco-service-hero__lead {
    max-width: 64ch;
    margin: 1.75rem 0 0;
    color: var(--amtecco-paper-soft) !important;
    font-size: clamp(1.1875rem, 1.08rem + 0.28vw, 1.3125rem) !important;
    line-height: 1.55 !important;
}

.sf-site .amtecco-service-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.sf-site .amtecco-service-hero__actions .btn {
    display: inline-flex;
    min-width: 0;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.8rem 1.15rem;
    border-width: 1px;
    border-radius: var(--amtecco-radius) !important;
    box-shadow: none !important;
    font-size: 0.9375rem !important;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
}

.sf-site .amtecco-service-hero__actions .btn-primary {
    border-color: var(--service-accent) !important;
    background: var(--service-accent) !important;
    color: var(--service-accent-ink) !important;
}

.sf-site .amtecco-service-hero__actions .btn-outline-primary {
    border-color: var(--amtecco-line-strong) !important;
    background: transparent !important;
    color: var(--amtecco-paper) !important;
}

.sf-site .amtecco-service-hero__role {
    min-width: 0;
    padding: 0.5rem 0 0.5rem 1.5rem;
    border-left: 4px solid var(--service-accent);
}

.sf-site .amtecco-service-hero__role > span,
.sf-site .amtecco-service-hero__system-meta,
.sf-site .amtecco-service-hero__step > span,
.sf-site .amtecco-service-hero__facts span {
    font-family: var(--amtecco-mono);
    font-size: var(--amtecco-type-caption);
    font-weight: 600;
    letter-spacing: 0.1em;
    line-height: 1.5;
    text-transform: uppercase;
}

.sf-site .amtecco-service-hero__role > span {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--amtecco-steel);
}

.sf-site .amtecco-service-hero__role > strong {
    display: block;
    color: var(--amtecco-paper);
    font-family: var(--amtecco-display);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.sf-site .amtecco-service-hero__role > p {
    max-width: 33rem;
    margin: 1rem 0 0;
    color: var(--amtecco-paper-soft) !important;
    font-size: 1rem !important;
    line-height: 1.6 !important;
}

.sf-site .amtecco-service-hero__system {
    --service-path-rail-space: clamp(2rem, 4vw, 3.25rem);
    --service-path-bottom-space: clamp(2.25rem, 3vw, 2.75rem);
    position: relative;
    margin: clamp(3rem, 6vw, 5rem) 0 0;
    border: 1px solid var(--amtecco-line-strong);
    background: var(--amtecco-carbon-deep);
}

.sf-site .amtecco-service-hero__system-meta {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem var(--amtecco-decoration-safe-inset);
    border-bottom: 1px solid var(--amtecco-line);
    color: var(--amtecco-steel);
}

.sf-site .amtecco-service-hero__path-wrap {
    position: relative;
}

.sf-site .amtecco-service-hero__path {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    padding: var(--service-path-rail-space) 0 var(--service-path-bottom-space);
    list-style: none;
}

.sf-site .amtecco-service-hero__rail {
    position: absolute;
    z-index: 0;
    top: calc(var(--service-path-rail-space) + 7px);
    right: 16.666667%;
    left: 16.666667%;
    height: 1px;
    background: var(--amtecco-line-strong);
}

.sf-site .amtecco-service-hero__rail::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--amtecco-paper-soft), var(--service-accent) 50%, var(--service-accent));
    content: "";
    transform: scaleX(1);
    transform-origin: left;
}

.sf-site .amtecco-service-hero__path > li {
    position: relative;
    z-index: 1;
    min-width: 0;
    padding-inline: clamp(1rem, 3vw, 2.5rem);
    text-align: center;
}

.sf-site .amtecco-service-hero__path > li + li {
    border-left: 1px solid var(--amtecco-line);
}

.sf-site .amtecco-service-hero__port {
    position: relative;
    z-index: 2;
    display: block;
    width: 15px;
    height: 15px;
    margin-inline: auto;
    border: 1px solid var(--amtecco-paper-soft);
    background: var(--amtecco-carbon-deep);
}

.sf-site .amtecco-service-hero__path > li.is-active .amtecco-service-hero__port {
    border-color: var(--service-accent);
    background: var(--service-accent);
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--service-accent) 13%, transparent);
}

.sf-site .amtecco-service-hero__step {
    margin-top: var(--amtecco-flow-copy-offset);
}

.sf-site .amtecco-service-hero__step > span {
    display: block;
    max-width: 26ch;
    margin-inline: auto;
    color: var(--amtecco-steel);
    text-wrap: balance;
}

.sf-site .amtecco-service-hero__step > small {
    display: block;
    max-width: 30ch;
    margin-inline: auto;
    color: var(--amtecco-paper-soft);
    font-family: var(--amtecco-sans);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.5;
    text-wrap: balance;
    text-transform: none;
}

.sf-site .amtecco-service-hero__step > strong {
    display: block;
    max-width: 24ch;
    margin: 0.65rem auto 0.35rem;
    color: var(--amtecco-paper);
    font-family: var(--amtecco-display);
    font-size: clamp(1.125rem, 1.5vw, 1.375rem);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.3;
    overflow-wrap: break-word;
    text-wrap: balance;
}

.sf-site .amtecco-service-hero__path > li.is-active .amtecco-service-hero__step > span {
    color: var(--service-accent-text);
}

.sf-site .amtecco-service-hero__facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--amtecco-line);
    list-style: none;
}

.sf-site .amtecco-service-hero__facts li {
    display: grid;
    min-width: 0;
    min-height: 76px;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem 2rem;
}

.sf-site .amtecco-service-hero__facts li:first-child {
    padding-left: var(--amtecco-decoration-safe-inset);
}

.sf-site .amtecco-service-hero__facts li:last-child {
    padding-right: var(--amtecco-decoration-safe-inset);
}

.sf-site .amtecco-service-hero__facts li + li {
    border-left: 1px solid var(--amtecco-line);
}

.sf-site .amtecco-service-hero__facts span {
    color: var(--service-accent-text);
}

.sf-site .amtecco-service-hero__facts strong {
    color: var(--amtecco-paper-soft);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.amtecco-motion .amtecco-service-hero__system[data-motion-diagram] .amtecco-service-hero__rail::after {
    transition: transform var(--amtecco-motion-diagram) var(--amtecco-ease-standard);
}

.amtecco-motion .amtecco-service-hero__system[data-motion-diagram]:not(.is-diagram-visible) .amtecco-service-hero__rail::after {
    transform: scaleX(0);
}

@media (hover: hover) and (pointer: fine) {
    .sf-site .amtecco-service-hero__actions .btn-outline-primary:hover {
        border-color: var(--service-accent) !important;
        background: color-mix(in srgb, var(--service-accent) 8%, transparent) !important;
    }
}

@media (max-width: 991.98px) {
    .sf-site .amtecco-service-hero__mast {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 2.5rem;
    }

    .sf-site .amtecco-service-hero__role {
        max-width: 42rem;
    }
}

@media (max-width: 767.98px) {
    .sf-site .amtecco-service-hero {
        padding-block: 4rem 3.5rem;
    }

    .sf-site .amtecco-service-hero h1 {
        max-width: 100%;
        font-size: clamp(2.25rem, 10.8vw, 2.875rem) !important;
        line-height: 1.08 !important;
        hyphens: none;
        overflow-wrap: anywhere;
        text-wrap: pretty;
    }

    .sf-site .amtecco-service-hero__lead {
        font-size: 1.1875rem !important;
    }

    .sf-site .amtecco-service-hero__relationship {
        align-items: flex-start;
    }

    .sf-site .amtecco-service-hero__relationship strong::after {
        display: none;
    }

    .sf-site .amtecco-service-hero__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .sf-site .amtecco-service-hero__actions .btn {
        width: 100%;
    }

    .sf-site .amtecco-service-hero__system-meta {
        align-items: flex-start;
        flex-direction: column;
        padding: 3rem 1.25rem 1rem;
    }

    .sf-site .amtecco-service-hero__path {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 2rem 1.25rem 2.25rem;
    }

    .sf-site .amtecco-service-hero__rail {
        display: none;
    }

    .sf-site .amtecco-service-hero__path > li {
        display: grid;
        grid-template-columns: 24px minmax(0, 1fr);
        align-items: start;
        gap: 1rem;
        padding: 0;
        text-align: left;
    }

    .sf-site .amtecco-service-hero__path > li + li {
        border-left: 0;
    }

    .sf-site .amtecco-service-hero__path > li:not(:last-child)::after {
        position: absolute;
        z-index: 0;
        top: 15px;
        bottom: -1.5rem;
        left: 7px;
        width: 1px;
        background: var(--service-accent);
        content: "";
    }

    .sf-site .amtecco-service-hero__port {
        margin: 0;
    }

    .sf-site .amtecco-service-hero__step {
        min-width: 0;
        margin-top: -0.2rem;
        padding-right: 1rem;
        overflow-wrap: anywhere;
    }

    .sf-site .amtecco-service-hero__step > span,
    .sf-site .amtecco-service-hero__step > small,
    .sf-site .amtecco-service-hero__step > strong {
        max-width: none;
        margin-inline: 0;
        text-wrap: pretty;
    }

    .sf-site .amtecco-service-hero__facts {
        grid-template-columns: 1fr;
    }

    .sf-site .amtecco-service-hero__facts li {
        min-height: 64px;
        padding: 1rem 1.25rem;
        padding-inline-start: var(--amtecco-decoration-safe-inset);
    }

    .sf-site .amtecco-service-hero__facts li:last-child {
        padding: 1rem var(--amtecco-decoration-safe-inset) 2rem;
    }

    .sf-site .amtecco-service-hero__facts li + li {
        border-top: 1px solid var(--amtecco-line);
        border-left: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .amtecco-motion .amtecco-service-hero__system[data-motion-diagram] .amtecco-service-hero__rail::after {
        transition: none;
        transform: none;
    }
}

/* Company, event, campaign, and contact brief heroes. */
.sf-site .amtecco-context-hero {
    position: relative;
    overflow: clip;
    padding-block: clamp(5rem, 9vw, 8rem);
    border-bottom: 1px solid var(--amtecco-line);
    background-color: var(--amtecco-carbon-deep);
    color: var(--amtecco-paper);
}

.sf-site .amtecco-context-hero__layout {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(19rem, 5fr);
    align-items: center;
    gap: clamp(3.5rem, 8vw, 8rem);
}

.sf-site .amtecco-context-hero__copy {
    min-width: 0;
}

.sf-site .amtecco-context-hero__eyebrow {
    margin: 0 0 1.5rem;
    color: var(--amtecco-action-soft) !important;
    font-family: var(--amtecco-mono);
    font-size: var(--amtecco-type-caption) !important;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.5 !important;
    text-transform: uppercase;
}

.sf-site .amtecco-context-hero h1 {
    max-width: 18ch;
    margin: 0;
    color: var(--amtecco-paper) !important;
    font-family: var(--amtecco-display);
    font-size: clamp(3rem, 5vw, 4.5rem) !important;
    font-weight: 600 !important;
    hyphens: none;
    letter-spacing: -0.052em !important;
    line-height: 1.04 !important;
    overflow-wrap: normal;
    text-wrap: balance;
}

.sf-site .amtecco-context-hero__lead {
    max-width: 64ch;
    margin: 1.75rem 0 0;
    color: var(--amtecco-paper-soft) !important;
    font-size: clamp(1.1875rem, 1.08rem + 0.28vw, 1.3125rem) !important;
    line-height: 1.55 !important;
}

.sf-site .amtecco-context-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.sf-site .amtecco-context-hero__actions .btn {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.8rem 1.15rem;
    border-width: 1px;
    border-radius: var(--amtecco-radius) !important;
    box-shadow: none !important;
    font-size: 0.9375rem !important;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
}

.sf-site .amtecco-context-hero__actions .btn-primary {
    border-color: var(--amtecco-action) !important;
    background: var(--amtecco-action) !important;
    color: #fff !important;
}

.sf-site .amtecco-context-hero__actions .btn-outline-primary {
    border-color: var(--amtecco-line-strong) !important;
    background: transparent !important;
    color: var(--amtecco-paper) !important;
}

.sf-site .amtecco-context-hero__brief {
    position: relative;
    min-width: 0;
    margin: 0;
    border: 1px solid var(--amtecco-line-strong);
    background: var(--amtecco-carbon-deep);
}

.sf-site .amtecco-context-hero__brief-meta {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1.25rem 0.75rem var(--amtecco-decoration-safe-inset);
    border-bottom: 1px solid var(--amtecco-line);
    color: var(--amtecco-steel);
    font-family: var(--amtecco-mono);
    font-size: var(--amtecco-type-caption);
    font-weight: 600;
    letter-spacing: 0.1em;
    line-height: 1.5;
    text-transform: uppercase;
}

.sf-site .amtecco-context-hero__brief dl {
    margin: 0;
}

.sf-site .amtecco-context-hero__brief dl > div {
    display: grid;
    min-height: 84px;
    grid-template-columns: minmax(7rem, 0.75fr) minmax(0, 1.25fr);
    align-items: center;
    gap: 1.25rem;
    padding: 1rem 1.25rem;
}

.sf-site .amtecco-context-hero__brief dl > div:last-child {
    padding-right: var(--amtecco-decoration-safe-inset);
    padding-bottom: 2rem;
}

.sf-site .amtecco-context-hero__brief dl > div + div {
    border-top: 1px solid var(--amtecco-line);
}

.sf-site .amtecco-context-hero__brief dt {
    color: var(--amtecco-steel);
    font-family: var(--amtecco-mono);
    font-size: var(--amtecco-type-caption);
    font-weight: 600;
    letter-spacing: 0.09em;
    line-height: 1.5;
    overflow-wrap: anywhere;
    text-transform: uppercase;
}

.sf-site .amtecco-context-hero__brief dd {
    margin: 0;
    color: var(--amtecco-paper);
    font-family: var(--amtecco-display);
    font-size: clamp(1rem, 1.4vw, 1.25rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.35;
}

@media (hover: hover) and (pointer: fine) {
    .sf-site .amtecco-context-hero__actions .btn-outline-primary:hover {
        border-color: var(--amtecco-action) !important;
        background: rgba(197, 75, 60, 0.08) !important;
    }
}

@media (max-width: 991.98px) {
    .sf-site .amtecco-context-hero__layout {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 3rem;
    }

    .sf-site .amtecco-context-hero__brief {
        max-width: 44rem;
    }
}

@media (max-width: 767.98px) {
    .sf-site .amtecco-context-hero {
        padding-block: 4rem;
    }

    .sf-site .amtecco-context-hero h1 {
        max-width: 100%;
        font-size: clamp(2.25rem, 10.8vw, 2.875rem) !important;
        line-height: 1.08 !important;
        hyphens: none;
        overflow-wrap: anywhere;
        text-wrap: pretty;
    }

    .sf-site .amtecco-context-hero__lead {
        font-size: 1.1875rem !important;
    }

    .sf-site .amtecco-context-hero__actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .sf-site .amtecco-context-hero__actions .btn {
        width: 100%;
    }

    .sf-site .amtecco-context-hero__brief-meta {
        align-items: flex-start;
        flex-direction: column;
        padding: 3rem 1.25rem 1rem;
    }

    .sf-site .amtecco-context-hero__brief dl > div {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }
}
