.history-hero { position: relative; min-height: 88vh; display: flex; align-items: end; overflow: hidden; color: var(--white); background: var(--blue-950); isolation: isolate; }
.history-hero__backdrop { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7, 27, 58, .94) 0%, rgba(7, 27, 58, .72) 47%, rgba(7, 27, 58, .18)), linear-gradient(0deg, rgba(7, 27, 58, .86), rgba(7, 27, 58, .08) 70%), url("../../../assets/images/polaco-historia.webp") 68% 28% / cover no-repeat; transform: scale(1.02); }
.history-hero__content { width: min(100%, var(--container)); margin: 0 auto; padding: clamp(5rem, 12vh, 8rem) 1rem clamp(3rem, 8vh, 6rem); }
.history-hero h1 { max-width: 11ch; margin: 0; font-size: clamp(3.5rem, 8vw, 7.8rem); line-height: .9; letter-spacing: -.055em; }
.history-hero h1 span { color: var(--yellow-500); }
.history-hero__content > p:not(.section-kicker) { max-width: 630px; margin: 1.5rem 0 0; font-size: clamp(1.05rem, 2vw, 1.35rem); line-height: 1.55; color: rgba(255,255,255,.9); }
.history-scroll { display: inline-flex; align-items: center; gap: .5rem; margin-top: 2.4rem; color: var(--yellow-500); font-weight: 800; text-decoration: none; }
.history-scroll span { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 1px solid var(--yellow-500); border-radius: 50%; animation: history-bob 1.7s ease-in-out infinite; }
@keyframes history-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
.timeline { position: relative; overflow: hidden; padding: clamp(4rem, 9vw, 8rem) 1rem; background: var(--paper); }
.timeline__intro, .timeline-chapter, .timeline-breath, .history-2026 { width: min(100%, var(--container)); margin-left: auto; margin-right: auto; }
.timeline__intro { max-width: 680px; margin-bottom: clamp(5rem, 12vw, 10rem); text-align: center; }
.timeline__intro h2 { margin: 0; color: var(--blue-950); font-size: clamp(2rem, 4.5vw, 4rem); line-height: .98; letter-spacing: -.04em; }
.timeline__line { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; background: rgba(18,58,117,.15); transform: translateX(-50%); }
.timeline__line span { position: absolute; inset: 0 0 auto; height: var(--timeline-progress, 0%); background: var(--yellow-500); transform-origin: top; }
.timeline-chapter { position: relative; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(2rem, 7vw, 7rem); min-height: 420px; align-items: center; margin-bottom: clamp(6rem, 13vw, 12rem); }
.timeline-chapter::before { content: ""; position: absolute; top: 50%; left: 50%; width: 15px; height: 15px; z-index: 2; border: 4px solid var(--paper); border-radius: 50%; background: var(--blue-800); box-shadow: 0 0 0 3px rgba(18,58,117,.24); transform: translate(-50%, -50%); transition: background 300ms ease, box-shadow 300ms ease, transform 300ms ease; }
.timeline-chapter.is-visible::before { background: var(--yellow-500); box-shadow: 0 0 0 5px rgba(255,201,40,.22); transform: translate(-50%, -50%) scale(1.18); }
.timeline-chapter--left .timeline-chapter__content { grid-column: 1; }
.timeline-chapter--left .timeline-chapter__media { grid-column: 2; }
.timeline-chapter--right .timeline-chapter__content { grid-column: 2; grid-row: 1; }
.timeline-chapter--right .timeline-chapter__media { grid-column: 1; grid-row: 1; }
.timeline-chapter__content { max-width: 480px; }
.timeline-chapter__content h2 { margin: .25rem 0 1rem; color: var(--blue-950); font-size: clamp(2rem, 4vw, 4.25rem); line-height: .94; letter-spacing: -.045em; }
.timeline-chapter__content p { margin: .75rem 0 0; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.12rem); line-height: 1.58; }
.timeline-label { color: var(--yellow-600) !important; font-size: .92rem !important; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.timeline-year { margin: 0 !important; color: var(--blue-800) !important; font-size: clamp(4.5rem, 10vw, 9rem) !important; font-weight: 900; line-height: .78 !important; letter-spacing: -.08em; }
.timeline-chapter__media { width: 100%; max-width: 500px; margin: 0; overflow: hidden; border-radius: var(--radius-lg); background: var(--blue-900); box-shadow: var(--shadow); }
.timeline-chapter__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 900ms ease; }
.timeline-chapter__media--landscape img { aspect-ratio: 16 / 10; }
.timeline-chapter.is-visible .timeline-chapter__media img { transform: scale(1.035); }
.timeline-chapter--feature { min-height: 540px; }
.timeline-chapter--feature .timeline-chapter__content h2 { font-size: clamp(2.6rem, 5vw, 5.5rem); }
.timeline-chapter--quiet { min-height: 320px; }
.timeline-chapter--quiet .timeline-chapter__content { padding: clamp(1.5rem, 4vw, 4rem); border-top: 5px solid var(--yellow-500); border-bottom: 1px solid var(--line); }
.timeline-chapter--year { min-height: 260px; }
.timeline-chapter--year .timeline-chapter__content h2 { font-size: clamp(1.8rem, 3.5vw, 3.5rem); }
.timeline-chapter__markword { grid-column: 2; color: rgba(18,58,117,.08); font-size: clamp(4rem, 10vw, 10rem); font-weight: 900; letter-spacing: -.08em; transform: rotate(-8deg); }
.timeline-breath { max-width: 720px; margin-top: -2rem; margin-bottom: clamp(7rem, 14vw, 13rem); color: var(--blue-800); text-align: center; font-size: clamp(1.6rem, 3vw, 2.8rem); font-weight: 800; line-height: 1.08; letter-spacing: -.04em; }
.history-2026 { position: relative; display: grid; grid-template-columns: 1.2fr .8fr; gap: 3rem; align-items: end; min-height: 680px; margin-top: 4rem; padding: clamp(2rem, 6vw, 6rem); overflow: hidden; color: var(--white); background: linear-gradient(135deg, var(--blue-950) 0%, var(--blue-800) 56%, #dca900 56%, var(--yellow-500) 100%); border-radius: var(--radius-lg); box-shadow: 0 25px 70px rgba(7,27,58,.24); }
.history-2026::after { content: ""; position: absolute; width: 48vw; height: 48vw; right: -15vw; bottom: -20vw; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; }
.history-2026__content { position: relative; z-index: 1; max-width: 680px; }
.history-2026 .timeline-year { color: var(--yellow-500) !important; }
.history-2026 h2 { margin: .35rem 0 1.2rem; font-size: clamp(2.8rem, 6vw, 6.7rem); line-height: .88; letter-spacing: -.06em; }
.history-2026__content > p:not(.timeline-year):not(.timeline-label) { max-width: 620px; color: rgba(255,255,255,.88); font-size: 1.08rem; line-height: 1.55; }
.history-2026__brand { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-end; color: var(--blue-950); text-align: right; }
.history-2026__brand strong { font-size: clamp(1.5rem, 3vw, 3rem); letter-spacing: -.04em; }
.history-2026__brand span { font-weight: 900; }
.history-2026__brand b { margin-top: -.4rem; font-size: clamp(5rem, 13vw, 12rem); line-height: .8; letter-spacing: -.1em; }
.history-close { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; min-height: 650px; overflow: hidden; color: var(--white); background: var(--blue-950); }
.history-close__image { min-height: 520px; background: linear-gradient(90deg, rgba(7,27,58,.08), rgba(7,27,58,.7)), url("../../../assets/images/polaco-historia.webp") center 35% / cover no-repeat; }
.history-close__content { display: flex; flex-direction: column; justify-content: center; padding: clamp(2rem, 6vw, 6rem); }
.history-close__content h2 { max-width: 8ch; margin: 0; font-size: clamp(2.5rem, 5vw, 5rem); line-height: .92; letter-spacing: -.05em; }
.history-close__signature { margin: 2rem 0 0; color: var(--yellow-500); font-size: clamp(1.4rem, 2.5vw, 2.2rem); font-weight: 900; line-height: .98; }
.history-close__signature span { color: var(--white); font-size: .58em; }
.history-close__signature b { display: block; margin-top: .15rem; font-size: 1.55em; line-height: .8; letter-spacing: -.08em; }
.history-close__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.history-close__actions .button--secondary { border-color: rgba(255,255,255,.72); }

.history-2026__visual { position: relative; z-index: 1; min-height: 520px; }
.history-2026__visual--single { align-self: start; display: flex; align-items: flex-start; justify-content: center; height: 100%; min-height: 0; }
.history-2026__visual--single img { display: block; width: 100%; max-width: none; max-height: none; height: 100%; object-fit: contain; border-radius: var(--radius-md); }
.history-2026__gallery { display: grid; grid-template-columns: 1.15fr .85fr; grid-template-rows: repeat(2, minmax(150px, 1fr)); gap: .8rem; height: 420px; }
.history-2026__photo { min-width: 0; margin: 0; overflow: hidden; border: 4px solid rgba(255,255,255,.9); border-radius: var(--radius-md); box-shadow: 0 16px 32px rgba(7,27,58,.28); }
.history-2026__photo--main { grid-row: 1 / span 2; transform: translateY(1.5rem); }
.history-2026__photo--top { transform: translate(1rem, -1rem) rotate(2deg); }
.history-2026__photo--bottom { transform: translate(.3rem, .3rem) rotate(-2deg); }
.history-2026__photo img { width: 100%; height: 100%; object-fit: cover; }
.history-2026__brand { position: absolute; right: -.5rem; bottom: -1.3rem; align-items: flex-end; padding: .8rem 1rem; border-radius: var(--radius-md); background: rgba(255,201,40,.94); box-shadow: 0 14px 28px rgba(7,27,58,.2); }
.history-2026__brand strong { font-size: clamp(1.25rem, 2.6vw, 2.4rem); }
.history-2026__brand b { font-size: clamp(4.8rem, 10vw, 9rem); }
@media (max-width: 719px) {
  .history-hero { min-height: 86vh; }
  .history-hero__backdrop { background-position: 67% center; }
  .history-hero__content { padding-bottom: 3rem; }
  .history-hero h1 { font-size: clamp(3rem, 14vw, 5rem); }
  .timeline { padding-left: 2.6rem; padding-right: 1rem; }
  .timeline__line { left: 1.1rem; width: 2px; transform: none; }
  .timeline__intro { text-align: left; margin-bottom: 5rem; }
  .timeline-chapter { display: block; min-height: 0; margin-bottom: 5rem; padding-left: 1.1rem; }
  .timeline-chapter::before { left: -1.5rem; top: 1.1rem; width: 12px; height: 12px; border-width: 3px; transform: translate(-50%, 0); }
  .timeline-chapter.is-visible::before { transform: translate(-50%, 0) scale(1.1); }
  .timeline-chapter__content { max-width: none; }
  .timeline-chapter__media, .timeline-chapter__markword { margin-top: 1.5rem; max-width: none; }
  .timeline-chapter__content h2, .timeline-chapter--feature .timeline-chapter__content h2 { font-size: clamp(2.1rem, 10vw, 3.5rem); }
  .timeline-year { font-size: clamp(4.5rem, 21vw, 7rem) !important; }
  .timeline-chapter--quiet { min-height: 0; }
  .timeline-chapter--year { min-height: 0; }
  .timeline-chapter__markword { font-size: clamp(3.4rem, 15vw, 5rem); }
  .timeline-breath { text-align: left; margin-left: 1.1rem; margin-bottom: 5rem; }
  .history-2026 { display: block; min-height: 0; margin-left: -1.5rem; padding: 2rem 1.5rem; border-radius: var(--radius-md); background: linear-gradient(160deg, var(--blue-950) 0%, var(--blue-800) 57%, var(--yellow-500) 57%); }
  .history-2026 h2 { font-size: clamp(2.6rem, 12vw, 4.3rem); }
  .history-2026__brand { align-items: flex-start; margin-top: 3rem; text-align: left; }
  .history-2026__brand b { font-size: clamp(5.5rem, 25vw, 9rem); }
  .history-close { display: block; min-height: 0; }
  .history-close__image { min-height: 60vh; }
  .history-close__content { padding: 3rem 1rem 5rem; }
  .history-close__content h2 { max-width: 10ch; }
  .history-close__actions { flex-direction: column; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  .history-scroll span { animation: none; }
  .timeline-chapter__media img { transition: none; }
}

@media (max-width: 719px) {
  .history-2026__visual { min-height: 0; margin-top: 2.5rem; padding-bottom: 1rem; }
  .history-2026__visual--single { height: auto; }
  .history-2026__visual--single img { height: auto; }
  .history-2026__gallery { height: 330px; grid-template-rows: repeat(2, minmax(110px, 1fr)); gap: .55rem; }
  .history-2026__photo--main { transform: none; }
  .history-2026__photo--top { transform: translate(.2rem, -.3rem) rotate(1deg); }
  .history-2026__photo--bottom { transform: translate(.1rem, .15rem) rotate(-1deg); }
  .history-2026__brand { position: relative; right: auto; bottom: auto; align-items: flex-start; width: fit-content; margin: 1rem 0 0 auto; text-align: right; }
  .history-close__signature b { font-size: 1.45em; }
}
