.history-journey{--history-red:var(--vermelho-capa,#d6000c);--history-paper:var(--cinza-superficie,#f1f1f1);position:relative;z-index:2;background:var(--history-red);color:#fff;isolation:isolate;scroll-margin-top:0}
.history-page .archive-hero{z-index:0}
html.lenis{scroll-behavior:auto!important}
html.has-history-journey{scroll-padding-top:100px}
.history-page main>.comparison-section,.history-page main>.editorial-contact{position:relative;z-index:3;background:#fff}
.history-page .comparison-section{padding-block:64px}
.history-page .comparison-section .comparison{margin-top:30px}
.history-page .editorial-contact{padding-block:64px!important}
.history-tools .portal-motion-control{position:static;inset:auto;width:auto;height:34px;border-radius:30px;padding:8px 12px;font-size:10px;background:#ffffff14;box-shadow:none;backdrop-filter:none}
.history-shell{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto;height:calc(100svh - var(--history-header-height,100px));min-height:640px;overflow:hidden;background:var(--history-red)}
.history-viewport,.history-topbar,.history-bottom{min-width:0}
@media(min-width:1024px) and (min-height:700px) and (max-height:849px){
 .history-journey .history-shell{min-height:0}
 .history-journey .history-topbar{padding-block:12px}
 .history-journey .history-scene{padding-block:14px;gap:5%}
 .history-journey .history-chapter-number{margin-bottom:12px}
 .history-journey .history-era{margin-bottom:10px}
 .portal-page .history-journey .history-scene h2{font-size:32px;margin-bottom:16px}
 .history-journey .history-scene-copy>p{font-size:15px;line-height:1.4;margin-bottom:12px}
 .history-journey .history-detail{margin-top:14px;font-size:10px}
 .history-journey .history-scene-link{margin-top:12px;padding:10px 16px}
 .history-journey .history-scroll-hint{margin-bottom:10px}
 .history-journey .history-bottom{padding-bottom:12px}
 .history-journey .history-origin-art{gap:22px;padding:32px}
 .history-journey .history-origin-year{font-size:90px}
}
.history-topbar{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:20px max(48px,calc((100% - 1280px)/2));position:relative;z-index:4;background:var(--history-red)}
.history-topbar .eyebrow{color:#edb3bf;font-size:10px;margin:0 0 7px}.history-topbar p{font-size:24px;font-weight:700;line-height:1;margin:0;letter-spacing:-.035em}.history-topbar p>span{color:#e5a3b2;padding-inline:9px}
.history-tools{display:flex;align-items:center;gap:10px}.history-position{font-size:12px;font-variant-numeric:tabular-nums;letter-spacing:.04em;color:#f2c7d0;min-width:60px}
.history-tools button{border:0;border-radius:50%;width:42px;height:42px;display:grid;place-items:center;font:500 22px var(--display);color:#fff;background:#ffffff14;cursor:pointer;transition:background .3s,transform .3s}.history-tools button:hover{background:#ffffff28;transform:translateY(-2px)}.history-tools button:disabled{opacity:.3;cursor:default;transform:none}
.history-tools .history-view-toggle{width:auto;border-radius:30px;font-size:11px;font-weight:600;padding:10px 16px;margin-left:8px}.history-tools [hidden]{display:none}
.history-viewport{overflow-x:auto;overflow-y:hidden;scroll-snap-type:x proximity;overscroll-behavior-x:contain;scrollbar-width:none;min-height:0;position:relative;outline-offset:-6px}
.history-track{display:flex;width:100%;height:100%;align-items:stretch}
.history-scene{position:relative;isolation:isolate;flex:0 0 100%;width:100%;min-width:100%;height:100%;display:grid;grid-template-columns:1fr 1.05fr;gap:6%;padding:28px max(48px,calc((100% - 1280px)/2)) 26px;align-items:center;overflow:hidden;scroll-snap-align:start;background:var(--history-red)}
.history-scene:nth-child(even){background:#b0000a}.history-scene:nth-child(3n){background:#bf000b}
.history-ambient-year{position:absolute;top:0;left:2%;font-size:clamp(110px,15vw,260px);font-weight:800;letter-spacing:-.075em;line-height:1;white-space:nowrap;opacity:.055;z-index:-1;pointer-events:none}
.history-scene-copy{position:relative;z-index:2;max-width:560px;min-width:0}
.history-chapter-number{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.12em;font-weight:600;color:#e6a2b1;margin-bottom:24px}
.history-era{display:block;font-size:12px;color:#f1bdc8;font-weight:600;letter-spacing:.035em;margin-bottom:14px}
.portal-page .history-scene h2{color:#fff;font-size:clamp(35px,3.5vw,59px);line-height:1.025;letter-spacing:-.045em;margin:0 0 26px;text-wrap:balance}
.history-scene-copy>p{font-size:clamp(16px,1.35vw,20px);line-height:1.5;color:#fff;margin:0 0 18px;max-width:540px}
.history-detail{display:block;font-size:11px;line-height:1.5;color:#e6b3c0;margin-top:24px;max-width:470px}
.history-scene-link{display:inline-flex;align-items:center;justify-content:space-between;gap:30px;padding:14px 18px;margin-top:24px;border-radius:14px;background:#fff;color:#b8000a;text-decoration:none;font-size:13px;font-weight:700;min-width:230px}.history-scene-link>span{font-size:20px;transition:transform .3s}.history-scene-link:hover>span{transform:translate(2px,-2px)}
.history-scene-visual{height:100%;position:relative;min-height:0;display:flex;align-items:center;min-width:0;padding-block:20px 25px}
.history-scene-photo{position:relative;width:100%;height:100%;max-height:560px;margin:0;border-radius:24px;isolation:isolate}
.history-scene-photo:has(+.history-secondary-photo){width:88%;height:85%;align-self:flex-start}
.history-scene-photo .image-open{height:100%;width:100%;border-radius:24px;background:var(--cinza-superficie,#f1f1f1);box-shadow:0 24px 60px -38px #17020d99}
.history-scene-photo .archive-picture{height:100%;background:var(--cinza-superficie,#f1f1f1)!important;background-image:none!important;border-radius:24px}
.history-scene-photo .archive-picture img{width:100%;height:100%;object-fit:cover;object-position:var(--history-photo-focus,50% 35%)!important;border-radius:0}
.history-page .comparison .archive-picture img{width:100%;height:100%;object-fit:cover;object-position:50% 25%!important}
.history-scene-photo figcaption{position:absolute;bottom:-20px;left:3px;color:#e7b7c3;font-size:10px;letter-spacing:.035em;line-height:1.3}
.history-secondary-photo{position:absolute;right:0;bottom:22px;width:44%;height:43%;transform:rotate(-3deg);z-index:2}.history-secondary-photo .image-open{box-shadow:0 10px 35px #27000f60}.history-secondary-photo figcaption{display:none}
.history-origin-art{position:relative;isolation:isolate;width:100%;height:100%;max-height:550px;border-radius:28px;background:#cf1a22;overflow:hidden;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:36px;padding:48px}
.history-origin-art:before{content:'';position:absolute;inset:0;z-index:-1;background:url('assets/epsa-block-pattern.svg') center/280px;opacity:.32}
.history-origin-year{font-size:clamp(80px,9vw,145px);font-weight:800;letter-spacing:-.08em;line-height:.95;color:#fff}.history-origin-art>img{width:min(280px,100%);height:auto}.history-origin-art>p{font-size:21px;line-height:1.4;margin:0;color:#fff;font-weight:600}.history-origin-art>p>span{font-size:12px;color:#edb9c3;font-weight:400}
.history-bottom{padding:6px max(48px,calc((100% - 1280px)/2)) 20px;position:relative;background:var(--history-red);z-index:4}
.history-scroll-hint{display:flex;justify-content:space-between;align-items:center;font-size:10px;letter-spacing:.06em;text-transform:uppercase;color:#e6a6b6;margin:0 0 22px}.history-scroll-hint>span[aria-hidden]{font-size:22px;line-height:1}.history-hint-mobile{display:none}
.history-map{display:flex;position:relative;gap:12px;justify-content:space-between;overflow-x:auto;scrollbar-width:none;padding-top:12px;scroll-padding:20px}
.history-map-line{position:absolute;top:16px;left:0;right:0;height:2px;background:#ffffff1c;pointer-events:none}.history-map-line i{display:block;height:100%;width:100%;transform:scaleX(var(--history-progress,0));transform-origin:left;background:#f5c2ce}
.history-map>a{position:relative;display:flex;flex-direction:column;gap:8px;flex:1;min-width:75px;max-width:130px;color:#e4a8b7;text-decoration:none;line-height:1.3;font-size:8px;padding-bottom:2px}
.history-map-dot{width:10px;height:10px;border-radius:50%;background:#d45a61;margin-bottom:4px;transition:background .3s,transform .3s;position:relative;z-index:1}
.history-map strong{font-size:11px;color:#f4c5d0;font-weight:700;letter-spacing:-.02em}.history-map a[aria-current=step]{color:#fff}.history-map a[aria-current=step] strong{color:#fff}.history-map a[aria-current=step] .history-map-dot{background:#fff;transform:scale(1.35);box-shadow:0 0 0 5px #ffffff13}.history-map a:hover .history-map-dot{background:white;transform:scale(1.25)}
.history-is-pinned .history-viewport{overflow:hidden;scroll-snap-type:none}.history-is-pinned .history-track{will-change:transform}
.history-is-pinned .history-shell{position:sticky;top:var(--history-header-height,100px)}
.history-scene{scroll-margin-top:calc(var(--history-header-height,100px) + 100px)}
.history-in-list .history-shell{position:relative;top:auto}
.history-in-list .history-shell{height:auto;min-height:0;overflow:visible;display:block}.history-in-list .history-viewport{overflow:visible}.history-in-list .history-track{display:block;transform:none!important;height:auto}.history-in-list .history-scene{min-height:660px;height:auto;padding-block:90px;overflow:hidden}.history-in-list .history-scene-visual{min-height:500px}.history-in-list .history-topbar{position:sticky;top:var(--history-header-height,100px)}.history-in-list .history-bottom{display:none}.history-in-list .history-position{display:none}
.portal-page .history-journey :focus-visible{outline-color:#fff}.portal-page[data-home-motion=off] .history-track{will-change:auto}
@media(min-width:1920px){.history-scene{padding-inline:max(80px,calc((100% - 1600px)/2));gap:8%}.history-topbar,.history-bottom{padding-inline:max(80px,calc((100% - 1600px)/2))}.history-scene h2{font-size:70px}.history-scene-photo{max-height:720px}.history-origin-art{max-height:720px}}
@media(max-width:1023px),(max-height:699px){.history-shell{height:auto;min-height:0}.history-track{height:auto}.history-scene{padding-block:40px;min-height:620px;height:auto;gap:5%}.history-scene-visual{min-height:450px}.history-topbar,.history-bottom{padding-inline:32px}.history-map>a{min-width:100px}.history-hint-desktop{display:none}.history-hint-mobile{display:inline}.history-bottom{padding-bottom:24px}.history-in-list .history-scene{padding-block:60px}}
@media(max-width:680px){
 html.has-history-journey{scroll-padding-top:72px}
 .history-topbar{align-items:flex-start;padding:22px 20px;gap:12px}.history-topbar p{font-size:21px}.history-topbar .eyebrow{font-size:8px;letter-spacing:.06em}.history-tools{gap:6px;flex-wrap:wrap;justify-content:flex-end;max-width:180px}.history-position{font-size:10px;min-width:45px}.history-tools button{width:34px;height:34px;font-size:19px}.history-tools .history-view-toggle{font-size:9px;padding:8px 12px;margin:0;height:30px}
 .history-scene{grid-template-columns:minmax(0,1fr);grid-template-rows:auto 300px;align-items:start;gap:28px;padding:28px 20px 36px;min-height:840px}
 .history-scene-copy{max-width:none}.history-chapter-number{margin-bottom:16px;font-size:9px}.history-era{font-size:11px;margin-bottom:12px}.portal-page .history-scene h2{font-size:37px;margin-bottom:22px}.history-scene-copy>p{font-size:16px;line-height:1.5;margin-bottom:16px}.history-detail{font-size:10px;margin-top:20px}.history-scene-link{font-size:12px;margin-top:20px;min-width:220px}
 .history-scene-visual{height:300px;min-height:0;padding:0 0 20px}.history-scene-photo,.history-scene-photo:has(+.history-secondary-photo){width:100%;height:100%;max-height:none;align-self:stretch}.history-secondary-photo{display:none}.history-scene-photo .archive-picture,.history-scene-photo .image-open{border-radius:20px}.history-scene-photo figcaption{bottom:-17px;font-size:9px}
 .history-origin-art{border-radius:24px;padding:28px;gap:20px}.history-origin-year{font-size:86px}.history-origin-art>img{width:200px}.history-origin-art>p{font-size:17px}.history-origin-art>p>span{font-size:11px}
 .history-bottom{padding:4px 20px 26px}.history-scroll-hint{font-size:8px;margin-bottom:15px}.history-map>a{min-width:100px}.history-map strong{font-size:10px}.history-ambient-year{font-size:105px;top:7px}
 .history-in-list .history-scene{min-height:0;padding-block:44px}.history-in-list .history-scene-visual{min-height:0}.history-in-list .history-topbar{top:var(--history-header-height,72px)}
}
@media(prefers-reduced-motion:reduce){.history-journey *{transition:none!important;animation:none!important}.history-map a:hover .history-map-dot{transform:none}}
/* A marca pontua a memória; o conteúdo mantém uma superfície de leitura clara. */
.history-journey .history-scene{background:#f3f3f3;color:var(--preto-epsa,#171714)}
.history-journey .history-scene:nth-child(even){background:#fff}
.portal-page .history-journey .history-scene h2{color:var(--preto-epsa,#171714)}
.history-journey .history-scene-copy>p{color:var(--grafite,#393938)}
.history-journey .history-chapter-number,.history-journey .history-era{color:var(--bordo,#c3000b)}
.history-journey .history-era{display:flex;gap:12px;align-items:center;flex-wrap:wrap;line-height:1.3}
.history-journey .history-date{font-size:20px;letter-spacing:-.035em;font-weight:800;white-space:nowrap}
.history-journey .history-era>span{max-width:310px}
.history-journey .history-detail{color:#626262}
.history-journey .history-ambient-year{left:auto;right:3%;color:var(--vermelho-epsa,#ff010b);opacity:.055}
.history-journey .history-scene-link{background:var(--history-red);color:#fff}
.history-journey .history-origin-art{background:var(--history-red)}
.history-journey .history-scene-visual{gap:14px}
.history-journey .history-scene-photo:has(+.history-secondary-photo){width:72%;height:90%;align-self:center}
.history-journey .history-secondary-photo{position:relative;right:auto;bottom:auto;width:28%;height:55%;transform:none;align-self:flex-end;margin-bottom:22px}
.history-journey .history-scene-photo figcaption{color:#626262}
.history-journey .history-scene-photo .image-open,.history-journey .history-scene-photo .archive-picture{background:#eaeaea!important}
.history-journey .history-bottom{background:#fff}
.history-journey .history-scroll-hint,.history-journey .history-map>a{color:#626262}
.history-journey .history-map strong{color:#626262}
.history-journey .history-map-line{background:#e6e6e6}
.history-journey .history-map-line i,.history-journey .history-map-dot{background:var(--history-red)}
.history-journey .history-map a[aria-current=step],.history-journey .history-map a[aria-current=step] strong{color:var(--bordo,#c3000b)}
.history-journey .history-map a[aria-current=step] .history-map-dot{background:var(--history-red);box-shadow:0 0 0 5px #d6000c12}
.history-journey .history-map a:hover .history-map-dot{background:var(--bordo,#c3000b)}
.history-journey .history-scene :focus-visible,.history-journey .history-bottom :focus-visible{outline-color:var(--bordo,#c3000b)}
@media(max-width:680px){
 .history-journey .history-track{align-items:flex-start}
 .history-journey .history-scene{min-height:0;grid-template-rows:auto 280px;gap:24px}
 .history-journey .history-scene-visual{height:280px}
 .history-journey .history-scene-photo:has(+.history-secondary-photo){width:100%;height:100%;align-self:stretch}
 .history-journey .history-secondary-photo{display:none}
 .history-journey .history-tools .portal-motion-control{height:28px;font-size:9px}
 .history-page .comparison-section,.history-page .editorial-contact{padding-block:40px!important}
}

/* Celular e tablet: barra fixa de capítulos deixa claro que a história segue para o lado. */
.history-dock{display:none}
.history-journey[data-history-mode=native] .history-shell{overflow:clip}
.history-journey[data-history-mode=native] .history-tools [data-history-prev],.history-journey[data-history-mode=native] .history-tools [data-history-next],.history-journey[data-history-mode=native] .history-position{display:none}
.history-journey[data-history-mode=native] .history-scene{box-shadow:inset 1px 0 0 #0000000d}
.history-journey[data-history-mode=native] .history-dock{position:sticky;bottom:calc(12px + env(safe-area-inset-bottom,0px));z-index:6;display:flex;align-items:center;gap:10px;margin:0 max(12px,env(safe-area-inset-right,0px)) 14px max(12px,env(safe-area-inset-left,0px));padding:6px;border-radius:999px;background:#fffffff2;border:1px solid #0000000f;box-shadow:0 18px 40px -18px #3b000666,0 2px 8px #00000010;-webkit-backdrop-filter:blur(16px) saturate(1.4);backdrop-filter:blur(16px) saturate(1.4)}
.history-dock button{flex:none;border:0;cursor:pointer;font:inherit;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.history-dock-prev{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;background:#f1f1f1;color:var(--preto-epsa,#171714);font-size:20px;transition:opacity .3s,background .3s}
.history-dock-prev:disabled{opacity:.28;cursor:default}
.history-dock-status{flex:1;min-width:0;display:grid;gap:7px;justify-items:center;position:relative}
.history-dock-count{font-size:12px;line-height:1;color:#626262;letter-spacing:.01em;white-space:nowrap}
.history-dock-count b{color:var(--bordo,#c3000b);font-weight:800;font-variant-numeric:tabular-nums}
.history-dock-steps{display:flex;gap:3px;width:100%;max-width:150px}
.history-dock-steps i{flex:1;height:4px;border-radius:4px;background:#e4e4e4;transition:background .35s,flex .35s}
.history-dock-steps i.is-done{background:#e88d93}
.history-dock-steps i.is-current{flex:2.6;background:var(--history-red)}
.history-dock-hint{display:none;align-items:center;gap:8px;font-size:12px;font-weight:700;color:var(--bordo,#c3000b);white-space:nowrap;line-height:1}
.history-dock-gesture{flex:none;color:var(--bordo,#c3000b)}
.history-dock-next{height:48px;display:flex;align-items:center;gap:10px;padding:0 8px 0 18px;border-radius:999px;background:var(--history-red);color:#fff;box-shadow:0 8px 18px -10px #d6000ccc;transition:transform .25s}
.history-dock-next:active,.history-dock-prev:active{transform:scale(.96)}
.history-dock-text{display:grid;text-align:left;line-height:1.05}
.history-dock-text small{font-size:10px;font-weight:500;opacity:.82;letter-spacing:.02em}
.history-dock-text strong{font-size:16px;font-weight:800;letter-spacing:-.02em}
.history-dock-arrow{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#ffffff26;font-size:18px;transition:transform .3s}
.history-dock-next.is-restart .history-dock-arrow{transform:rotate(180deg)}
.history-journey[data-history-mode=native]:not(.history-touched) .history-dock-count,.history-journey[data-history-mode=native]:not(.history-touched) .history-dock-steps{display:none}
.history-journey[data-history-mode=native]:not(.history-touched) .history-dock-hint{display:flex}
.history-journey:not(.history-touched) .history-dock-finger{animation:historyFinger 1.6s cubic-bezier(.5,0,.3,1) infinite}
.history-journey:not(.history-touched) .history-dock-arrow{animation:historyNudge 1.6s cubic-bezier(.5,0,.3,1) infinite}
.history-hinting .history-track{animation:historyPeek 2.4s cubic-bezier(.45,0,.25,1) .2s}
@keyframes historyFinger{0%{transform:translateX(0);opacity:0}15%{opacity:1}70%{transform:translateX(14px);opacity:1}100%{transform:translateX(14px);opacity:0}}
@keyframes historyNudge{0%,55%,100%{transform:translateX(0)}30%{transform:translateX(4px)}}
@keyframes historyPeek{0%,100%{transform:translateX(0)}22%,40%{transform:translateX(-22%)}62%{transform:translateX(0)}78%{transform:translateX(-7%)}}
@media(max-width:360px){.history-dock-text small{display:none}.history-dock-next{padding-left:14px}.history-dock-hint{font-size:11px}}
@media(prefers-reduced-motion:reduce){.history-dock-finger,.history-dock-arrow,.history-hinting .history-track{animation:none!important}}
.history-journey[data-history-mode=native] .history-shell{background:#fff}
.history-journey[data-history-mode=native] .history-topbar{background:var(--history-red)}
@media(min-width:600px){.history-journey[data-history-mode=native] .history-dock{width:min(520px,calc(100% - 24px));margin-inline:auto}}
