:root {
    --b: #070b14;
    --y: #cc9c4d;
    --pg: #e2c89d;
    --mut: #c3c8d3;
    --hl: rgba(255,255,255,.28);
    --fr: rgba(255,255,255,.07);
    --fb: rgba(255,255,255,.16);
    --line: rgba(255,255,255,.2);
    color-scheme: dark;
    box-sizing: border-box;
    padding-top: env(safe-area-inset-top,0px);
    padding-bottom: env(safe-area-inset-bottom,0px);
}
* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(88px + env(safe-area-inset-top,0px));
}
body {
    margin: 0;
    background: var(--b);
    color: #fff;
    font: 400 21px/1.5 'Inter Tight',system-ui,sans-serif;
}
body::before {
    content: "";
    position: fixed;
    inset: 0 0 auto;
    height: env(safe-area-inset-top,0px);
    background: var(--b);
    z-index: 30;
}
h1,h2,h3,p {
    margin: 0;
}
a {
    color: inherit;
}
:focus-visible {
    outline: 3px solid var(--y);
    outline-offset: 3px;
}
.mono {
    font: 500 18px 'JetBrains Mono',monospace;
    letter-spacing: .02em;
    text-transform: uppercase;
}
.big {
    font: 600 clamp(46px,7.4vw,112px)/.95 'Inter Tight',sans-serif;
    letter-spacing: -.05em;
}
.cond {
    font: 700 clamp(56px,8.4vw,120px)/.9 'Barlow Condensed',sans-serif;
    text-transform: uppercase;
}
.wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
}
section {
    position: relative;
    overflow: hidden;
    padding: 110px 0;
}
.cta {
    display: inline-flex;
    gap: 14px;
    align-items: center;
    color: var(--y);
    font: 600 26px 'Inter Tight',sans-serif;
    text-transform: uppercase;
    letter-spacing: -.02em;
    text-decoration: none;
    border-bottom: 2px solid var(--y);
    padding-bottom: 6px;
    background: none;
    border-top: 0;
    border-left: 0;
    border-right: 0;
    cursor: pointer;
}
.pill {
    display: inline-block;
    border: 2px solid #fff;
    border-radius: 999px;
    padding: 18px 48px;
    font: 600 24px 'Inter Tight',sans-serif;
    text-transform: uppercase;
    text-decoration: none;
    background: none;
    color: #fff;
    cursor: pointer;
}
.pill:hover,.cta:hover {
    filter: brightness(1.15);
}
.pill:hover {
    background: #fff;
    color: var(--b);
}
header {
    position: sticky;
    top: env(safe-area-inset-top,0px);
    z-index: 20;
    background: rgba(7,11,20,.92);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 10px 40px;
}
header img {
    height: 60px;
    width: auto;
    display: block;
}
nav {
    margin-left: auto;
    display: flex;
    gap: 28px;
    align-items: center;
}
nav a {
    text-decoration: none;
    font-weight: 500;
    font-size: 19px;
}
nav a:hover {
    color: var(--y);
}
nav .cta {
    font-size: 19px;
    padding-bottom: 4px;
}
#mb {
    display: none;
    margin-left: auto;
    background: none;
    border: 2px solid var(--y);
    color: var(--y);
    font-size: 28px;
    border-radius: 12px;
    width: 52px;
    height: 52px;
    cursor: pointer;
}
.hero {
    padding: 56px 0 80px;
    min-height: min(92vh,860px);
    background: radial-gradient(ellipse at 50% -10%,#1d2747 0,transparent 62%),linear-gradient(#0b1020,var(--b));
}
.hg {
    display: grid;
    grid-template-columns: 1fr minmax(280px,38%) 1fr;
    align-items: start;
}
.hl p {
    margin-top: 36px;
    font-size: 22px;
    color: var(--mut);
    max-width: 24ch;
}
.hr {
    text-align: right;
    grid-column: 3;
}
.hr .cta {
    margin-top: 36px;
}
.hm {
    grid-column: 2;
    grid-row: 1;
    margin: 0 -9%;
    position: relative;
    z-index: 2;
    align-self: center;
}
.hm img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 30px 60px rgba(0,0,0,.6));
}
.ig {
    position: relative;
    left: auto;
    bottom: auto;
    margin: 1px 0 0; /* antes era 28px */
    width: 60px;
    height: 60px;
    border: 2px solid var(--hl);
    border-radius: 50%;
    display: grid;
    place-items: center;
}

.ig svg {
    width: 28px;
    height: 28px;
}
.mq {
    background: var(--b);
    padding: 22px 0;
    overflow: hidden;
    border-block: 1px solid var(--hl);
}
.mq div {
    display: flex;
    gap: 56px;
    white-space: nowrap;
    width: max-content;
    font: 700 44px 'Cinzel','Trajan Pro','Times New Roman',serif;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.mq span {
    /* dourado bordado, igual ao da logo do Eclesiastes */
    background: linear-gradient(180deg,#e9bf62 0%,#d8a848 45%,#a86c18 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 0 rgba(0,0,0,.65));
}
@media(prefers-reduced-motion:no-preference) {
    .mq div {
        animation: mq 30s linear infinite;
    }
    @keyframes mq {
        to {
            transform: translateX(-50%);
        }
    }
}
.ctr {
    text-align: center;
    background: radial-gradient(circle at 18% 35%,rgba(204,156,77,0.26),transparent 26%),radial-gradient(circle at 82% 60%,rgba(142,109,53,0.34),transparent 30%),radial-gradient(circle at 55% 85%,rgba(204,156,77,0.14),transparent 25%),var(--b);
}
.ctr .big {
    text-transform: uppercase;
    letter-spacing: -.045em;
    margin: 28px auto 26px;
    max-width: 12ch;
}
.ctr p.t {
    max-width: 36ch;
    margin: 0 auto 40px;
    color: var(--mut);
    font-size: 22px;
}
.dg {
    width: 68px;
    height: 68px;
    color: var(--y);
    background: radial-gradient(circle,currentColor 2.6px,transparent 3.1px) 0 0/12px 12px;
    -webkit-mask: radial-gradient(circle,#000 58%,transparent 72%);
    mask: radial-gradient(circle,#000 58%,transparent 72%);
    margin: 0 auto;
}
.sh {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-bottom: 36px;
}
.sh h2 {
    font: 600 clamp(32px,4vw,52px)/1 'Inter Tight',sans-serif;
    letter-spacing: -.04em;
    text-transform: uppercase;
    white-space: nowrap;
}
.sh .ln {
    flex: 1;
    border-top: 1px solid var(--hl);
}
.sh span.sw {
    font-size: 22px;
}
.ab {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #151d33;
    border: 0;
    color: var(--y);
    font-size: 28px;
    cursor: pointer;
    flex: none;
}
.sc {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 12px;
}
.card {
    flex: none;
    width: min(560px,86vw);
    height: 480px;
    scroll-snap-align: start;
    border-radius: 36px;
    padding: 32px;
    position: relative;
    background: linear-gradient(150deg,#1d2747,#0a0e1a 70%);
    border: 1px solid var(--fb);
    overflow: hidden;
}
.card .dg {
    margin: 0;
    position: absolute;
    left: 30px;
    top: 30px;
}
.card .cta {
    position: absolute;
    right: 32px;
    top: 34px;
    font-size: 20px;
    border-width: 0 0 2px;
}
.card h3 {
    position: absolute;
    left: 32px;
    bottom: 30px;
    font: 600 clamp(44px,5vw,68px)/.95 'Inter Tight',sans-serif;
    letter-spacing: -.05em;
    max-width: 62%;
}
.st {
    position: absolute;
    right: 32px;
    bottom: 34px;
    text-align: right;
    display: grid;
    gap: 18px;
}
.st b {
    display: block;
    font: 600 34px/1 'Inter Tight',sans-serif;
    color: var(--y);
    letter-spacing: -.03em;
}
.st span {
    font-size: 19px;
    color: var(--mut);
}
.tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}
.tabs button {
    background: none;
    border: 0;
    color: #fff;
    font: 500 22px 'Inter Tight',sans-serif;
    padding: 10px 24px;
    border-radius: 999px;
    cursor: pointer;
}
.tabs button[aria-pressed=true] {
    background: rgba(255,255,255,.16);
}
.fcard {
    background: var(--fr);
    border: 1px solid var(--fb);
    border-radius: 28px;
    padding: 36px;
    backdrop-filter: blur(6px);
    max-width: 880px;
    font-size: 24px;
}
.pv {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    margin-top: 48px;
}
.pv h3 {
    margin: 14px 0 28px;
}
.sz {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 10px 0 26px;
}
.sz button {
    background: none;
    border: 1px solid var(--hl);
    color: #fff;
    padding: 10px 20px;
    cursor: pointer;
    font: 500 20px 'JetBrains Mono',monospace;
}
.sz button[aria-pressed=true] {
    background: var(--y);
    color: var(--b);
    border-color: var(--y);
}
.buy {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-top: 36px;
    flex-wrap: wrap;
}
.circ {
    width: 104px;
    height: 104px;
    border: 2px solid var(--hl);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 40px;
    color: #fff;
    text-decoration: none;
}
.price {
    font: 600 40px 'Inter Tight',sans-serif;
    color: var(--y);
    letter-spacing: -.03em;
}
.cham {
    clip-path: polygon(0 0,calc(100% - 32px) 0,100% 32px,100% 100%,32px 100%,0 calc(100% - 32px));
}
.panel {
    background: linear-gradient(#d8dbe2,#b7bcc8);
    height: 600px;
    display: grid;
    place-items: center;
}
.panel img {
    height: 100%;
    width: auto;
    max-width: 100%;
    mix-blend-mode: multiply;
    object-fit: contain;
}
.thr {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-top: 20px;
}
.th {
    width: 96px;
    height: 130px;
    padding: 0;
    border: 0;
    background: #cdd1da;
    cursor: pointer;
    display: grid;
    place-items: center;
    opacity: .6;
}
.th[aria-pressed=true] {
    opacity: 1;
    outline: 3px solid var(--y);
    outline-offset: 2px;
}
.th img {
    height: 100%;
    width: auto;
    mix-blend-mode: multiply;
}
.thr .l {
    flex: 1;
    border-top: 1px solid var(--hl);
}
.bar {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 48px;
    background: linear-gradient(90deg,rgba(204,156,77,0.14),rgba(204,156,77,0.04),rgba(204,156,77,0.14));
    padding: 18px 28px;
}
.bar button {
    background: none;
    border: 0;
    color: var(--pg);
    font: 500 24px 'Inter Tight',sans-serif;
    cursor: pointer;
}
.bar button:hover {
    color: var(--y);
}
form {
    display: grid;
    gap: 26px;
    max-width: 640px;
    margin-top: 44px;
}
label {
    display: grid;
    gap: 6px;
    font-size: 19px;
    color: var(--mut);
}
input,select,textarea {
    background: none;
    color: #fff;
    border: 0;
    border-bottom: 1px solid var(--hl);
    padding: 12px 0;
    font: 500 24px 'Inter Tight',sans-serif;
    border-radius: 0;
}
select option {
    color: #111;
}
input:focus,select:focus,textarea:focus {
    outline: 0;
    border-bottom: 2px solid var(--y);
}
.err {
    color: #ff9d8f;
    font-size: 18px;
}
#ok {
    color: var(--y);
    font-size: 22px;
    font-weight: 500;
}
.faq {
    margin-top: 72px;
    max-width: 880px;
}
details {
    border-top: 1px solid var(--hl);
    padding: 22px 0;
}
details:last-child {
    border-bottom: 1px solid var(--hl);
}
summary {
    cursor: pointer;
    font: 600 26px 'Inter Tight',sans-serif;
    letter-spacing: -.02em;
}
details p {
    margin-top: 12px;
    color: var(--mut);
    font-size: 21px;
}
.jk {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 0;
    background: var(--fr);
    border: 1px solid var(--fb);
    backdrop-filter: blur(6px);
}
.jk .lf {
    padding: 64px 56px;
    border-right: 1px solid var(--fb);
    position: relative;
}
.jk .lf::before {
    content: "";
    position: absolute;
    left: 28px;
    top: 0;
    bottom: 0;
    border-left: 1px solid var(--hl);
}
.jk .lf>* {
    margin-left: 36px;
}
.jk .rt {
    padding: 48px 40px;
    display: grid;
    gap: 26px;
    align-content: start;
}
.jk .rt .mono {
    color: var(--pg);
    font-weight: 500;
    display: block;
    margin-bottom: 4px;
}
.jk .rt span.v {
    font-size: 22px;
}
footer {
    padding: 36px 40px;
    text-align: center;
    color: var(--mut);
    font-size: 19px;
    border-top: 1px solid var(--hl);
}
@media(max-width:1100px) {
    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--b);
        flex-direction: column;
        align-items: flex-start;
        padding: 24px 40px;
        gap: 20px;
        border-bottom: 1px solid var(--hl);
    }
    nav.open {
        display: flex;
    }
    #mb {
        display: block;
    }
}
@media(max-width:900px) {
    .wrap {
        padding: 0 24px;
    }
    header {
        padding: 10px 24px;
    }
    section {
        padding: 80px 0;
    }
    .hg {
        grid-template-columns: 1fr;
    }
    .hm {
        grid-column: 1;
        grid-row: 1;
        margin: 0 auto 24px;
        width: min(86vw,420px);
    }
    .hr {
        grid-column: 1;
        text-align: left;
        margin-top: 28px;
    }
    .hl p {
        max-width: none;
    }
    .ig {
        display: grid;
        margin: 24px 24px 0;
    }
    .pv,.jk {
        grid-template-columns: 1fr;
    }
    .jk .lf {
        padding: 48px 28px;
        border-right: 0;
        border-bottom: 1px solid var(--fb);
    }
    .panel {
        height: 460px;
    }
    .sh .sw {
        display: none;
    }
    .sh h2 {
        white-space: normal;
    }
    .card {
        height: 520px;
    }
    .card h3 {
        max-width: 100%;
        bottom: 150px;
    }
}

/* Seção de contato */
#contato .jk {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    border: 1px solid var(--line);
}

#contato .lf {
    padding: 48px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#contato .lf h2 {
    margin: 0 0 20px;
    font-size: clamp(56px, 8vw, 100px);
    line-height: 0.95;
}

#contato .contact-desc {
    max-width: 100%;
    margin: 0;
    color: var(--mut);
    font-size: 20px;
    line-height: 1.5;
    text-align: left;
}

#contato .rt {
    padding: 48px 6%;
    border-left: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
}

#contato .rt > div {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#contato .rt .mono {
    color: var(--pg);
    font-size: 14px;
    letter-spacing: 1.5px;
}

#contato .rt .v {
    font-size: 19px;
    overflow-wrap: anywhere;
}

#contato .rt a {
    text-decoration: none;
    transition: color 0.2s ease;
}

#contato .rt a:hover {
    color: var(--pg);
}

@media (max-width: 700px) {
    #contato .jk {
        grid-template-columns: 1fr;
    }

    #contato .lf,
    #contato .rt {
        padding: 32px 24px;
    }

    #contato .rt {
        border-left: none;
        border-top: 1px solid var(--line);
    }
}
/* Logos no topo da página */
.logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px clamp(32px,7vw,110px);
    padding: 28px 40px;
    background: var(--b);
    border-bottom: 1px solid var(--hl);
}
.logos img {
    height: 128px;
    width: auto;
    display: block;
}
@media(max-width:900px) {
    .logos {
        padding: 22px 24px;
        gap: 18px 28px;
    }
    .logos img {
        height: 88px;
    }
}

/* Cartões com foto (professores e atletas) */
.sc.gr { display: grid; grid-template-columns: repeat(auto-fill,minmax(min(100%,400px),1fr)); overflow: visible; gap: 24px; }
.gr .card { width: auto; height: 400px; }
.card.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.card.photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top,rgba(7,11,20,.94) 0,rgba(7,11,20,.6) 38%,transparent 68%); }
.card.photo h3, .card.photo .st { z-index: 2; }
.card.photo h3 { font-size: clamp(36px,3.6vw,50px); max-width: 60%; }
.card.photo .st b { font-size: 26px; }
@media(max-width:900px) {
    .gr .card { height: 420px; }
    .card.photo h3 { bottom: 118px; max-width: 100%; }
    .card.photo .st { left: 32px; right: auto; text-align: left; grid-auto-flow: column; gap: 32px; }
}


/* História dos professores e atletas */
.card.photo { cursor: pointer; isolation: isolate; }
.card.photo .story-panel {
    position: absolute;
    z-index: 4;
    top: 18px;
    right: 18px;
    bottom: 18px;
    width: min(58%, 310px);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    background: rgba(7,11,20,.96);
    border: 1px solid rgba(204,156,77,.75);
    opacity: 0;
    transform: translateX(12px);
    transition: opacity .25s ease, transform .25s ease;
    pointer-events: none;
}
.card.photo .story-panel .mono { color: var(--y); font-size: 13px; }
.card.photo .story-panel p { font-size: 16px; line-height: 1.5; color: var(--mut); }
.card.photo:hover .story-panel,
.card.photo:focus .story-panel,
.card.photo:focus-within .story-panel {
    opacity: 1;
    transform: translateX(0);
}
.card.photo:hover h3,
.card.photo:focus h3 { z-index: 5; max-width: 42%; }
@media (prefers-reduced-motion: reduce) {
    .card.photo .story-panel { transition: none; }
}

/* Carrinho e finalização demonstrativa */
.product-price { margin-top: 26px; }
.product-price small { display: block; color: var(--mut); font-size: 14px; margin-top: 5px; }
.quantity-label { color: var(--mut); font-size: 17px; }
.quantity-control { display: inline-flex; align-items: center; border: 1px solid var(--hl); }
.quantity-control button { width: 42px; height: 42px; background: none; color: white; border: 0; font-size: 25px; cursor: pointer; }
.quantity-control output { min-width: 36px; text-align: center; font-size: 18px; }
.buy { gap: 14px; }
.buy .pill, .checkout-card .pill, #checkoutForm .pill { font-size: 17px; padding: 14px 22px; }
.add-cart { border-color: var(--y); color: var(--y); }
.add-cart:hover { background: var(--y); color: var(--b); }
#carrinho { background: linear-gradient(180deg,rgba(255,255,255,.025),transparent); }
.cart-layout { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(280px,.8fr); gap: 28px; align-items: start; }
.cart-items, .checkout-card { border: 1px solid var(--fb); background: var(--fr); padding: 26px; }
.cart-empty { color: var(--mut); }
.cart-item { display: grid; grid-template-columns: 1fr auto; gap: 10px 18px; padding: 18px 0; border-bottom: 1px solid var(--hl); }
.cart-item:first-child { padding-top: 0; }
.cart-item h3 { font-size: 23px; }
.cart-item p { font-size: 16px; color: var(--mut); margin-top: 5px; }
.cart-item strong { color: var(--y); white-space: nowrap; }
.remove-item { grid-column: 1 / -1; justify-self: start; border: 0; background: none; color: #ffb3a9; text-decoration: underline; cursor: pointer; padding: 0; font: inherit; font-size: 15px; }
.checkout-card { display: grid; gap: 20px; }
.summary-line { display: flex; justify-content: space-between; gap: 12px; color: var(--mut); font-size: 17px; }
.summary-line strong { color: #fff; text-align: right; }
.total-line { border-top: 1px solid var(--hl); padding-top: 18px; font-size: 21px; color: #fff; }
.total-line strong { color: var(--y); }
.checkout-card button:disabled { opacity: .45; cursor: not-allowed; }
.checkout-form-wrap { margin-top: 60px; padding: 30px; border: 1px solid var(--fb); background: var(--fr); }
.checkout-note { color: var(--mut); font-size: 17px; max-width: 75ch; }
#checkoutForm { grid-template-columns: repeat(2,minmax(0,1fr)); max-width: none; gap: 24px; }
#checkoutForm label { font-size: 16px; }
#checkoutForm input, #checkoutForm select { font-size: 19px; min-width: 0; width: 100%; }
#checkoutForm button { justify-self: start; }
.order-result { white-space: pre-line; margin-top: 28px; padding: 24px; border: 1px solid var(--y); color: var(--pg); line-height: 1.7; overflow-wrap: anywhere; }
@media(max-width:900px) {
    .cart-layout { grid-template-columns: 1fr; }
    #checkoutForm { grid-template-columns: 1fr; }
    .checkout-form-wrap { padding: 22px; }
}

/* ==========================================================
   MOBILE / TOUCH: o painel de trajetória não cobre mais a foto
   nem o nome. Ele se expande ABAIXO da foto (o card cresce).
   Abre/fecha por toque (classe .open, controlada no script.js).
   ========================================================== */
@media (max-width: 900px), (hover: none) {
    .gr .card.photo {
        height: auto;
        padding: 0;
        display: grid;
        grid-template-columns: 100%;
        grid-template-rows: 420px auto;
    }
    /* foto, degradê, nome e indicador ficam empilhados na mesma área (linha 1) */
    .card.photo img,
    .card.photo::after,
    .card.photo h3,
    .card.photo .st,
    .card.photo::before {
        position: static;
        grid-area: 1 / 1;
    }
    .card.photo img { width: 100%; height: 100%; }
    .card.photo::after { width: 100%; height: 100%; }
    .card.photo h3,
    .card.photo:hover h3,
    .card.photo:focus h3 {
        align-self: end;
        max-width: none;
        margin: 0 32px 118px;
        z-index: 2;
    }
    .card.photo .st {
        align-self: end;
        justify-self: start;
        margin: 0 32px 34px;
    }
    /* indicador "+ Trajetória" no canto da foto */
    .card.photo::before {
        content: "+ Trajetória";
        align-self: start;
        justify-self: end;
        margin: 16px 16px 0;
        padding: 8px 14px;
        z-index: 3;
        font: 500 12px/1 'JetBrains Mono', monospace;
        letter-spacing: .08em;
        text-transform: uppercase;
        color: var(--y);
        background: rgba(7,11,20,.85);
        border: 1px solid rgba(204,156,77,.75);
    }
    .card.photo.open::before { content: "− Fechar"; }

    /* painel vira um bloco em fluxo normal, abaixo da foto */
    .card.photo .story-panel,
    .card.photo:hover .story-panel,
    .card.photo:focus .story-panel,
    .card.photo:focus-within .story-panel {
        position: static;
        grid-area: 2 / 1;
        width: auto;
        min-height: 0;
        max-height: 0;
        padding: 0 24px;
        overflow: hidden;
        opacity: 0;
        transform: none;
        border: 0;
        border-top: 0 solid rgba(204,156,77,.75);
        background: rgba(7,11,20,.96);
        pointer-events: none;
        transition: max-height .35s ease, padding .35s ease, opacity .25s ease;
    }
    .card.photo.open .story-panel {
        max-height: 420px;
        padding: 24px;
        opacity: 1;
        border-top-width: 1px;
        pointer-events: auto;
    }
}
@media (prefers-reduced-motion: reduce) {
    .card.photo .story-panel { transition: none !important; }
}

/* ==========================================================
   Trajetória longa (atletas): o painel cobre o cartão inteiro
   e rola por dentro, com leitura confortável.
   ========================================================== */
.card.photo .story-panel.long {
    top: 10px; right: 10px; bottom: 10px; left: 10px;
    width: auto;
    padding: 22px 8px 18px 22px;
    justify-content: flex-start;
    gap: 12px;
    overflow: hidden;
}
.story-panel.long .story-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding-right: 14px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scrollbar-width: thin;
    scrollbar-color: var(--y) rgba(255,255,255,.08);
    overscroll-behavior: contain;
}
.story-panel.long .story-body::-webkit-scrollbar { width: 6px; }
.story-panel.long .story-body::-webkit-scrollbar-track { background: rgba(255,255,255,.08); }
.story-panel.long .story-body::-webkit-scrollbar-thumb { background: var(--y); border-radius: 3px; }
.card.photo .story-panel.long p { font-size: 14.5px; line-height: 1.55; }
.story-panel.long em { color: var(--pg); font-style: italic; }
.card.photo .story-panel.long .story-role {
    color: var(--pg);
    font-weight: 600;
    font-size: 15px;
    line-height: 1.35;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(204,156,77,.45);
}
.story-role small { font-size: 13px; font-weight: 400; color: var(--mut); }
.card.photo .story-panel.long .story-sub {
    color: var(--y);
    font: 500 13px/1.2 'JetBrains Mono', monospace;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-top: 4px;
}
.story-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.story-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 10px;
    font-size: 14px;
    line-height: 1.35;
    color: #fff;
    background: rgba(204,156,77,.09);
    border-left: 2px solid var(--y);
}
.story-list li span { flex: 0 0 2.1em; text-align: center; }
.card.photo .story-panel.long .story-end {
    color: var(--pg);
    font-weight: 600;
    padding-top: 12px;
    border-top: 1px solid rgba(204,156,77,.45);
}
/* nome e dados somem enquanto o painel cobre a foto */
.card.photo.has-long:hover h3,
.card.photo.has-long:focus h3,
.card.photo.has-long:focus-within h3,
.card.photo.has-long:hover .st,
.card.photo.has-long:focus .st { opacity: 0; transition: opacity .15s; }
/* painel visível precisa receber o mouse para rolar */
.card.photo.has-long:hover .story-panel.long,
.card.photo.has-long:focus .story-panel.long,
.card.photo.has-long:focus-within .story-panel.long { pointer-events: auto; }

@media (max-width: 900px), (hover: none) {
    .card.photo .story-panel.long { padding: 0 24px; overflow: hidden; }
    .card.photo.open .story-panel.long { max-height: 78vh; padding: 24px 12px 20px 24px; }
    .card.photo.has-long:hover h3,
    .card.photo.has-long:focus h3,
    .card.photo.has-long:hover .st,
    .card.photo.has-long:focus .st { opacity: 1; }
    .card.photo .story-panel.long .story-body { max-height: calc(78vh - 90px); }
    .card.photo .story-panel.long p { font-size: 15px; }
}

/* itens com detalhe (categoria etc.) e subgrupos */
.story-list li div { min-width: 0; }
.story-list li small { display: block; margin-top: 3px; font-size: 12.5px; color: var(--mut); }
.story-list li b { color: var(--pg); font-weight: 600; }
.card.photo .story-panel.long .story-group { color: var(--pg); font-weight: 600; font-size: 14px; margin-top: 2px; }
