/* A continuous brand band, with two identical groups for a seamless loop. */
.brand-ribbon {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 96px;
    padding: 8px 88px 8px 0;
    overflow: hidden;
    background: #eaf8fd;
    color: #123c50;
    border-block: 1px solid #c6e4f0;
}
.brand-ribbon::before,
.brand-ribbon::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: #0076a318;
    pointer-events: none;
}
.brand-ribbon::before { top: 8px; }
.brand-ribbon::after { bottom: 8px; }
.brand-ribbon__signature {
    flex: 0 0 210px;
    padding: 4px 32px 4px clamp(24px, 3vw, 52px);
    border-right: 1px solid #0076a330;
}
.brand-ribbon__signature > span:first-child {
    display: block;
    margin-bottom: 4px;
    color: #52717f;
    font-size: 9px;
    font-weight: 400;
    letter-spacing: .16em;
    white-space: nowrap;
}
.brand-ribbon__signature strong {
    display: block;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: -.025em;
}
.brand-ribbon__signature-line {
    display: block;
    width: 30px;
    height: 2px;
    margin-top: 8px;
    background: #0076a3;
}
.brand-ribbon__viewport {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 32px, #000 calc(100% - 32px), transparent);
}
.brand-ribbon__track {
    display: flex;
    width: max-content;
    animation: dolphins-ribbon-flow 50s linear infinite paused;
}
.js .brand-ribbon__track { animation-play-state: running; }
.brand-ribbon__group {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-around;
    gap: clamp(32px, 3.5vw, 64px);
    min-width: 100vw;
    padding-inline: clamp(16px, 1.75vw, 32px);
}
.brand-ribbon__phrase {
    flex-shrink: 0;
    font-size: clamp(26px, 2.3vw, 38px);
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: -.045em;
    white-space: nowrap;
}
.brand-ribbon__phrase em {
    color: #0076a3;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.12em;
    font-weight: 400;
    font-style: italic;
    letter-spacing: -.05em;
}
.brand-ribbon__fizz {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    fill: none;
    stroke: #78b9d3;
    stroke-width: 1;
}
.brand-ribbon__bubble { fill: #0076a3; stroke: none; }
.brand-ribbon__control {
    display: none;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    margin-left: 16px;
    padding: 12px;
    border: 1px solid #9dc7d9;
    border-radius: 50%;
    background: transparent;
    color: #123c50;
    transition: color .2s, background .2s, border-color .2s;
}
.js .brand-ribbon__control { display: grid; place-items: center; }
.brand-ribbon__control:hover { background: #0076a3; color: #ffffff; border-color: #0076a3; }
.brand-ribbon__control:focus-visible { outline: 2px solid #0076a3; outline-offset: 4px; }
.brand-ribbon__control svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.5; fill: none; }
.brand-ribbon__control .brand-ribbon__play { display: none; fill: currentColor; stroke: none; }
.brand-ribbon.is-paused .brand-ribbon__track { animation-play-state: paused; }
.brand-ribbon.is-paused .brand-ribbon__pause { display: none; }
.brand-ribbon.is-paused .brand-ribbon__play { display: block; }
.brand-ribbon__accessible {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
@keyframes dolphins-ribbon-flow { to { transform: translateX(-50%); } }
@media (max-width: 700px) {
    .brand-ribbon { min-height: 80px; padding-right: 80px; }
    .brand-ribbon__signature { display: none; }
    .brand-ribbon__phrase { font-size: 26px; }
    .brand-ribbon__fizz { flex-basis: 28px; width: 28px; height: 28px; }
    .brand-ribbon__control { margin-left: 6px; }
    .brand-ribbon__viewport { mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent); }
}
/* Without animation, show every phrase once as a wrapping composition. */
html:not(.js) .brand-ribbon__viewport { mask-image: none; }
html:not(.js) .brand-ribbon__track { width: 100%; animation: none; }
html:not(.js) .brand-ribbon__group { flex: 1; min-width: 0; flex-wrap: wrap; gap: 16px 28px; padding: 24px; }
html:not(.js) .brand-ribbon__group + .brand-ribbon__group,
html:not(.js) .brand-ribbon__fizz { display: none; }
html:not(.js) .brand-ribbon__phrase { white-space: normal; }
@media (prefers-reduced-motion: reduce) {
    .brand-ribbon__viewport { mask-image: none; }
    .brand-ribbon__track { width: 100%; animation: none; }
    .brand-ribbon__group { flex: 1; min-width: 0; flex-wrap: wrap; gap: 16px 28px; padding: 24px; }
    .brand-ribbon__group + .brand-ribbon__group,
    .brand-ribbon__fizz,
    .js .brand-ribbon__control { display: none; }
    .brand-ribbon__phrase { white-space: normal; }
}
