/* Keep the homepage navigation, ticker and hero visually connected. */
.main > header > nav {
    border-block: 0;
    border-bottom: 1px solid #eaf0f4;
    padding-top: 18px;
    padding-bottom: 8px;
}

.main > header > nav .sf-menu > li > a {
    color: #244b63;
}

.main > header > nav .sf-menu > li:hover,
.main > header > nav .sf-menu > li:focus-within,
.main > header > nav .sf-menu > li.current {
    background: #edf6fc;
}

.main > header > nav .sf-menu > li.current > a {
    color: #153b55;
}

.main > header > .tc-threat-board {
    position: relative;
    margin-block: 2px 4px;
    padding-block: 5px;
}

.tc-home-slider { clear: both; width: 100%; }
.tc-home-slider [hidden] { display: none !important; }

.tc-home-slider-stage {
    position: relative;
    aspect-ratio: 980 / 429;
    min-height: 208px;
    overflow: hidden;
    background: #0c263c;
}
.tc-home-slider-stage::after {
    position: absolute;
    z-index: 2;
    inset: 0 -30%;
    content: "";
    pointer-events: none;
    background: linear-gradient(105deg, transparent 31%, #bb9dff45 43%, #85c6ff4a 55%, transparent 69%);
    animation: tc-home-image-wave 12s linear infinite;
}

.tc-home-slider-stage.is-wave-paused::after { animation-play-state: paused; }

@keyframes tc-home-image-wave {
    0% { transform: translateX(-60%); opacity: 0; }
    8%, 92% { opacity: 1; }
    100% { transform: translateX(60%); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .tc-home-slider-stage::after { animation: none; opacity: 0; }
}

.tc-home-slide { position: absolute; inset: 0; }
.tc-home-slide.is-incoming {
    z-index: 1;
    --tc-slide-fade-duration: 1.3s;
    animation: tc-home-slide-fade-in var(--tc-slide-fade-duration) ease-in-out both;
}
.tc-home-slide[inert] { pointer-events: none; }

@keyframes tc-home-slide-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.tc-home-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 62% center;
}
.tc-home-slide::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(90deg, #081c30cc, #081c3033 65%, transparent);
    pointer-events: none;
}
.tc-home-slide.is-incoming::after {
    animation: tc-home-slide-color-wash var(--tc-slide-fade-duration) ease-in-out both;
}

@keyframes tc-home-slide-color-wash {
    0%, 100% { background-color: transparent; }
    35% { background-color: #2d7fff50; }
    68% { background-color: #803de54a; }
}

.tc-home-slide-copy {
    position: absolute;
    z-index: 1;
    left: clamp(16px, 4%, 46px);
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
}
.tc-home-slide-copy strong {
    display: block;
    font: 700 clamp(30px, 6vw, 64px)/1 Arial, sans-serif;
    text-transform: uppercase;
}
.tc-home-slide-copy p {
    margin: .6em 0 1em;
    color: #fff;
    font-size: clamp(.82rem, 2vw, 1.05rem);
}
.tc-home-slide-copy a {
    display: inline-block;
    padding: .55em 1.1em;
    border-radius: 7px;
    background: #fff;
    color: #14364e;
    font: 700 .85rem/1.5 Arial, sans-serif;
    text-decoration: none;
}
.tc-home-slide-copy a:hover { background: #e5f5ff; }

.tc-home-slider-controls {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    padding: 6px 16px;
    background: #fff;
}
.tc-home-slider-controls button {
    appearance: none;
    border: 0;
    background: transparent;
    color: #174c68;
    font: 700 .78rem/1.5 Arial, sans-serif;
    cursor: pointer;
}
.tc-home-slider-toggle { min-height: 32px; }
.tc-home-slider-dots { display: flex; }
.tc-home-slider-dots button {
    display: grid;
    place-items: center;
    width: 31px;
    height: 32px;
    padding: 0;
}
.tc-home-slider-dots button::after {
    width: 12px;
    height: 12px;
    border: 1px solid #1685b5;
    border-radius: 50%;
    content: "";
}
.tc-home-slider-dots button[aria-current]::after { background: #1685b5; }
.tc-home-slider-controls button:focus-visible { outline: 2px solid #1685b5; outline-offset: 2px; }

@media (max-width: 850px) {
    .main > header > nav { padding-block: 8px 6px; }
    .main > header > nav .tc-header-tools { margin-top: 6px; }
}

@media (max-width: 540px) {
    .main > header > a > img { max-width: min(100%, 280px); }
    .main > header > nav .sf-menu > li { margin-inline-end: 4px; }
}

@media (max-width: 600px) {
    .tc-home-slide img { object-position: 65% center; }
}

.tc-home-experience {
    display: grid;
    grid-template-columns: minmax(0, 42fr) minmax(0, 58fr);
    background: #f3f8fb;
    border-block: 1px solid #dce6ed;
}
.tc-home-experience-image {
    position: relative;
    overflow: hidden;
    background: #0c263c;
}
.tc-home-experience-image img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    max-width: none;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.tc-home-experience .tc-home-experience-copy {
    padding: clamp(25px, 4vw, 52px);
    background: transparent;
}
.tc-home-experience .tc-names { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tc-home-experience .tc-note { margin-bottom: 14px; }

@media (max-width: 760px) {
    .tc-home-experience { grid-template-columns: 1fr; }
    .tc-home-experience-image { aspect-ratio: 16 / 8; }
}

.main > header > .tc-threat-board::after {
    position: absolute;
    inset-inline: -1px;
    top: calc(100% + 1px);
    z-index: 1;
    height: 3px;
    color: #186ff7;
    background: linear-gradient(90deg, transparent, currentColor 68%, transparent 83%) 50% 0 / 26% 100% no-repeat #dce6ed;
    background: linear-gradient(90deg, transparent, color-mix(in srgb, currentColor 24%, transparent) 32%, currentColor 68%, transparent 83%) 50% 0 / 26% 100% no-repeat #dce6ed;
    content: "";
    pointer-events: none;
}

body[data-ticker-autoplay] .main > header > .tc-threat-board {
    --tc-home-sweep-duration: 9.333333s;
}

body[data-ticker-autoplay] .main > header > .tc-threat-board::after {
    animation: tc-home-ticker-sweep var(--tc-home-sweep-duration) linear infinite, tc-home-ticker-color var(--tc-home-sweep-duration) linear infinite;
}

body[data-ticker-autoplay] .main > header > .tc-threat-board.tc-threat-stopped::after {
    animation-play-state: paused;
}

@keyframes tc-home-ticker-sweep {
    from { background-position: -35.2% 0; }
    to { background-position: 135.2% 0; }
}

@keyframes tc-home-ticker-color {
    0%, 18% { color: #ffbc26; }
    38% { color: #f43b37; }
    65% { color: #186ff7; }
    85%, 100% { color: #963cea; }
}

body[data-ticker-autoplay] .main > header > .tc-threat-board::before {
    position: absolute;
    inset-inline: -1px;
    top: 100%;
    z-index: 2;
    height: 5px;
    background:
        linear-gradient(90deg,
            transparent calc(68% - 2.5px),
            var(--tc-home-glint-color, #c7bd9c) calc(68% - 2.5px) calc(68% + 2.5px),
            transparent calc(68% + 2.5px)
        ) 50% 2px / 26% 1px no-repeat,
        linear-gradient(90deg,
            transparent calc(68% - 0.5px),
            var(--tc-home-glint-color, #c7bd9c) calc(68% - 0.5px) calc(68% + 0.5px),
            transparent calc(68% + 0.5px)
        ) 50% 0 / 26% 5px no-repeat;
    opacity: 0;
    animation: tc-home-ticker-cross-sweep var(--tc-home-sweep-duration) linear infinite,
        tc-home-ticker-glint var(--tc-home-sweep-duration) step-end calc(var(--tc-home-sweep-duration) * var(--tc-home-glint-phase, 0.5)) infinite;
    content: "";
    pointer-events: none;
}

body[data-ticker-autoplay] .main > header > .tc-threat-board.tc-threat-stopped::before { animation-play-state: paused; }

@keyframes tc-home-ticker-cross-sweep {
    from { background-position: -35.2% 2px, -35.2% 0; }
    to { background-position: 135.2% 2px, 135.2% 0; }
}

@keyframes tc-home-ticker-glint {
    0% { opacity: 1; }
    2.142857%, 100% { opacity: 0; }
}

.tc-threat-board #tc-intel-trigger:not([hidden]) {
    display: inline-block;
}

.main > header > .tc-threat-board .tc-intel-startup:not([hidden]) {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    float: inline-end;
    margin-inline-start: 8px;
    min-height: 24px;
    cursor: pointer;
}

.main > header > .tc-threat-board .tc-threat-toolbar {
    justify-content: flex-end;
    gap: 4px 8px;
}

.main > header > .tc-threat-board .tc-threat-title { margin-inline-end: auto; }

.main > header > .tc-threat-board .tc-intel-startup input { margin: 0; accent-color: #85c6ff; }

@media (max-width: 540px) {
    .main-content .tc-cta .tc-btn {
        min-height: 36px;
        box-sizing: border-box;
        padding: 6px 10px;
        border-radius: 4px;
        font-size: 12px;
        line-height: 22px;
    }
}
