/*
   MBNF Academy + NF Cast (#academy) 
*/

#academy.academy-hub {
    position: relative;
    isolation: isolate;
    margin: 0;
    padding: 100px max(6vw, 24px) 88px;
    overflow: hidden;
    border-bottom: 1px solid #5416281c;
    background: #f8f0e8;
    color: var(--wine);
    font-family: var(--font-primary);
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: normal;
    scroll-margin-top: 80px;
}
#academy, #academy * { box-sizing: border-box; }
#academy :where(h2, h3, h4, p) { margin: 0; color: inherit; text-transform: none; }
#academy :where(h2, h3) em {
    font-family: var(--font-accent);
    font-style: italic;
    font-weight: 600;
}
/* Bodoni sem a compensacao de tracking do Inter (mesmo valor do titulo no preview). */
#academy h2 em { letter-spacing: -.035em; }
#academy h3 em { letter-spacing: -.03em; }

/* Faixa vinho (posicionada pelo JS) e quarto de circulo decorativo no rodape */
#academy::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: var(--band-top, 300px);
    height: var(--band-height, 650px);
    z-index: 0;
    background: var(--wine);
    pointer-events: none;
}
#academy::after {
    content: '';
    position: absolute;
    right: -20px;
    bottom: 18px;
    z-index: 0;
    width: clamp(85px, 10vw, 140px);
    aspect-ratio: 1;
    border-radius: 100% 0 0 0;
    background: #ead1ce;
    opacity: .65;
    pointer-events: none;
}

#academy .eyebrow {
    margin: 0 0 27px;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: calc(.16em + var(--track-caps));
    color: #8f5460;
}

/* Academy */
#academy .academy-main {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: .85fr 1.35fr;
    align-items: center;
    gap: 34px;
    max-width: 1440px;
    margin: auto;
}
#academy .academy-copy { position: relative; z-index: 1; }
#academy .academy-brand-head { padding-bottom: 28px; color: var(--wine); }
#academy .academy-logo {
    display: block;
    width: clamp(230px, 25vw, 370px);
    max-width: none;
    height: auto;
    margin: 0 0 18px;
}
#academy .academy-new-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 28px;
}
#academy .academy-new {
    display: inline-block;
    margin: 0;
    padding: 7px 10px;
    border: 1px solid #bd78826b;
    border-radius: 30px;
    font-size: 9px;
    line-height: 1.5;
    letter-spacing: calc(.13em + var(--track-caps));
}
#academy .academy-new-plain {
    display: inline-block;
    align-self: center;
    font-size: 10px;
    line-height: 1.5;
    letter-spacing: calc(.13em + var(--track-caps));
}
#academy .academy-copy-body { color: #f3e3d7; }
#academy .academy-copy-body h2 {
    margin: 0 0 18px;
    font-size: clamp(28px, 3vw, 43px);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: calc(-.035em + var(--track-300));
}
#academy .academy-copy-body h2 em { color: #edc1cc; }
#academy .academy-description {
    max-width: 330px;
    margin: 0 0 25px;
    font-size: 17px;
    font-weight: 300;
    line-height: 1.45;
    letter-spacing: var(--track-300);
}

/* Botao pilula (vinho; claro sobre a faixa) */
#academy .academy-pill {
    display: inline-flex;
    align-items: center;
    gap: 27px;
    margin: 0;
    padding: 12px 18px;
    border: 0;
    border-radius: 30px;
    background: var(--wine);
    box-shadow: none;
    color: #f8f0e8;
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: var(--track-400);
    text-transform: none;
    text-decoration: none;
    cursor: pointer;
    transition: background .25s, transform .25s;
}
#academy .academy-pill:hover { background: #803047; transform: translateY(-2px); }
#academy .academy-pill:focus-visible { outline: 2px solid #c37787; outline-offset: 4px; }
#academy .academy-pill > span { font-size: 18px; line-height: 1; }
#academy .academy-copy-body .academy-pill { background: #f3e3d7; color: var(--wine); }
#academy .academy-copy-body .academy-pill:hover { background: #ead7c8; }
#academy .academy-copy-body .academy-pill:focus-visible { outline-color: #f3e3d7; }

/* Notebook: a tela e uma copia recortada da propria imagem que "rola" quando visivel */
#academy .academy-visual { position: relative; min-width: 0; padding: 35px 0 0; }
#academy .academy-shape {
    position: absolute;
    z-index: 0;
    right: -14%;
    top: -6%;
    width: 69%;
    aspect-ratio: 1;
    border-radius: 0 0 0 100%;
    background: #eed5cf;
}
#academy .academy-laptop {
    position: relative;
    z-index: 1;
    width: 115%;
    margin-left: -5%;
    filter: drop-shadow(0 20px 18px #54202b14);
}
#academy .academy-laptop > img { display: block; width: 100%; max-width: none; height: auto; }
#academy .academy-screen {
    container-type: inline-size;
    position: absolute;
    left: 11.962%;
    top: 4.251%;
    width: 76.077%;
    height: 86.079%;
    overflow: hidden;
    border-radius: 1.2% / 2%;
    background: #f6e9df;
    pointer-events: none;
}
#academy .academy-screen-track { transform: translateY(0); }
#academy .academy-laptop.is-browsing .academy-screen-track {
    animation: academy-browse 14s cubic-bezier(.45, 0, .25, 1) infinite;
    will-change: transform;
}
#academy .academy-screen-track > svg { display: block; width: 100%; height: auto; }
#academy .academy-demo-more {
    padding: 2.5% 3.5% 5%;
    background: #f6e9df;
    color: var(--wine);
    font-family: var(--font-primary);
}
#academy .academy-demo-more .academy-demo-title {
    margin: 1% 0 2.5%;
    font-family: var(--font-accent);
    font-size: 3.1cqw;
    font-weight: 500;
    line-height: 1.2;
}
#academy .academy-demo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2%;
    margin-bottom: 5%;
}
#academy .academy-demo-grid article {
    overflow: hidden;
    border: 1px solid #54162818;
    border-radius: 5px;
    background: #fbf2eb;
}
#academy .academy-demo-grid svg { display: block; width: 100%; height: auto; }
#academy .academy-demo-grid p {
    min-height: 2.4em;
    margin: 5%;
    font-size: 2.1cqw;
    line-height: 1.15;
    letter-spacing: var(--track-400);
}
#academy .academy-demo-grid span {
    display: block;
    margin: 5%;
    font-size: 1.4cqw;
    letter-spacing: var(--track-400);
    opacity: .7;
}
@keyframes academy-browse {
    0%, 28% { transform: translateY(0); animation-timing-function: cubic-bezier(.45, 0, .25, 1); }
    60%, 73% { transform: translateY(calc(-1 * var(--academy-travel, 50px))); animation-timing-function: cubic-bezier(.15, .8, .3, 1); }
    77%, 100% { transform: translateY(0); }
}

/* NF Cast */
#academy .nfcast-row {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    align-items: center;
    gap: 7%;
    max-width: 1440px;
    margin: 65px auto 0;
    padding-top: 50px;
    border-top: 1px solid #f3e3d733;
}
#academy .nfcast-photo { overflow: hidden; aspect-ratio: 1.5; border-radius: 0 0 0 95px; }
#academy .nfcast-photo img {
    display: block;
    width: 100%;
    max-width: none;
    height: 100%;
    object-fit: cover;
    transition: transform .9s;
}
#academy .nfcast-photo:hover img { transform: scale(1.035); }
#academy .nfcast-content {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 24px;
    max-width: 500px;
}
#academy .nfcast-copy-head { align-self: center; }
#academy .nfcast-copy-head > .eyebrow { margin-bottom: 15px; color: #e5bdc8; }
#academy .nfcast-logo { display: block; width: 130px; max-width: none; height: auto; margin-bottom: 17px; }
#academy .nfcast-copy-body { color: var(--wine); }
#academy .nfcast-copy-body .academy-new-plain { display: block; margin-top: 12px; }
#academy .nfcast-copy-body h3 {
    margin: 0 0 18px;
    font-size: clamp(25px, 2.6vw, 35px);
    font-weight: 300;
    line-height: 1.12;
    letter-spacing: calc(-.03em + var(--track-300));
}
#academy .nfcast-copy-body h3 em { color: #df8992; }
#academy .nfcast-copy-body > p {
    max-width: 420px;
    margin: 0 0 22px;
    font-size: 15px;
    font-weight: 300;
    line-height: 1.5;
    letter-spacing: var(--track-300);
}

@media (prefers-reduced-motion: reduce) {
    #academy .academy-pill, #academy .nfcast-photo img { transition: none; }
    #academy .academy-laptop.is-browsing .academy-screen-track { animation: none; transform: translateY(0); }
}

@media (min-width: 1600px) {
    #academy .academy-main { gap: 70px; }
    #academy .academy-laptop { width: 108%; }
}

@media (max-width: 800px) {
    #academy.academy-hub { padding: 65px 24px 60px; }
    #academy::after { width: 88px; right: -18px; bottom: 12px; opacity: .5; }
    #academy .eyebrow { font-size: 9px; }

    #academy .academy-main { grid-template-columns: 1fr; gap: 20px; }
    #academy .academy-logo { width: 265px; }
    #academy .academy-copy-body h2 { font-size: 35px; }
    #academy .academy-description { max-width: 380px; }
    #academy .academy-visual { padding-top: 10px; }
    #academy .academy-shape { right: -15%; top: 0; width: 65%; }
    #academy .academy-laptop { width: 109%; margin-left: -4%; }

    /* NF Cast empilhado: cabecalho, foto, texto */
    #academy .nfcast-row { grid-template-columns: 1fr; gap: 28px; margin-top: 40px; padding-top: 32px; }
    #academy .nfcast-photo { grid-row: 2; border-radius: 0 0 0 65px; }
    #academy .nfcast-content { display: contents; }
    #academy .nfcast-copy-head { grid-row: 1; }
    #academy .nfcast-copy-body { grid-row: 3; }
    #academy .nfcast-logo { width: 120px; }
    #academy .nfcast-copy-body h3 { font-size: 30px; }
}

@media (max-width: 700px) {
    #academy.academy-hub { padding-top: 36px; }
    #academy .academy-logo { margin-bottom: 15px; }
}
