/* Seção 2 · geracoes (prefixo ge-) — noite vinho, falas de pacientes em bilhetes de papel com grifo */
.ge-sec { background: var(--vinho); }
.ge-malha .wf-mancha { will-change: transform; }
.ge-m1 { width: 70vmax; height: 70vmax; left: -22vmax; top: -24vmax; background: radial-gradient(closest-side in oklab, rgb(107 34 54 / .95), rgb(107 34 54 / 0)); animation-duration: 31s; }
.ge-m2 { width: 56vmax; height: 56vmax; right: -18vmax; top: 18%; background: radial-gradient(closest-side in oklab, rgb(209 70 107 / .2), rgb(209 70 107 / 0)); animation-duration: 36s; animation-delay: -12s; }
.ge-m3 { width: 60vmax; height: 60vmax; left: 15%; bottom: -26vmax; background: radial-gradient(closest-side in oklab, rgb(146 100 64 / .35), rgb(146 100 64 / 0)); animation-duration: 28s; animation-delay: -6s; }
.ge-m4 { width: 40vmax; height: 40vmax; left: 45%; top: 30%; background: radial-gradient(closest-side in oklab, rgb(46 13 24 / .6), rgb(46 13 24 / 0)); animation-duration: 25s; animation-delay: -16s; }

/* topo */
.ge-topo { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: 2rem 4rem; align-items: end; margin-bottom: clamp(3.5rem, 6vw, 5.5rem); }
.ge-h2 { font-size: clamp(2.4rem, 1rem + 4.4vw, 5.4rem); max-width: 11em; }
.ge-lead { color: var(--creme-2); }
.ge-vinte { margin: 0; display: grid; gap: .5rem; padding-left: 1.6rem; border-left: 2px solid rgb(233 214 204 / .3); }
.ge-vinte-n { font-family: var(--f-titulo); font-weight: 700; font-size: clamp(6.5rem, 3rem + 9vw, 13rem); line-height: .85; color: var(--pele); letter-spacing: -.02em; }
.ge-vinte-t { font-size: var(--t-corpo); line-height: 1.45; color: var(--creme-2); max-width: 22rem; }
.ge-vinte-t strong { color: var(--creme); font-weight: 600; }
.ge-vinte-t small { display: block; margin-top: .5rem; font-size: var(--t-mini); letter-spacing: .08em; text-transform: uppercase; color: var(--creme-2); opacity: .85; }
.ge-dica { display: none; }

/* mural de bilhetes */
.ge-mural { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1.6rem, 3vw, 2.8rem) clamp(1.2rem, 2.4vw, 2.4rem); align-items: start; }
.ge-item { min-width: 0; }
.ge-item { position: relative; }
.ge-i1 { grid-column: 1 / 9; grid-row: 1 / 3; margin-top: clamp(4rem, 2.5rem + 4vw, 7.4rem); }
.ge-i2 { grid-column: 9 / 13; grid-row: 1; margin-top: clamp(3.4rem, 2rem + 3vw, 5.6rem); }
.ge-i3 { grid-column: 9 / 13; grid-row: 2; }
.ge-i4 { grid-column: 1 / 5; grid-row: 3; margin-top: 3.4rem; }
.ge-i5 { grid-column: 5 / 9; grid-row: 3; margin-top: clamp(4rem, 2.4rem + 3vw, 6.4rem); }
.ge-i6 { grid-column: 9 / 13; grid-row: 3; margin-top: clamp(3.4rem, 2rem + 3vw, 5.6rem); }
.ge-i8 { grid-column: 1 / 7; grid-row: 4; margin-top: 1rem; }
.ge-i7 { grid-column: 7 / 10; grid-row: 4; }
.ge-i9 { grid-column: 10 / 13; grid-row: 4; margin-top: 2rem; }

/* papéis diferentes */
.ge-rosa .wf-bilhete { background: #fbe9df; }
.ge-mel .wf-bilhete { background: #f6e6cf; }
.ge-fita .wf-bilhete::before { content: ""; position: absolute; top: -13px; left: 50%; width: 92px; height: 26px; translate: -50% 0; rotate: -4deg; background: rgb(227 179 154 / .78); box-shadow: 0 1px 2px rgb(0 0 0 / .2); }
.ge-mel.ge-fita .wf-bilhete::before { background: rgb(246 239 230 / .7); rotate: 3deg; left: 30%; }
.ge-pino .wf-bilhete::after { content: ""; position: absolute; top: -8px; left: 50%; width: 20px; height: 20px; border-radius: 50%; background: radial-gradient(circle at 35% 32%, #f7a9bd 0 18%, var(--magenta) 46%, #8f2443 100%); box-shadow: 2px 5px 6px rgb(0 0 0 / .45); }
.ge-i7.ge-pino .wf-bilhete::after { left: 22%; }
.ge-i8 .ge-bilhete p { font-size: clamp(1.25rem, 1.05rem + .6vw, 1.65rem); }

/* o tempo atrás do papel: anos citados na própria fala */
.ge-anos { position: absolute; z-index: 0; left: -.04em; top: -.84em; font-family: var(--f-titulo); font-weight: 700; font-size: clamp(4.2rem, 2.6rem + 3.6vw, 7rem); line-height: 1; letter-spacing: -.03em; color: var(--pele); pointer-events: none; user-select: none; display: flex; align-items: baseline; gap: .12em; }
.ge-anos small { font-size: .26em; letter-spacing: .02em; color: var(--creme-2); font-weight: 600; }
.ge-i1 .ge-anos { font-size: clamp(5rem, 3rem + 5vw, 9rem); top: -.86em; left: auto; right: .3em; }
.ge-i5 .ge-anos { left: auto; right: .3em; }
.ge-i6 .ge-anos { left: 1rem; }
/* com número atrás, a fita vai para a esquerda */
.ge-fita.ge-i1 .wf-bilhete::before { left: 18%; }
.ge-i2 .ge-anos { left: auto; right: .4em; }
.ge-fita.ge-i2 .wf-bilhete::before { left: 22%; }
/* origem das falas */
.ge-origem { display: flex; align-items: center; gap: .7rem; margin: 0 0 .5rem; font-size: var(--t-mini); font-weight: 600; letter-spacing: .04em; color: var(--creme-2); max-width: 44rem; }
.ge-origem::before { content: ""; flex: none; width: 1.8rem; height: 2px; background: var(--magenta); }
.ge-item .wf-bilhete { position: relative; z-index: 1; }

.ge-bilhete { position: relative; margin: 0; padding: 1.4rem 1.5rem 1.2rem; box-shadow: 0 1px 0 rgb(0 0 0 / .15), 0 22px 40px -16px rgb(0 0 0 / .65); }
.ge-bilhete p { margin: 0 0 .8rem; font-family: var(--f-titulo); font-weight: 600; font-size: clamp(1.2rem, 1.02rem + .5vw, 1.5rem); line-height: 1.2; color: var(--vinho); }
.ge-bilhete footer { font-size: var(--t-mini); font-weight: 600; color: var(--vinho-2); }
.ge-bilhete footer span { display: block; font-weight: 500; }
.ge-destaque { padding: 2rem 2.2rem 1.6rem; }
.ge-destaque { padding: clamp(1.8rem, 3vw, 2.8rem) clamp(1.4rem, 3vw, 2.8rem) clamp(1.4rem, 2.4vw, 2.2rem); }
.ge-destaque p { font-size: clamp(1.65rem, 1rem + 2vw, 3rem); line-height: 1.1; margin-bottom: 1.2rem; }
.ge-destaque footer { font-size: 1rem; }
.ge-nobr { white-space: nowrap; }
.ge-grifado .wf-grifo { bottom: -.12em; height: .28em; }
.ge-i1 .wf-bilhete { --r: -1.6deg; }
.ge-i2 .wf-bilhete { --r: 2deg; }
.ge-i3 .wf-bilhete { --r: -1.2deg; }
.ge-i4 .wf-bilhete { --r: 1.4deg; }
.ge-i5 .wf-bilhete { --r: -2.2deg; }
.ge-i6 .wf-bilhete { --r: 2.6deg; }
.ge-i7 .wf-bilhete { --r: -1deg; }
.ge-i8 .wf-bilhete { --r: 1.2deg; }
.ge-i9 .wf-bilhete { --r: -2deg; }


/* gesto: o grifo passa sobre a expressão-chave quando o bilhete chega */
.ge-bilhete mark { background-repeat: no-repeat; background-size: 100% 100%; }
.js .ge-item[data-rev] .ge-bilhete mark { background-size: 0% 100%; transition: background-size .9s cubic-bezier(.6,0,.3,1); transition-delay: calc(var(--rev-d, 0s) + .45s); }
.js .ge-item[data-rev].wf-on .ge-bilhete mark { background-size: 100% 100%; }

/* contagem: uma frase com hierarquia */
.ge-contas { margin-top: clamp(3.5rem, 6vw, 5.5rem); padding-top: 2.2rem; border-top: 1.5px solid rgb(233 214 204 / .25); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.2rem 3rem; align-items: center; }
.ge-contas-frase { margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: .3rem 1.1rem; }
.ge-contas-n { font-family: var(--f-titulo); font-weight: 700; font-size: clamp(3.4rem, 2rem + 4vw, 6rem); line-height: .9; color: var(--pele); letter-spacing: -.02em; }
.ge-contas-t { font-family: var(--f-titulo); font-weight: 600; font-size: clamp(1.25rem, 1rem + .8vw, 1.8rem); line-height: 1.15; color: var(--creme); max-width: 17em; }
.ge-contas-t small { display: block; font-family: var(--f-texto); font-weight: 500; font-size: var(--t-mini); color: var(--creme-2); margin-top: .3rem; }
.ge-contas-lista { grid-column: 1; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.8rem; color: var(--creme-2); font-size: var(--t-corpo); }
.ge-contas-lista b { font-family: var(--f-titulo); font-weight: 700; color: var(--creme); font-size: 1.35em; margin-right: .2rem; }
.ge-contas-btn { grid-column: 2; grid-row: 1 / 3; }
.ge-sec a:focus-visible { outline: 3px solid var(--magenta); outline-offset: 3px; }

/* ---------- tablet ---------- */
@media (max-width: 1000px) {
  .ge-topo { grid-template-columns: minmax(0, 1fr); }
  .ge-vinte { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 1.2rem; }
  .ge-mural { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ge-mural .ge-item { grid-column: auto; grid-row: auto; margin-top: 4.6rem; }
  .ge-mural .ge-i1 { grid-column: 1 / -1; }
  .ge-contas { grid-template-columns: minmax(0, 1fr); }
  .ge-contas-btn { grid-column: 1; grid-row: auto; justify-self: start; }
}
/* ---------- celular ---------- */
@media (max-width: 620px) {
  /* fileira lateral com arraste */
  .ge-mural { display: flex; gap: 1.1rem; align-items: flex-start; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(-1 * var(--esp-lateral)); padding: 4.6rem var(--esp-lateral) 2.4rem; scroll-padding-inline: var(--esp-lateral); }
  .ge-mural::-webkit-scrollbar { display: none; }
  .ge-mural .ge-item { flex: 0 0 78%; margin-top: 0; scroll-snap-align: start; }
  .ge-mural .ge-i1 { flex-basis: 86%; }
  .ge-anos { font-size: 4.2rem; }
  .ge-i1 .ge-anos { font-size: 5rem; }
  .ge-conta-atual { font-family: var(--f-titulo); font-weight: 700; font-size: 1.1rem; color: var(--creme); margin-right: .4rem; font-variant-numeric: tabular-nums; }
  .ge-dica { display: flex; align-items: center; gap: .5rem; margin: -.8rem 0 0; font-size: var(--t-mini); font-weight: 600; color: var(--creme-2); letter-spacing: .04em; }
  .ge-dica svg { width: 18px; height: 18px; animation: ge-cutuca 1.6s ease-in-out infinite; }
  .ge-destaque { padding: 1.7rem 1.3rem 1.3rem; }
  .ge-bilhete { padding: 1.4rem 1.2rem 1.1rem; }
  .ge-vinte { padding-left: 1rem; }
  .ge-vinte-n { font-size: 5.5rem; }
  .ge-contas-lista { display: grid; gap: .4rem; }
  .ge-contas-btn { justify-self: stretch; }
}

@keyframes ge-cutuca { 50% { translate: 5px 0; } }
@media (prefers-reduced-motion: reduce) {
  .ge-dica svg { animation: none; }
  .ge-malha .wf-mancha { animation: none; }
  .js .ge-item[data-rev] .ge-bilhete mark { background-size: 100% 100%; }
}
