/* Hero: a mesma pessoa percorre quatro etapas, no ritmo do visitante. */
.hero-section { padding: clamp(3rem, 5.5vw, 5rem) 0; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.3fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.hero-text-col, .hero-story { min-width: 0; }
.hero-h1 { font-family: var(--font-display); font-size: clamp(3.2rem, 6.2vw, 5.8rem); line-height: .94; letter-spacing: -.055em; margin-bottom: 1.6rem; }
.hero-h1 .acid-dot { color: var(--acid); }
.hero-pain { font-size: clamp(1.25rem, 1.8vw, 1.55rem); font-weight: 600; line-height: 1.35; max-width: 29ch; margin-bottom: 1rem; }
.hero-desc { font-size: 1.08rem; line-height: 1.6; color: var(--text-gray); max-width: 39ch; margin-bottom: 1.75rem; }
.hero-location-bar { margin-top: 1.35rem; font-size: .82rem; color: var(--text-gray); }
.hero-text-col .btn-acid { padding: 1.15rem 1.4rem; gap: 1rem; font-size: .88rem; line-height: 1.4; text-align: left; box-shadow: none; max-width: 100%; white-space: normal; }
.hero-text-col .btn-acid svg { flex: 0 0 20px; }
.hero-cta-note { margin-top: .7rem; color: var(--text-gray); font-size: .88rem; }
.hero-story { position: relative; }
.hero-scroll-enabled .hero-grid { align-items: start; }
.hero-scroll-track { min-width: 0; }
.hero-scroll-track .hero-story { position: sticky; top: var(--story-top, 104px); }
@media (min-width: 901px) {
  .hero-scroll-enabled .hero-text-col { position: sticky; top: calc(var(--header-h) + 40px); }
}
@media (max-width: 620px) {
  .hero-scroll-enabled .hero-step { min-height: 130px; padding: 12px; }
  .hero-scroll-enabled .hero-mini { display: none; }
  .hero-scroll-enabled .hero-story-caption { min-height: 207px; }
  .hero-scroll-enabled .hero-step-title { margin-bottom: 0; }
}
.hero-story-intro { display: flex; justify-content: space-between; gap: 1rem; align-items: center; margin-bottom: 1.1rem; }
.hero-story-intro h2 { font-family: var(--font-sans); font-size: 1.07rem; font-weight: 600; line-height: 1.35; max-width: 24ch; }
.hero-story-example { font-family: var(--font-mono); font-size: .64rem; letter-spacing: .07em; text-transform: uppercase; color: var(--text-gray); }
.hero-story-map { position: relative; isolation: isolate; }
.hero-story-steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.hero-story-steps li { min-width: 0; }
.hero-step { appearance: none; width: 100%; height: 100%; min-height: 260px; text-align: left; font-family: var(--font-sans); color: var(--text-white); border: 1px solid #41413b; border-radius: 7px; background: linear-gradient(160deg, #171814, #0b0b0b 60%); padding: 15px 12px; position: relative; display: flex; flex-direction: column; cursor: pointer; transition: transform 400ms var(--ease), border-color 250ms, box-shadow 400ms; transform-origin: center; }
.hero-step[aria-pressed="true"] { border-color: var(--acid); box-shadow: 0 12px 35px #0006, 0 0 25px #d7ff000b; }
.hero-step:hover, .hero-step:focus-visible { transform: translateY(-6px) scale(1.035); z-index: 3; border-color: var(--acid); box-shadow: 0 18px 40px #0008; }
.hero-step:focus-visible, .hero-story button:focus-visible { outline: 2px solid var(--text-white); outline-offset: 5px; }
.hero-step-label { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 5px; color: #bcbcb1; font-size: .72rem; margin-bottom: .9rem; }
.hero-step-number { font-family: var(--font-mono); font-size: .74rem; color: var(--acid); }
.hero-step-title { font-size: 1.02rem; line-height: 1.2; font-weight: 700; letter-spacing: -.015em; display: block; min-height: 2.4em; margin-bottom: 1.05rem; }
.hero-mini { display: flex; flex-direction: column; gap: 9px; font-size: .75rem; line-height: 1.3; margin-top: auto; min-height: 118px; position: relative; }
.hero-mini-top { display: flex; align-items: center; gap: 5px; color: #c3c4bb; font-size: .68rem; padding-bottom: 8px; border-bottom: 1px solid #35362f; }
.hero-mini-top svg { width: 14px; height: 14px; flex-shrink: 0; }
.hero-mini strong { font-size: .89rem; font-weight: 600; }
.hero-mini-action { padding: 7px 9px; border-radius: 3px; background: #e9e7df; color: #050505; font-size: .73rem; font-weight: 600; margin-top: auto; }
.hero-mini-site .hero-mini-action { background: var(--acid); }
.hero-mini-pointer { position: absolute; width: 24px; height: 28px; right: 0; bottom: 0; color: #fff; filter: drop-shadow(0 2px 3px #000); }
.hero-mini-bubble { padding: 8px; border-radius: 7px 7px 0 7px; background: #24251f; border: 1px solid #3e3f35; align-self: flex-end; }
.hero-mini-reply { color: #050505; background: #e9e7df; border-radius: 7px 7px 7px 0; align-self: flex-start; }
.hero-mini-task { display: flex; gap: 6px; align-items: center; color: #c2c2b9; }
.hero-mini-task i { width: 14px; height: 14px; flex: 0 0 14px; border: 1px solid #686a5e; border-radius: 50%; font-style: normal; font-size: 10px; display: grid; place-items: center; }
.hero-mini-task:last-child { color: var(--text-white); background: #d7ff000d; border: 1px solid #d7ff0040; border-radius: 3px; padding: 8px 6px; margin-top: auto; }
.hero-mini-task:last-child i { color: #050505; background: var(--acid); border-color: var(--acid); }
.hero-route { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; overflow: visible; pointer-events: none; }
.hero-route path { fill: none; stroke: #444638; stroke-width: 1.5; }
.hero-route .hero-route-lit { stroke: var(--acid); stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 650ms ease; }
.hero-route .hero-route-lit.is-complete { stroke-dashoffset: 0; }
.hero-traveler { position: absolute; top: 0; left: 0; z-index: 4; width: 26px; height: 26px; display: grid; place-items: center; color: #050505; background: var(--acid); border: 3px solid #0b0b0b; border-radius: 50%; box-shadow: 0 0 0 1px #d7ff0070; pointer-events: none; transition: transform 650ms var(--ease); }
.hero-traveler svg { width: 15px; height: 15px; }
.hero-story-caption { border-top: 1px solid #3b3c30; margin-top: 1.3rem; padding-top: 1rem; min-height: 178px; }
.hero-caption-kicker { display: flex; align-items: center; gap: .65rem; font-family: var(--font-mono); color: var(--acid); font-size: .72rem; margin-bottom: .45rem; }
.hero-person { display: inline-grid; width: 24px; height: 24px; place-items: center; border: 1px solid #d7ff0055; border-radius: 50%; }
.hero-person svg { width: 15px; height: 15px; }
.hero-story-caption h3 { font-size: 1.17rem; font-weight: 600; line-height: 1.3; margin-bottom: .35rem; }
.hero-story-caption p { color: var(--text-gray); font-size: .98rem; line-height: 1.45; }
.hero-story-caption .hero-story-risk { color: #d6d4ca; font-size: .88rem; margin-top: .6rem; }
.hero-story-risk strong { color: var(--text-white); font-weight: 600; }
.hero-story-controls { display: flex; align-items: center; gap: 8px; padding-top: .9rem; border-top: 1px solid var(--line); }
.hero-story-controls button { border: 1px solid #4d4f40; border-radius: 4px; background: #12130e; color: var(--text-white); min-height: 44px; cursor: pointer; font-family: var(--font-sans); font-size: .86rem; padding: .55rem .8rem; }
.hero-story-controls button:hover { border-color: var(--acid); }
.hero-story-controls button:disabled { opacity: .35; cursor: default; }
.hero-play { display: flex; align-items: center; gap: .6rem; margin-right: auto; }
.hero-play-icon { color: var(--acid); font-size: .9rem; width: 14px; text-align: center; }
.hero-step-counter { font-family: var(--font-mono); font-size: .72rem; color: var(--text-gray); min-width: 44px; text-align: center; }
.hero-story-hint { color: var(--text-gray); font-size: .76rem; margin-top: .65rem; }
.hero-motion-choice { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; margin-top: .6rem; color: var(--text-gray); font-size: .76rem; }
.hero-motion-choice[hidden] { display: none; }
.hero-motion-choice button { font: inherit; color: var(--text-white); padding: .5rem 0; min-height: 44px; background: none; border: none; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.hero-story .hero-story-controls[hidden] { display: none; }
.hero-story [data-hero-progress] { height: 2px; background: var(--acid); width: 100%; transform: scaleX(0); transform-origin: left; margin-top: 10px; }
.hero-story[data-playing="true"] [data-hero-progress] { animation: heroProgress var(--hero-step-duration, 9000ms) linear forwards; }
.hero-story [data-hero-progress].hero-progress-reset { animation: none; }

/* One short, meaningful sequence on hover, focus, click, or guided playback. */
@keyframes heroPointer { 0% { transform: translate(10px, 18px); opacity: 0; } 25%, 65% { transform: translate(-15px, -7px); opacity: 1; } 80% { transform: translate(-15px, -7px) scale(.85); opacity: 1; } 100% { transform: translate(-15px, -7px); opacity: 1; } }
@keyframes heroAction { 0%, 65% { box-shadow: none; } 80% { box-shadow: 0 0 0 5px #d7ff0033; } 100% { box-shadow: none; } }
@keyframes heroReveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes heroCheck { 0%, 40% { transform: scale(.6); opacity: .2; } 70% { transform: scale(1.15); opacity: 1; } 100% { transform: scale(1); } }
@keyframes heroProgress { to { transform: scaleX(1); } }
.hero-story[data-motion="full"] .hero-step[aria-pressed="true"] { transform: translateY(-4px) scale(1.02); z-index: 2; }
.hero-story[data-motion="full"] .hero-step[aria-pressed="true"]:hover, .hero-story[data-motion="full"] .hero-step[aria-pressed="true"]:focus-visible { transform: translateY(-7px) scale(1.045); z-index: 3; }
.hero-story[data-motion="full"] .hero-step.is-animating .hero-mini-pointer { animation: heroPointer 1500ms var(--ease) both; }
.hero-story[data-motion="full"] .hero-step.is-animating .hero-mini-action { animation: heroAction 1800ms ease both; }
.hero-story[data-motion="full"] .hero-step.is-animating .hero-mini-site strong { animation: heroReveal 600ms var(--ease) both; }
.hero-story[data-motion="full"] .hero-step.is-animating .hero-mini-bubble { animation: heroReveal 550ms var(--ease) both; }
.hero-story[data-motion="full"] .hero-step.is-animating .hero-mini-reply { animation-delay: 700ms; }
.hero-story[data-motion="full"] .hero-step.is-animating .hero-mini-task i { animation: heroCheck 800ms ease both; }
.hero-story[data-motion="full"] .hero-step.is-animating .hero-mini-task:nth-child(2) i { animation-delay: 350ms; }
.hero-story[data-motion="full"] .hero-step.is-animating .hero-mini-task:nth-child(3) i { animation-delay: 700ms; }
@media (max-width: 1100px) { .header-nav { display: none; } }
@media (max-width: 768px) {
  .header-logo-img { width: clamp(120px, 37vw, 180px); height: auto; }
  .btn-outline-header { font-size: .68rem; padding: .75rem .7rem; }
  .btn-acid { white-space: normal; max-width: 100%; }
}
@media (max-width: 1250px) and (min-width: 901px) {
  .hero-story-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .hero-step { min-height: 180px; padding: 13px 16px; }
  .hero-step-label { margin-bottom: .45rem; }
  .hero-step-title { min-height: 0; margin-bottom: .6rem; }
  .hero-mini { min-height: 85px; gap: 6px; }
  .hero-mini-top { padding-bottom: 5px; }
  .hero-mini-task:last-child { padding: 5px 6px; }
  .hero-story-caption { min-height: 172px; }
  .hero-h1 { font-size: clamp(3rem, 6.15vw, 4.6rem); }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 3rem; }
  .hero-h1 { font-size: clamp(3.2rem, 10vw, 5.7rem); }
  .hero-desc { max-width: 48ch; }
  .hero-pain { max-width: 38ch; }
  .hero-story-caption { min-height: 145px; }
}
@media (max-width: 620px) {
  .hero-story-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .hero-step { min-height: 225px; padding: 13px 12px; }
  .hero-step-title { font-size: 1.03rem; }
  .hero-mini { min-height: 100px; }
  .hero-story-intro { align-items: flex-start; }
  .hero-story-example { max-width: 9ch; text-align: right; }
  .hero-story-caption { min-height: 207px; }
  .hero-story-controls { gap: 5px; flex-wrap: wrap; }
  .hero-story-controls button { padding: .5rem .7rem; }
  .hero-h1 { font-size: clamp(2.5rem, 10.8vw, 4.6rem); }
  .hero-text-col .btn-acid { font-size: .85rem; width: 100%; justify-content: space-between; }
  .hero-location-bar { font-size: .78rem; }
}
@media (max-width: 360px) {
  .hero-step { padding: 12px 9px; }
  .hero-step-label { font-size: .64rem; }
  .hero-story-controls .hero-play { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-text-col *, .hero-story:not([data-motion="full"]) *, .hero-story:not([data-motion="full"]) *::before, .hero-story:not([data-motion="full"]) *::after { animation: none !important; transition: none !important; }
  .hero-story:not([data-motion="full"]) .hero-step:hover, .hero-story:not([data-motion="full"]) .hero-step:focus-visible { transform: none; }
}

/* Mobile presentation: one complete scene, then the next sheet rises into place. */
@media (max-width: 900px) {
  .hero-scroll-enabled .hero-story-map { overflow: hidden; padding: 8px 4px; }
  .hero-scroll-enabled .hero-story-steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hero-scroll-enabled .hero-story-steps li { grid-area: 1 / 1; opacity: 0; transform: translateY(105%); transition: transform 550ms cubic-bezier(.22,1,.36,1), opacity 350ms ease; pointer-events: none; }
  .hero-scroll-enabled .hero-story-steps li[data-position="active"] { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .hero-scroll-enabled .hero-story-steps li[data-position="before"] { transform: translateY(-105%); }
  .hero-scroll-enabled .hero-step { min-height: 300px; padding: 22px; transform: none !important; box-shadow: none; }
  .hero-scroll-enabled .hero-step-label { font-size: .86rem; margin-bottom: 12px; }
  .hero-scroll-enabled .hero-step-title { font-size: clamp(1.7rem, 6.5vw, 2.2rem); min-height: 0; margin-bottom: 22px; }
  .hero-scroll-enabled .hero-mini { display: flex; min-height: 135px; gap: 12px; }
  .hero-scroll-enabled .hero-mini strong { font-size: 1.12rem; }
  .hero-scroll-enabled .hero-mini-top { font-size: .82rem; }
  .hero-scroll-enabled .hero-mini-action, .hero-scroll-enabled .hero-mini-bubble, .hero-scroll-enabled .hero-mini-task { font-size: .9rem; }
  .hero-scroll-enabled .hero-mini-pointer { width: 30px; height: 35px; }
  .hero-scroll-enabled .hero-route, .hero-scroll-enabled .hero-traveler { display: none; }
  .hero-scroll-enabled .hero-story-caption { min-height: 174px; margin-top: 8px; padding-top: 12px; }
  .hero-scroll-enabled .hero-story-caption h3 { display: none; }
  .hero-scroll-enabled .hero-story-caption p { font-size: .92rem; }
  .hero-scroll-enabled .hero-story-intro { margin-bottom: 6px; }
}
@media (max-width: 900px) and (max-height: 700px) {
  .hero-scroll-enabled .hero-story-intro { display: none; }
  .hero-scroll-enabled .hero-step { min-height: 250px; padding: 16px; }
  .hero-scroll-enabled .hero-step-title { font-size: 1.55rem; margin-bottom: 12px; }
  .hero-scroll-enabled .hero-mini { min-height: 110px; gap: 8px; }
}

@media (max-width: 900px) {
  .hero-scroll-enabled .hero-mini { padding: 15px; border: 1px solid #45483a; border-radius: 8px; background: #1b1d16; }
  .hero-scroll-enabled .hero-mini-pointer { right: 12px; bottom: 10px; }
  .hero-scroll-enabled .hero-mini-action { padding: 11px 12px; }
}
@media (max-width: 900px) and (min-height: 701px) {
  .hero-scroll-enabled .hero-step { min-height: clamp(330px, 43svh, 380px); padding: 22px; }
  .hero-scroll-enabled .hero-mini { min-height: 180px; }
  .hero-scroll-enabled .hero-step-title { font-size: clamp(1.85rem, 7vw, 2.4rem); }
}
