/* A brand idea between the company introduction and the product world. */
#slide-brand .fp-inner {
    display: block;
    padding: 88px 5vw 28px;
    overflow-y: auto;
    background: var(--color-cream);
}
.brand-manifesto {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 12px;
    width: 100%;
    height: 100%;
    min-height: 460px;
    color: var(--color-text);
}
.brand-masthead { text-align: center; }
.brand-signature { width: 154px; height: auto; margin: 0 auto 14px; }
.brand-shop { display: block; }
.brand-shop img { width: 100%; height: auto; }
.brand-promise {
    margin: 0 auto;
    max-width: 1050px;
    font-size: clamp(38px, 4.8vw, 72px);
    font-weight: 400;
    line-height: 1.04;
    letter-spacing: -.035em;
    text-wrap: balance;
}
.brand-demonstration { position: relative; min-height: 0; }
.brand-jar-frame {
    position: absolute;
    height: 100%;
    aspect-ratio: 1;
    left: 57%;
    top: 50%;
    transform: translate(-50%, -50%);
    mix-blend-mode: multiply;
}
.brand-jar-state {
    position: absolute;
    inset: 0;
    background-image: url('files/brand/jar-states.webp');
    background-repeat: no-repeat;
    background-size: 300% 100%;
    background-position: calc(var(--frame) * 50%) 50%;
    opacity: 0;
    transition: opacity .65s ease;
    pointer-events: none;
}
.brand-jar-state.is-active { opacity: 1; }
#brand-jar-0 { background-image: url('files/brand/jar-states-oats.webp'); }
.brand-phases {
    position: absolute;
    top: 50%;
    left: max(3vw, calc(50% - 355px));
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: clamp(18px, 4vh, 35px);
}
.brand-phase {
    display: flex;
    align-items: baseline;
    gap: 13px;
    padding: 9px 0;
    border: 0;
    background: none;
    color: #77736c;
    cursor: pointer;
    text-align: left;
    transition: color .25s ease, translate .25s ease;
}
.brand-phase-number { font-family: var(--font-body); font-size: 9px; letter-spacing: .08em; }
.brand-phase-name {
    position: relative;
    font-family: var(--font-display);
    font-size: clamp(23px, 2.5vw, 34px);
    line-height: 1.2;
    letter-spacing: -.015em;
}
.brand-phase-name::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    right: 0;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .4s ease;
}
.brand-phase.is-active { color: var(--color-text); }
.brand-phase.is-active .brand-phase-name::after { transform: scaleX(1); }
.brand-phase:hover { color: var(--color-text); translate: 3px 0; }
.brand-shop:focus-visible, .brand-phase:focus-visible, .brand-motion:focus-visible, .brand-next:focus-visible {
    outline: 2px solid var(--color-text);
    outline-offset: 5px;
}
.brand-motion {
    position: absolute;
    left: calc(57% + 150px);
    bottom: 7%;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid #ccc8be;
    border-radius: 50%;
    background: transparent;
    color: #656158;
    cursor: pointer;
}
.brand-motion:hover { background: #fff; }
.brand-play-icon { display: none; }
.brand-motion[aria-pressed="true"] .brand-pause-icon { display: none; }
.brand-motion[aria-pressed="true"] .brand-play-icon { display: block; }
.brand-idea { text-align: center; }
.brand-idea p { max-width: 600px; margin: 0 auto; color: #656158; font-size: 13px; line-height: 1.65; }
.brand-next {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    min-height: 36px;
    font-size: 11px;
    font-weight: 600;
    border-bottom: 1px solid #c7c3b9;
}
.brand-next i { font-size: 10px; transition: translate .25s ease; }
.brand-next:hover i { translate: 0 3px; }
.brand-manifesto.is-entering .brand-masthead,
.brand-manifesto.is-entering .brand-idea { animation: brand-intro .7s both; }
.brand-manifesto.is-entering .brand-idea { animation-delay: .15s; }
@keyframes brand-intro { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }
@media (max-width: 768px) {
    #slide-brand .fp-inner { padding: 76px 24px 82px; }
    .brand-manifesto { min-height: 0; gap: 10px; }
    .brand-signature { width: 134px; margin-bottom: 12px; }
    .brand-promise { max-width: 19ch; font-size: clamp(30px, 9vw, 44px); line-height: 1.02; }
    .brand-demonstration { padding-bottom: 48px; }
    .brand-jar-frame { height: calc(100% - 48px); left: 50%; top: 0; transform: translateX(-50%); }
    .brand-phases {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 5px;
        left: 0;
        right: 0;
        top: auto;
        bottom: 0;
        transform: none;
    }
    .brand-phase { flex-direction: column; align-items: center; gap: 5px; min-height: 44px; padding: 5px 0; text-align: center; }
    .brand-phase-number { font-size: 8px; }
    .brand-phase-name { font-family: var(--font-body); font-size: 10px; font-weight: 500; line-height: 1.4; }
    .brand-phase-name::after { bottom: -4px; }
    .brand-phase:hover { translate: 0 -2px; }
    .brand-motion { left: auto; right: 0; bottom: 60px; width: 32px; height: 32px; }
    .brand-idea p { max-width: 35ch; font-size: 11px; line-height: 1.6; }
    .brand-next { min-height: 32px; margin-top: 4px; font-size: 10px; }
}
@media (max-width: 768px) and (max-height: 650px) {
    #slide-brand .fp-inner { padding: 68px 20px 70px; }
    .brand-manifesto { gap: 6px; }
    .brand-signature { width: 105px; margin-bottom: 7px; }
    .brand-promise { font-size: 28px; max-width: none; }
    .brand-idea p { font-size: 10px; line-height: 1.45; }
    .brand-idea { max-width: 40ch; margin: 0 auto; }
    .brand-next { min-height: 28px; font-size: 9px; }
    .brand-motion { bottom: 55px; width: 28px; height: 28px; }
}
@media (prefers-reduced-motion: reduce) {
    .brand-jar-state, .brand-phase, .brand-phase-name::after, .brand-next i { transition: none; }
    .brand-manifesto.is-entering .brand-masthead, .brand-manifesto.is-entering .brand-idea { animation: none; }
}
